01-13-2009 07:45 AM
I am using an 1163 mux card and programming in C++. What I need to do is find out what the current mux position is, (this is a 4x mux). IReading through the minimal help file, it appears that I should use DAQmxSwitchGetSingleRelayPos function to read the mux, and probably better, DAQmxSwitchGetMultiRelayPos to query all four lines on the 4x mux..
The documentation states that the arguements are (const char relayName[], uInt32 *relayPos). (Boy, a one line example of how to configure the relayName sure would save Ni customers a lot of time researching how to configure the switch name!) Is this the correct function to use to find out which line is currently switched on? My card name is SC1Mod6, I want to read bank 0, and to start off, I guess I want to read channel 0. I am formatting teh relayName like this:
"/SC1Mod6/com0/ch0", and it is getting an error.
Thanks in advance!
Eric
01-14-2009 06:30 PM
Hey Eric,
First of all, what kind of error are you getting? What exactly does it say? I believeyou'll want it to use "/SC1Mod6/ch0:32" (where 0:32 would be the channels you are interested in scanning). Please give this a try and let me know how it goes, along with what error you are getting. Thanks!
aNIta