LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error -200279 in Analogue & Digital inputs

Hello,

I have a NI USB-6001 and I am trying to run the attached simple vi and I get an error 200279. It supposed to just acquire an analogue & a digital signal. Can someone help please?

Thank you in advance

0 Kudos
Message 1 of 13
(3,361 Views)

Hi anon,

 

general comment on Mathan's link:

Don't follow the first solution, but obey the 2nd and 3rd one!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 3 of 13
(3,315 Views)

Thank you both for the prompt replies!

I am puzzled as without the digital DAQmx it works at rate: 10000 / samples:100.

Is there a way to speed it up without causing the error?

0 Kudos
Message 4 of 13
(3,300 Views)

Hi anon,

 

use parallel loops for your (atleast) two DAQmx tasks.

Running the simple DI/DO tasks with 10ms loop rate is kind of problematic with those cheap USB devices…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 13
(3,294 Views)

Hello,

As you can see from the attached vi, even with queue control it still gives the same error

0 Kudos
Message 6 of 13
(3,290 Views)

Hi anon,

 

unfortunately I'm stuck with LV2014 right now, so I cannot look at your VI.

Could you attach it for LV2014? (Edit->Save for previous…)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 13
(3,284 Views)
0 Kudos
Message 8 of 13
(3,280 Views)

Hi anon,

 

you are reading just one sample per DAQmxRead in your AI task loop - this is way too slow! You need to read blocks of samples as recommended in the link provided by Mathan!

- Right now you additionally even block your AI loop from running with the ReadQueue function as it has to wait for new DI data. What's the point of the queue when all it does is displaying those two boolean values? Why not display them in the DI loop?

- Building an array is a slow operation due to memory management. How large will the array grow?

- Displaying data in a graph inside of your loop is a (very) slow operation! How large will the array grow? How many data do you want to display in the graph?

- Why did you wire the "100" constant at the "samples per channel" input of DAQmxTriggering? Did you read and understand the help for that function?

 

I am puzzled as without the digital DAQmx it works at rate: 10000 / samples:100.

Why don't you use these settings right now when they used to work?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 9 of 13
(3,276 Views)

Hello!

This code is a snippet from a larger code and its the section that gives out the problem.

The system basically reads a strain sensor connected to a mechanical apparatus that makes a repeatable motion. The AI records the data and plots them as they are created. Filling the graph with points as the acquisition progresses is important. The whole operation is a 10 seconds movement and I need at least 1000 points in it to see in detail.

The Boolean are two and the first indicates when the system is ready to move and the second when the apparatus is returning to home position.

Without the DI I have about 300-400 samples in the graph over the stated period of 10 seconds. With the DI it gets reduced to half that. If I increase the sampling rate I get the 200279 error. This usb-6001 may be low spec but it has up to 20kS/s so it should be able to give 1000 samples over a 10 sec period.

 

0 Kudos
Message 10 of 13
(3,249 Views)