LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Write Data for five seconds

Solved!
Go to solution

I am trying to write the data file of a waveform for 5 seconds at the start of the VI running and then for 5 seconds after every 60 seconds. I have made a VI for this attached herewith and also please refer to the screenshot to get my question. As you can see from the screenshot I can record the waveforms at the beginning and after every 60 seconds but the problem is that I want the Write to Measurement File VIs to keep on running for 5 seconds in each iteration.

 

Your step by step guidance will be very helpful to me.

 

Anxiously waiting for the response.

 

Best regards,

Haroon Farooq

Download All
0 Kudos
Message 1 of 6
(3,480 Views)

Does the 5 seconds refer to 5 seconds worth of data, or that the program has run for 5 seconds at the 60-second interval. Two different things. Smiley Wink

 

I also noticed that your two Write to Measurement File VIs are set up for different filenames. 

Message 2 of 6
(3,447 Views)

Thanks for the reply. I want the two Write to Measurement File VIs to keep on writing for 5 seconds continuosuly before stopping (the writing) in each iteration.

 

Best regards,

Haroon

0 Kudos
Message 3 of 6
(3,445 Views)

There are several ways to do this. One way is to use a second Elapsed Time VI to keep track of your writing time, along with a shift register to indicate that you've started writing. See attached example.

 

Message 4 of 6
(3,417 Views)

thank you very much for your help. May I please know that how can I make sure that a new measurement file is written for every iteration??? I mean I want the write to measurement file VI to make a new file after every 60 seconds.

 

Thanking in anticipation.

 

Best regards,

Haroon

0 Kudos
Message 5 of 6
(3,392 Views)
Solution
Accepted by topic author Haroon2k9
There are several ways to do this as well. One way is to use another shift register to feed the "new file" input of the Write to Measurement File, as shown in the attached modification. Note that the configuration of the Write to Measurement File VI needs to be set to so it does not create a new file once it reaches 100K, which was checked.
Message 6 of 6
(3,383 Views)