LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DIO Port Config to control an scxi 1161 switch module under NiDaqMX

I'm trying to use DIO Port Config to control an scxi 1161 switch module.
I have used an example VI from NI for a few years and it has worked well.
However now I have NiDaqQMX and it will not run. When I try to set up the port number
as SC1Mod1 versus sc1 ! md1 ! 01 , I get the error message:

NI-DAQ LV: An error was detected in the input string; the arrangement or
ordering of the characters in the string is not consistent with the expected ordering..

Can I use this VI under NiDaqMX or what do I have to alter to make it work?
It will run correctly if I configure the 1161 under traditional NiDaq, but I need to use NiDaqMX.
Also I have used this VI a lot to control external 12VDC relays for switching signals to the DMM and
I want to be able to use it as it works great for that application.
Any help appreciated.
Thanks KS
0 Kudos
Message 1 of 2
(2,634 Views)
Hey ks12,
The Traditional DAQ VI "DIO Port Config" will not take input strings in the format of DAQmx. In order to use the switch module, you can use the NI-SWITCH API or the DAQmx Switch API. Both can be found on the functions palette in LabVIEW. Either is good to use for simple applications, however, the NI-SWITCH API is better for most cases. Check out some of the examples by going to Help (in LabVIEW)>>Find Examples and choose the search tab and search for "switch". You can see which driver it uses on the right-hand side of the list by the icon shown.

Hope this helps and thank you for choosing National Instruments!

Sincerely,
Gavin Goodrich
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,625 Views)