ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Register for DAQmx event on module insert

Hello,

I was hoping there is a way to detect when a new module is connected on a cDAQ chassis.

 

Apparently the DAQmx events are just for signals.

 

Basically I'm trying to make a fancier DAQmx Physical channel selector that would autopopulate when a module is added or removed from the chassis. I'm trying to avoid polling the DAQmx properties all the time.

 

Thanks,

Jimmy

0 Kudos
Message 1 of 3
(1,223 Views)

Sorry, I don't have an answer for whether there's an event-like mechanism available to do this without polling.

 

If it turns out that there isn't, I'd suggest that you post this as an idea/request over on the Data Acq Idea Exchange.

 

 

-Kevin P

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
Message 2 of 3
(1,183 Views)

There is no native LabVIEW event unfortunately. I have used polling to accomplish this, but like you I don't like it.

 

The following links may provide some use if you are Windows savy, I am not. Playing around with them, they seemed to make a callback event when I unplugged/plugged a USB 4431, however I did not examine in detail. However, the dll's are 32 bit, and I am working in 64 bit. I don't have a compiler to change them. The source code is there though.

 

https://forums.ni.com/t5/LabVIEW/How-to-catch-USB-device-plug-unplug-events/m-p/1467502/highlight/tr...

 

https://forums.ni.com/t5/Example-Code/Windows-Message-Queue-Library/ta-p/3996212

 

mcduff

Message 3 of 3
(1,176 Views)