11-05-2018 02:37 AM - edited 11-05-2018 02:42 AM
Hello guys,
I control my real oscilloscope with this code and I need to write the data in an Excel file.
Solved! Go to Solution.
11-05-2018 03:00 AM
There are no signals given as input to write to excel file.
11-05-2018 03:29 AM
what is the signal I have to use to save data with that block?
if I use the signal that goes to the chart it does not work, and it is the same if I use waveform array.
11-05-2018 08:09 AM
There are several questions to clarify.
Bob Schor
11-05-2018 09:20 AM
Thank you very much,
the waveform that I get from instrument driver seems to be generated using an array of double. Which is in your opinion the easiest way to print this array into a file?
thank you
11-05-2018 09:28 AM
@King_Rob wrote:
Thank you very much,
the waveform that I get from instrument driver seems to be generated using an array of double. Which is in your opinion the easiest way to print this array into a file?
thank you
I can't look at your code because it's a newer version than I have but...
If the VI's for your scope can output a waveform as a 2D numeric array (X in one column and Y in the other) then all you really have to do is use the "Write to Delimited Spreadsheet" vi and write it to a file.
By default that vi will make a TAB delimited text file, but Excel will have no problem opening it you just have to jump through a couple hoops first. Launch Excel and use File->Open to open the file. Excel will launch the file importer and if you read the prompts you will see you can click right through it.
11-06-2018 05:30 AM
I used ''Write to Delimited Spreadsheet'' this is a screen. Waveform is a Sine, the plot about ''current data'' inside the loop is a sine, but if I open the data inside ''file.TXT'', I don't find a good data to plot the waveform. I want a file with a 2 column, but the file was not written like that.
Where do I wrong?
How can I see the format of current data?
shot of display
11-06-2018 09:15 AM
You have the Array input on the For Loop set to Indexing and you have a 1 wired to the Count Terminal.
Remove the For Loop around the write section.
A For Loop with a count of 1 only runs once, that makes the For Loop itself superfluous.