Academic Hardware Products (myDAQ, myRIO)

cancel
Showing results for 
Search instead for 
Did you mean: 

DMM and AI chanells in NI Elvise II+

I want to read Dmm and AI0 from NI Elvis II+ synchronously.
When I add the Sample clock, DAQ READ function returns the error -200279
"dmm.vi<append>
<B>Property: </B>RelativeTo
<B>Corresponding Value: </B>Current Read Position
<B>Property: </B>Offset
<B>Corresponding Value: </B>0
<B>Task Name: </B>_unnamedTask<1B>"

0 Kudos
Message 1 of 4
(6,556 Views)

Hey Manushak,

 

Please see the following article on troubleshooting steps for your error:

 

http://digital.ni.com/public.nsf/allkb/AB7D4CA85967804586257380006F0E62?OpenDocument

 

Regards,

Ian K.
Software Developer
Data Ahead AG
0 Kudos
Message 2 of 4
(6,457 Views)

Hello Manushak,

 

There are a couple of issues with your AI0 acquisition. You should configure the timing before starting the task. Also, since the task is configured as finite, you will want to start (and stop) the task during each loop iteration. The defaults for acquisition timing are 1000 points at 1 kSps, but your read VI is set for a single point (maybe you did that intentionally when disabling the timing).

 

I've modified your VI and got it to work (see attachment). Keep in mind that this is software-timed coarse synchronization. The DMM on ELVIS can't be hardware timed and is pretty slow (a few updates per second), so you won't get millisecond-scale synchronization.

 

I hope this helps,

 

Charles Y.

National Instruments

 

0 Kudos
Message 3 of 4
(6,278 Views)

Hello all
Thank you for help.
Ian says that "Attempted to read samples that are no longer available" it is one reason of my problem, but the main reason which Charles has noted is the mixing order of functions.
Here my final solution

0 Kudos
Message 4 of 4
(6,221 Views)