LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

write acquire data time to file

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.

Download All
0 Kudos
Message 1 of 12
(3,658 Views)
Your time.vi has a subVI named sek-dneva that you didn't attach.  The subVI you did attach doesn't show up in your time.vi.
0 Kudos
Message 2 of 12
(3,652 Views)
try this one
0 Kudos
Message 3 of 12
(3,634 Views)
try this one (sub vi)
0 Kudos
Message 4 of 12
(3,633 Views)

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.

Message Edited by Ravens Fan on 05-28-2010 01:53 PM
0 Kudos
Message 5 of 12
(3,629 Views)

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)

 

0 Kudos
Message 6 of 12
(3,609 Views)
PLEASE CHECK IT
0 Kudos
Message 7 of 12
(3,608 Views)

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.

Message Edited by Ravens Fan on 05-28-2010 04:00 PM
0 Kudos
Message 8 of 12
(3,604 Views)

I am sorry

But your guess is right. I will try

 

Thanks

0 Kudos
Message 9 of 12
(3,592 Views)
I tried it. But how can I just store the data when I hit acquire button in shift register. My labview knowledge is limited. As I know, The shift factor is always updated , Can it be used for store one certain data ?
0 Kudos
Message 10 of 12
(3,588 Views)