LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Set DAQ default file for DAQmx

Is it possible to load a DAQmx file (*.nce) on MAX programmaticaly in
LabView 7? I know it's work for tradionnal DAQ file (*.daq) with "Set
DAQ default file.vi" but this vi don't work for DAQmx file.
0 Kudos
Message 1 of 4
(2,866 Views)
Hi FrankyD,

Unfortunately, there is no comparable function in DAQmx. The only way
to accomplish this is through the interface in Measurement &
Automation Explorer. I'll post if I find a workaround to this issue.

Ron
0 Kudos
Message 2 of 4
(2,866 Views)
Hi FrankyD,

There is not a way to programatically switch between DAQmx
configuration files. However if you need to switch between sets of
DAQmx tasks, channels and scales only (not devices), an alternative is
to programmatically create, configure, and manage these items yourself
in LabVIEW. This is more work, but gives you more control. Let me know
if this is the case and I can elaborate further.
0 Kudos
Message 3 of 4
(2,866 Views)
Hello FrankyD,

Thank you for contacting National Instruments.

It is possible to programmatically load a DAQmx file, but not with a
single VI. You will have to:

1 - Programmatically open MAX
2 - Move the window to the front
3 - Then simulate the necessary keystrokes to navigate to the import
window.

I have attached an example VI to help you get started. Currently, the
VI will work as long as there are no symbols (: \ / ) in the file path
string. To input symbols, you will have to map the correct code to
the Simulate Keyboard VI. The ASCII codes for keys can be found at:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/WinUI/WindowsUserInterface/UserInput/VirtualKeyCodes.asp

You will have to convert the ASCII to U8 number before
you can send it
to the Simulate Keyboard VI.

I hope this helps,

Sean C.
Applications Engineer
National Instruments
0 Kudos
Message 4 of 4
(2,866 Views)