LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview and DAQ measurement error :209802

Hi:
  I am using DAQ card PCI-6251.  I applied a voltage difference to a device using DAQ, and measure the corresponding electronic current using the same DAQ card.  However, I keep having the error poped up every 100 seconds ( Error-209802 occurred at DAQmx Wait For Next Sample Clock.vi:5). 
  In my code, I basically just put analog input and analog output in the same while loop.   So I really don't know how to modify the code in order to eliminate the error.  Could you please tell me how should I modify it?  Attached file is the code I wrote.  Thank you.
Jason
0 Kudos
Message 1 of 3
(3,495 Views)
Error-209802: You have the "Input voltage signal" Express vi set to use "hardware timing", try "on demand" instead (Open the express vi, under 'Timing Settings' -> 'generation mode').

Question: Will the voltage be set before the current is read?
Answer: Who knows? Could be either. Could be random.

There is nothing linking the two vis (set voltage/read current) and LabVIEW will try to execute both at at the same time. The race is on!

Suggestion, wire the error out cluster of which ever one you want to execute first into the error in cluster of the other.

There's about a dozen more suggestions I could add but this should get you going for now. (Would start to get a lot more complicated then the block diagram you currently have.)


Troy - CLD "If a hammer is the only tool you have, everything starts to look like a nail." ~ Maslow/Kaplan - Law of the instrument
0 Kudos
Message 2 of 3
(3,481 Views)

Hi:

 It's working fine now!  Thank you very much.Smiley Very Happy

Jason

0 Kudos
Message 3 of 3
(3,450 Views)