LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why do I get mutliple samples of the same value when I query the DAQ in a timed loop with the DAQ set at one sample?

 I am a new user to Labview with about three weeks of experience using Labview 8.2.  For the most part I have been able to set up some vi without a lot of issues.  One problem that I am having that I cannot get a grip on is the data stream that I get from a DAQ call.  I set up the DAQ to a continuous mode with the sample size at 1 and the sample rate at 10 Hz.  I then enclose my vi with a timed loop that is set anywhere from 20 seconds up to 60 seconds.  The data is then sent to a file for analysis.  The problem is that instead of getting what I think should be 1 reading per time base (1 second or 60 seconds), I get multiple readings of the same value.  The test I am running is physically changing values every 10 to 15 seconds.  I changed the DAQ to an actual sample number without being in continuous mode and my data then seems to be right.  The only problem with that setup is the DAQ will not allow me to go to just one sample.  This makes me have to filter my final file.   I do not understand what I am actually getting when you trigger or query the DAQ for a reading?  Is there a buffer there? If so how do handle it?
 
 
0 Kudos
Message 1 of 2
(2,070 Views)
Hi testworld,

I'm glad your experience with LabVIEW has been pleasant so far and I am going to do everything I can to get your application up and running.  I tried duplicating a DAQ program based on the description that you gave and I was having difficulty reproducing the behavior.  Would you please post the code that is relevant to your issue?  Can you also please tell me which hardware you are using?  Thanks and have a wonderful day.

Best Regards,

Jeff Tipps
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,045 Views)