Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Time Problems

We want a program to take voltage and time data for a specified time at a given sampling rate (typically tens to hundreds of seconds at 10Hz). I'm using a DAQmx vi to interface to the PMT with a NI USB 6009, 8input/14bit. I've run into two problems having to do with time:

 

1. When I save the data after the loop executes (the write to measurement vi that's outside the while loop), timing data is lost. Note that in the "outside" text file (from the screenshot), there are iteration numbers or something in the time column (0,1,2...etc.). Why? And, how can I retain the time data? I'm thinking of using an array, but I'm not sure. Basically, I want the data saved "inside" the loop (see "inside" text file screenshot) to be the same as that saved outside (because I want the "save" prompt to occur at the end of the program execution). 

 

2. I have a millisecond timer in the loop and it's seems to be working fine (if you look at the time data from the inside loop save). But, notice the lapse between time = 0 and the next data point. Is it a delay in my program? I'm thinking probably, but how can I (or can I) get rid of it?

 

Also, if you have some critique of my program, please share them.

0 Kudos
Message 1 of 2
(2,630 Views)

Please keep in in 1 post.  Link to the same post in the LabVIEW board: http://forums.ni.com/t5/LabVIEW/Time-Problems/m-p/2172296


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 2
(2,622 Views)