LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

write to measurement file

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

0 Kudos
Message 1 of 4
(3,105 Views)

You really need to share your code.  You have not mentioned anything yet that handles how often you get and write your samples.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 4
(3,088 Views)

Hello,

 

Sorry. Here with I am attaching my labview code.

 

Cheers

Swarna

0 Kudos
Message 3 of 4
(3,064 Views)

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.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 4
(3,023 Views)