mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-05 14:35:23 +00:00
Handle csv import/export with power traces
This commit is contained in:
parent
deefe30beb
commit
fa4e954f73
5 changed files with 38 additions and 12 deletions
|
|
@ -42,7 +42,7 @@ void TraceCSVExport::on_buttonBox_accepted()
|
|||
CSV csv;
|
||||
// create the first column (X data)
|
||||
vector<double> X;
|
||||
QString Xname = traces[0]->outputType() == Trace::DataType::Frequency ? "Frequency" : "Time";
|
||||
QString Xname = Trace::dataTypeToString(traces[0]->outputType());
|
||||
auto samples = traces[0]->numSamples();
|
||||
for(unsigned int i=0;i<samples;i++) {
|
||||
X.push_back(traces[0]->sample(i).x);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue