From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmx plugged in user event

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.

 

0 Kudos
Message 1 of 1
(534 Views)