04-07-2017 02:31 PM
I have been trying to have real time data monitored on the front panel with a NI 6009 DAQ card and capture the data into an excel sheet a constant rate. I am using a Elapse time function to capture the data into a excel file every 5 seconds. The problem is that the first value has a correct time of the current time but every other time has a time of the default 1/1/1904 00:00:00.000
I have the auto reset on and I have tried every feedback loop to reset the time properly.
thanks in advance for the help.
04-07-2017 02:40 PM
Here is an example of the data I'm getting
04-07-2017 03:14 PM - edited 04-07-2017 03:15 PM
The main problem I see is your program is "one big loop".
Rewrite it using a proper program architecture like a state machine and properly timestamping your data is a piece of cake.
Fixing this, not so much...
04-07-2017 04:04 PM - edited 04-07-2017 04:06 PM
How would I use a state Machine this application? that would just switch between VI blocks right?
04-10-2017
09:58 AM
- last edited on
01-08-2025
09:17 AM
by
Content Cleaner
@RTSLVU wrote:
The main problem I see is your program is "one big loop".
Rewrite it using a proper program architecture like a state machine and properly timestamping your data is a piece of cake.
Fixing this, not so much...
What do you mean? Ive looked up THIS tutorial and I'm not seeing how i can apply it to my case. Could you elaborate or point me in the right direction.
04-10-2017 11:42 AM - edited 04-10-2017 11:45 AM
Well looking at your program I see several discrete steps
If each one of these was a "state" in a state machine, adding a "Timer" state and using the timestamp from that for your data would be easy and future expansion or changes your program are far easier.