LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NI-DAQmx is unable to communicate with the device.

Hello,

after switch on of an embedded PC*) my compiled Labview 2017 program start by a shortcut in an autostart folder.

And it 'hang' about 10-20s and after this period an error is raised:

Error -200324 occurred at DAQmx Create Channel (AI-Sound Pressure-Microphone).vi:6950001
Possible reason(s):
NI-DAQmx is unable to communicate with the device. Make sure the device is present in and accessible to the system, and is not currently being reset.
Device: M2
Task Name: myTask

 

After the error the measuring program log the error and restart the measurement loop. Then is all ok.

 

But the long waiting time possible caused by an timeout in the daqmx driver is not nice.

 

Possible the daqmx driver is not ready after reboot?

How can I avoid this error?  Or can I set the timeout to a lower value, so I can wait in a loop until the DAQmx device is ready?

 

Peter

 

*) System config:

Windows 10 ltsb x64 with enabled Unified Write Filter to protect the system against sudden power loss.

cDAQ9174 with 2x 9250, 1x 9234, 1x 9201

Device: M2 is the second 9250.

0 Kudos
Message 1 of 4
(2,945 Views)

Hi Peter,

 

so is there any "M2" device available in your system?

Can you provide a MAX screenshot showing all available devices?

 

Is the "mytask" DAQmx task definition also available and valid?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(2,943 Views)

Hi Gerd,

the daqmx config is:

daqmx.jpg

And the task is valid. The error orrur only once direct after reboot. Possible if I wait 10 ... 30? seconds before start the program no error occur.

Best regards,

Peter

0 Kudos
Message 3 of 4
(2,938 Views)

Hi Peter,

 

either wait for 30s - or have your exe retry to initialise the DAQmx task on error...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 4
(2,924 Views)