LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically Load DAQmx Config File

Hello Fellow Colleagues,

 

So as many of you know, when you compile a LabVIEW program that uses a DAQmx Task (configured in the project) into an executable, a "NI-DAQmx.ini" file is automatically generated. This file is loaded when you start the program, automatically, by the DAQmx library. I can edit this file easily, using a text editor, to make changes to terminal configuration, scales, channel names, etc. This works as long as I do so before I run the executable program. There is obviously some function DAQmx is using to load all these settings, and I would like to know if I can use it as well.

 

As a very simple example of what I would like to achieve, lets say I have two of these config files (config#1 and config#2).These are pretty much identical, but they have different channel names and scales. Lets say that I'm currently using Config#1 but would like to switch to config#2, while the program is running (I realize that any DAQ operations will need to reset, but that's fine). is there a native DAQmx VI that allows me to load a new configuration from a DAQmx file? My goal is to leverage this capability, rather than building my own custom configuration library to load a file and configure DAQmx. Thanks!

 

Best,

Alex W.

 

0 Kudos
Message 1 of 2
(2,530 Views)

Do you happen to have any screenshots of what you are trying to do? I am having trouble understanding what your question is.

0 Kudos
Message 2 of 2
(2,471 Views)