Hi,
I've been working on an application with cDAQ 9178 and a connected NI9435 (digital input module) that needs to detect the change of state of a digital input and I achieve this task with user events like described here:
https://forums.ni.com/t5/Example-Code/DAQmx-Change-Detection-Event-Registration/ta-p/3502871?profile...
Now, I would like to achieve some other tasks like: device got disconnected and device got plugged in. The first one is pretty simple, using the "Done" event on the register for events node allows me to do that. But what about discovering that a device (the NI9178) got plugged in? Is this possible with a user event? I know I could simply perform a polling discovering for DAQmx resources in a loop or a state machine until I find what i need, but if there's an event method I would really like it.
Thanks in advance.