Distributed Control & Automation Framework (DCAF)

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmx module Error -200227

So I was playing around withe the provided DAQmx module and kept getting error -200227.

 

I tracked it down to runtim.lvclass:Configure AI Task.vi

 

The offset is set to '-1'. Setting it to '0' fixes the problem.

 

I don't quite know how this could be missed...?

 

niNickC_0-1598458784044.png

 

Nick
0 Kudos
Message 1 of 5
(3,299 Views)

Hi Nick, that change was made in this pull request:

https://github.com/LabVIEW-DCAF/DAQModule/pull/57

 

And was aiming to solve this issue: https://github.com/LabVIEW-DCAF/DAQModule/issues/53, the issue is still open but we haven't fix it yet. 

What hardware are you using?

 

Benjamin C
Principal Systems Engineer // CLA // CLED
Message 2 of 5
(3,273 Views)

Ah I see.

 

This is on a 9133 RT cDAQ.

 

Hmm.

 

Rather than a for loop as suggested by agomez08, could just add a wait between the start and setting that property?

 

Nick
0 Kudos
Message 3 of 5
(3,252 Views)

I attempted a wait with no success. I don't think this is the problem anyway as read will report -200277 on every iteration. No amount of waiting will let DAQmx read without error. Its more like for this device an offset of '-1' is simply not supported.

A keep it simple solution might be to just read all available samples and only use the latest one:

niNickC_0-1598521524484.png

 

Nick
0 Kudos
Message 4 of 5
(3,244 Views)

That looks like a good approach, we just need to check that we don't get the delay or the error when doing that. 

Benjamin C
Principal Systems Engineer // CLA // CLED
0 Kudos
Message 5 of 5
(3,220 Views)