03-16-2010 06:34 AM
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
Solved! Go to Solution.
03-16-2010 09:13 AM
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.
I also noticed that your two Write to Measurement File VIs are set up for different filenames.
03-16-2010 09:17 AM
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
03-16-2010 01:55 PM
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.
03-17-2010 11:14 AM
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
03-17-2010 02:01 PM