Switch Hardware and Software

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmxSwitchGetMultiRelayPos

Hello,
 
I have a PXI-2566 relay module, and I am trying to query the position of every relay in the module.  I see that there is a function DAQmxSwitchGetMultiRelayPos, but the documentation for this function is extremely poor.  My question is, how am I to format the relayList string that gets passed to the GetMultiRelayPos command?  Do I just put the values (0-15) in this list, or (k0-k15), or /PXI1Slot2/k0 - /PXI1Slot2/k15, and are there separators between the values?  More extensive documentation aside from "the set of relays you want to query" would be helpful.  Thank you for your time.
 
 
0 Kudos
Message 1 of 2
(6,439 Views)
Sorry for the unclear documentation.
What environment do you use? If you are in CVI, you can bring up a function panel for the DAQmxSwitchGetMultiRelayPos function, and click on the "..." button next to the relay names control, then click on 'browse' and multi-select relays.
If you then examine the generated function call, you will notice that the syntax for the range of relays is using colon, e.g.
"/PXI1Slot2/b0r0c5:12", or in your case, "
/PXI1Slot2/k0:15"

I hope this helps!


0 Kudos
Message 2 of 2
(6,436 Views)