07-27-2015 07:24 AM - edited 07-27-2015 07:33 AM
Hello,
I have to measure my spectrometer values every thirty seconds and have to write it to a text file. I need to create a new text file each time for writing my values. So i used the write to measurement File option for doing this. The problem is that this block measures the values only every one minute, but i need to measure the values every thirty seconds. Could any one help me out with this ?
Thanks in advance
Swarna
07-27-2015 07:33 AM
You really need to share your code. You have not mentioned anything yet that handles how often you get and write your samples.
07-27-2015 07:41 AM
Hello,
Sorry. Here with I am attaching my labview code.
Cheers
Swarna
07-27-2015 09:05 AM
Some issues you have for the timing part of your code:
1. Use the Time has Elapsed output of the Elapsed Time VI. It already does the comparison for you, so just use it.
2. I'm pretty sure you want the Write Measurement File to be in the TRUE case.
3. Use the AutoReset option on the Elapsed Time VI.
But those do not point to a data point every 1 minute. How long does it take your instrument to do the sweep before sending it to you? I have seen some take a long time, so it is worth looking into.