LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I set programatically DAQ configuration?

I configured and saved my DAQ subsystem in a .daq file using NI MAX. Now I can set active configuration by MAX menu commands, Tools->NI-DAQ Configuration->Set Active Configuration, but the matter is I need to do it programmatically. My question is:
Is there any way to set DAQ configuration (i.e. to restore the DAQ configuration from the .daq file) programmatically ?

Thank you in advance.
0 Kudos
Message 1 of 3
(3,111 Views)
Unfortunately, there is no way to set the active configuration programmatically in LabVIEW. There is an ActiveX control in LabVIEW that allows you to manually change the configuration of MAX from within LabVIEW.

You can use the NiMax Viewer ActiveX control to configure your hardware directly in LabVIEW. You still must configure all settings manually, but you can do so in LabVIEW instead of launching a separate application (MAX).

To use the control, place an ActiveX container on the front panel. Right-click the container, select Insert ActiveX Object from the shortcut menu, select NiMax Viewer, and click the OK button.

This container gives you access to the configuration tree of MAX but you aren't able to get to the Tools menu option.

Refer to the LabVIEW H
elp, available by selecting Help»Contents and Index (6.0) or Help»VI, Function, & How-To Help (6.1 & 7.0), for more information about using ActiveX containers.

Regards,

Todd D.
NI Applications Engineer
0 Kudos
Message 2 of 3
(3,110 Views)
Hi Todd,
thank you for reply. Unfortunately NIMax Viewer does not help me much as I need to deploy a test fixture to the production floor that uses DAQ (actually configured by MAX) and it is not intended to be operated in a manual mode. I noticed National Instruments MaxCtrl 1.0 Version 1.0 ActiveX registered on my computer and it has such objects as mxConfiguration, mxMenuCommand and some more. What they are intended for? Is there any description of this ActiveX?

Regards,

Peter P.
Medrad, Software Engineer
0 Kudos
Message 3 of 3
(3,109 Views)