Hardware: cDAQ-9174 with three modules, NI 9263(Outputs) and 2x NI 9215(Inputs).
In NI Max I can see the 'Status' of my devices and their modules, if they're plugged in or not.
I'd like to know how to get this device's status. In particular if it is connected to the computer, so I can tell the user "Duh.. the device isn't plugged in.". I should be able to tell if a device is disconnected or not and what modules are physically installed and in which slot. I've looked at DAQmx's functions NI-DAQmx C Reference Help for one that would report a "status" like property, but I couldn't find one.
Most device properties report the same independently of the device being connected to the computer or not, simply reports what's configured in NI Max.
Ok. So I've found that DAQmxSelfTestDevice() actually gives the following informative errors:
So, this function actually performs the desired functionality. But I still wonder, is there another better function suited for this? Something like DAQmxGetDeviceStatus().