I am building applications using NIDAQ and C++.
I frequently change the device using either a PCI-6040 or a DAQ-Pad.
Whenever I change the device, my application gives me a -10401 (unknown device) status error the first time I run it.
I can run the NI MAX program without error, and after that, my application runs without error, even if I shutdown and restart (as long as I don't change devices).
What is the MAX program doing and can I replicate it in my application?
Thanks for any hints?
Gordon