11-07-2005 01:43 PM
11-07-2005 03:41 PM
11-08-2005 12:16 PM
11-08-2005 02:43 PM
Under all Windows NT platforms Get Date/Time in Seconds has a resolution of 10ms. This is a limitation of the underlying Windows API functions.
@pulmat wrote:
The issue I have is related to manually timestamping the data (voltages only) received from a flow meter connected via serial communication. After sending a "go" command using VISA Write to the flow meter, it streams data at 200Hz until "S" command is sent to terminate the streaming. I have developed a VI that successfully reads/parses (with VISA Read) the streaming data into numerical values. I set up the Timed Loop at 200Hz to read one voltage at a time from the flow meter. I was able to receive every data from the flow meter smoothly. I attempted to time stamp each data value received in each iteration of the "Timed Loop" through subtraction of current and initial time with "Get Date/Time in Seconds" which is similar to Elapsed Time.vi. The timestamps I recieved are odd in that I get a series of two same timestamps (for example one time I got 0.401 0.401 0.411 0.411 0.421 0.421 0.431 0.431 0.441 0.441....etc.). The corresponding flow meter data are variable and do not exhibit the same pattern. The expected time stamps are 0.401 0.406 0.411 0.416 which are in increments of 0.005s. It looks like as if labview cannot update the 3rd decimal point since every other timestamps made sense and are in increments of 0.01s, but it was noted by LabVIEW that if it is used as a timing source the fastest speed is 1kHz which is fast enough.
I have spent a long time on this trying to get an accurate timestamp readings for the data acquired at 200Hz via serial communication without having to use the DAQ devices. Let me know if you need more information. I have attached the VIs in zip format below. Any inputs will be most appreciated.
11-09-2005 09:20 AM