06-30-2014 11:42 AM - edited 06-30-2014 11:43 AM
Hello,
I have written code which initializes a spectrometer. Once initialized, if the "Capture" button is pushed, the spectrometer takes a new spectrum three times (see for loop) every second. This spectrum is displayed as a chart in my front panel. My code runs fine...it will update the spectrum every second.
However, I want to be able to save each of these three iterations as separate graphs. Basically, I want to click "Capture" and have my code save three charts to a specified folder. How do I go about doing this?
I've attached my VI.
Thanks.
Solved! Go to Solution.
06-30-2014 11:53 AM
Do you want just a picture of the graph or do you want to save the actual data?
06-30-2014 11:55 AM
Ideally, I'd like to save the actual data.
06-30-2014 12:04 PM
Probably the easist way is to take the data from the for loop and pass it out in an indexed tunnel. Handle the resulting array of data as you'd like. You could also do a producer/consumer and write the files as the data comes out.
06-30-2014 12:14 PM
Use Build Array to make a 2D Array of your X and Y data and use Write To Spreadsheet File to save the data.