10-31-2011 05:39 PM
Hello,
This could be a very stupid query, but I am new to Labview and thats why I think I am not able to figure this out. I have gone through many posts but couldn't come to a conclusive answer and finally decided to post my query here.
I am reading from a Multimeter and plotting the data on waveform chart, as well as I am storing it into a spreadsheet (using write to measurement file). I need to program my vi such that it will take the measuremnt at a fixed time interval, in my case It shall record the data every 0.1 seconds. so the x-axis time should be exactly 0, 0.1, 0.2, 0.3 and so on. Any help is appreciated. I am attaching my VI. Thank you in advance.
Regards,
Ajay
10-31-2011 05:52 PM
Try adding the "flat sequence" within the while loop. Have the data collection and graph in the 1st step and the time delay in the second step.
10-31-2011 06:49 PM
Ajay,
Look at the Producer/Consumer Design Pattern examples which come with LabVIEW. Put the data measurement in the Producer loop with the 100 ms timer and the write to file and any display updates in the Consumer loop. The loops can run independently and any delays writing to the file will not affect the measurement timing.
Generally it is best to avoid seqeunce structures because they lead to very inflexible and hard to modify code.
Lynn