LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmx Data Transfer Mechanism (-200996) on first run only

Hi All,

 

I have an odd DAQmx problem that only happens in the runtime environment and only happens on the first time I run the executable. After the executable finishes, I can click the run arrow again and everything works as expected. Judging by the error explanation, it looks like I'm trying to get N Samples but the hardware is configured for single point. Has anyone seen this before? The full error text is: 

 

Error -200996 occurred at DAQmx Write (Analog 1D Wfm NChan NSamp).vi:2

Possible reason(s):

Data Transfer Mechanism is not set to Programmed I/O, which is the only value supported when the Sample Mode is Hardware Timed Single Point.

Set your Data Transfer Mechanism to Programmed I/O or change the Sample Mode.

Property: AO.DataXferMech
Corresponding Value: DMA
Property: SampQuant.SampMode
Corresponding Value: Hardware Timed Single Point

Task Name: _unnamedTask<0>

0 Kudos
Message 1 of 3
(2,460 Views)

Did you expect this to be cloned?  Don't know if it makes a difference, just checking.

DAQmx Write (Analog 1D Wfm NChan NSamp).vi:2

aputman
------------------
Heads up! NI has moved LabVIEW to a mandatory SaaS subscription policy, along with a big price increase. Make your voice heard.
0 Kudos
Message 2 of 3
(2,412 Views)

I call it asynchronously because I want it to run in the background, but I only meant to make one instance at a time.

0 Kudos
Message 3 of 3
(2,409 Views)