DAQmx Task Gives Error After The System Goes Into Sleep Mode

Updated Jan 31, 2023

Reported In

Hardware

  • NI CompactDAQ Chassis

Software

  • LabVIEW

Driver

  • NI-DAQmx

Issue Details

I'm running a continuous task on my Network cDAQ(CompactDAQ) Chassis. The device disconnects after the system goes into sleep mode and I get the below error. What might be causing it?
 
image.png

Solution

This is an expected behavior when the system goes to sleep while the DAQmx task is running
  • Since you are using a network cDAQ chassis, you must reserve the chassis to the current host system.
  • When a cDAQ chassis and PC loses communication due to the system powering down, the chassis will have to be reserved by the host system again.
  • Sleep mode could also be an issue because most PC systems disconnect or power down ethernet after a certain period of inactivity.
  • To avoid having to go through NI MAX to reserve the chassis, you could use the DAQmx Reserve Network Device.vi which will reserve the cDAQ chassis to the system calling the VI.