From 11:00 PM CDT Friday, Nov 8 - 2:30 PM CDT Saturday, Nov 9, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From 11:00 PM CDT Friday, Nov 8 - 2:30 PM CDT Saturday, Nov 9, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
09-25-2012 10:04 AM
Hi Friend
The attached file is one VI which collect data of sin, cos function.
When I click acquire button, data will be written to the file.
The problems is I hope when I click acquire, the time value recorded to file is starting from 0s. But it always showed some time delay (7s.)
I do not know how to solve this problems
Thanks for your help
09-25-2012 10:14 AM - edited 09-25-2012 10:23 AM
Your t0 is the time difference between the start of the program and the time when you press "Acquire". You would need to reset the start time whenever you press Acquire. I recommend using an event structure.
09-25-2012 10:20 AM - edited 09-25-2012 10:20 AM
Something like this:
09-25-2012 10:41 AM
Ok
Thanks
Let me try
09-25-2012 11:04 AM
I worote program like you said. It exactly give me time from 0s.
But the new question is how can I exactly acquire data which is like 0s, 1s, 2s,
right now It has a little delay
Thanks for your help
09-25-2012 02:26 PM - edited 09-25-2012 02:29 PM
Use the Get Date/Time in seconds primitive (or Elapsed Time express VI) to determine when 1 second has elapsed instead of just waiting exactly 1000 ms. Your other code has some overhead which is causing the loop time to be > 1.0 second.
09-26-2012 10:05 AM
Hello VT92
I tried many hours. It still does not work.
I posted my code.Could you advice me where it is wrong?
Elaspsed time is not correct. Porbably I need to set up correct start time, right?
09-27-2012 09:21 AM
Try this. The accuracy is dependent on the event structure timeout.
09-27-2012 04:09 PM
I tried it, The new problem is when I log data, it is not starting from time =0s,
.Thanks for your help