05-28-2010 11:26 AM
Hi
I attached my TIME.VI. another vi is sub vi. Sub vi is read real time using second unit.
I just try to read time for acquiring data.
When I pressed acquire data button, I hope time can begin from 0 then written in file. Right now , my program is not from zero.
Thank you for your help.
Hope you can help me check my vi.
05-28-2010 11:34 AM
05-28-2010 12:46 PM
05-28-2010 12:47 PM
05-28-2010 12:49 PM - edited 05-28-2010 12:53 PM
I don't know what you mean by not starting at zero.
You have numerous bits of information all thrown together into one text string that just seems to run together once it is in the text file. One of those pieces of information does start at zero.
05-28-2010 02:50 PM
I attached new time -2.vi.
I modify a little bit. I am sorry making u confused. In the new vi, waveform chart is used for showing signal of relative time. Firstly , I did not press acuquire data button. When while loop cycle for 30 times, I pressed acquire button. Right now I hope txt file data using collecting time is from 0. Not from certain time valve(eg. time consumed by 30 times cycling)
05-28-2010 02:51 PM
05-28-2010 02:59 PM - edited 05-28-2010 03:00 PM
I'm still confused.
Are you saying you want your time 0 to be the moment you hit the acquire button as opposed to the time the VI starts?
If so, you need to take the time when the acquire button first turns true and store that in a shift register to subtract from future times as opposed to using the value coming in from the tunnel that is taken when the VI first starts.
05-28-2010 03:06 PM
I am sorry
But your guess is right. I will try
Thanks
05-28-2010 03:20 PM