Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Initialize ethernet CDAQ without NI-MAX using only C API

Solved!
Go to solution

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

0 Kudos
Message 1 of 5
(3,699 Views)
Solution
Accepted by topic author Mikhail_K
Message 2 of 5
(3,671 Views)

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?

0 Kudos
Message 3 of 5
(3,659 Views)
Solution
Accepted by topic author Mikhail_K

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.

——
Brandon Streiff
ni.com/compactdaq · ni.com/daq
Message 4 of 5
(3,653 Views)

Ah, that's a good tip, to check LabView version doc. They are probably more complete for other functions as well.

 

Thanks,

Mikhail

0 Kudos
Message 5 of 5
(3,650 Views)