LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to programmatically configure MAX?

LabVIEW 5.1. Would like to programmatically load a ".daq" (MAX configuration) file. I have 2 data acquisition systems and often I want to bounce back and forth between them. Going into MAX and reading the ".daq" file gets tedious (and sometimes I just forget). Would be nice if my labview program would configure MAX for me.
0 Kudos
Message 1 of 4
(3,725 Views)
I've checked a few sources on this matter, and I've tried doing this on my own. Here's the scoop.

There's a VI you can download to do this, and it modifies the windows registry to change the .daq file that MAX is looking for. Two drawbacks:

1) It's done with 6i VIs that don't exist in 5.1, and you don't have 6i.

2) You must restart MAX (physically start it) for the change to take affect.

If you leave MAX set up to look at the default niconfig.daq file and then make your .daq files with different filenames, you can do the same in 5.1 by just copying your .daq to niconfig.daq, but in this case, you'd STILL have to run MAX for it to take effect.

Therefore, after copying the .daq file, you'd have to programmatically open MAX (and then either close it, or j
ust leave it open). That would do what you want.

Hope that helps.

Mark
0 Kudos
Message 2 of 4
(3,725 Views)
There is a VI that installs with NI-DAQ for both LabVIEW 6 and 5.x. This VI is called Set Default DAQ Configuration File, and it can be found in LabVIEW\vi.lib\daq\dqchnutl.llb. This VI will programmatically change your default configuration file. If you want to programmatically configure that file, you can launch a program called NIAutoConfig.exe from your program. By doing this, you are accomplishing the same thing that MAX does when you refresh Devices and Interfaces.

NIAutoConfig installs with NI-DAQ 6.7 and later.

Regards,
Erin
0 Kudos
Message 3 of 4
(3,725 Views)
Hello
I use labview 6.1, can I have this VI to read the max configuration setting
0 Kudos
Message 4 of 4
(3,725 Views)