12-15-2020 09:21 AM
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
12-18-2020 08:04 AM
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
12-18-2020 11:16 AM
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/Example-Code/Windows-Message-Queue-Library/ta-p/3996212
mcduff