01-19-2017 08:01 AM
Ethernet cDAQ chassis with AI module is connected to a Windows computer with NI-DAQmx Base installed. The chassis and module were earlier configured using NI-MAX, but on a different computer. The name and (configured as static) IP of chassis are known.
Can the module be initialized and used by means of C API calls only, without installing NI-MAX? Would it be sufficient to find the device with NISysCfgFindHardware() and reset with NISysCfgResetHardware() ?
Thanks,
Mikhail
Solved! Go to Solution.
01-19-2017 01:43 PM
You'll probably want to look at DAQmxAddNetworkDevice(), DAQmxReserveNetworkDevice(), DAQmxUnreserveNetworkDevice(), and DAQmxDeleteNetworkDevice().
01-20-2017 06:33 AM
Thanks, that looks interesting. DAQmxAddNetworkDevice() has an option to reserve device after adding. It both takes device name as an input and returns it, and documention does not explain, why. Is input device name optional?
01-20-2017 08:11 AM
The deviceName parameter is an optional string to choose the device name; if not specified, a device name will be chosen for you (by default, it's the device's hostname, itself a default akin to "cDAQ9188-1234ABC").
The optionality is mentioned in the docs for the LabVIEW version of that function, but does not seem to have made its way into the C docs. I'll try to prod someone into getting that fixed.
01-20-2017 08:21 AM
Ah, that's a good tip, to check LabView version doc. They are probably more complete for other functions as well.
Thanks,
Mikhail