07-29-2014 01:51 PM
Hello All,
Working with NI-Switch again to configure multiplexer instrument cards, and noticed a difference between NI-Switch and DAQmx-Switches. Could someone tell me how to configure the NI-Switch function "get relay position" for multiple relays? The DAQmx Switches equivalent to this functiion can accomplish it, but I don't see how to do it with NI-Switch. Please advise. Thanks.
GSinMN
07-29-2014 02:52 PM
GSinMN,
Unfortunatly, you are unable to call multiple relays using this NI-SWITCH function. Instead try to call this in a for loop. There is a KnowledgeBase Article about this, Get Relay Position, which states "You will have to call this VI repeatedly to get the relay position of multiple relays. To return all relay positions with one call, you can use DAQmx Switch Get Relay Position.vi from the NI-DAQmx API."
07-30-2014 08:08 AM
Hello Frank,
Thaks for letting me know. I suspected as much. I did actually already try the DAQmx version to get the position of all relays, but you can't mix handles/references between the two APIs. Thanks again.
GSinMN