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,592 Views)
Hey ks12,
I would highly suggest using either the Switch API or the DAQmx Switch API. For instance, instead of switching relays by "typing" them as a digital output, you just simply connect channels together after initializing to a certain topology. Since you said you wanted to use DAQmx, I would suggest going to (in LabVIEW) Help>>Find Examples then click the "search" tab and search for "switch". You should find several examples to help you begin coding using the Switch or DAQmx-Switch API. This is much easier (and faster) than using the Traditional DAQ API.

Good luck,
Gavin Goodrich
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,574 Views)