Switch Hardware and Software

cancel
Showing results for 
Search instead for 
Did you mean: 

Get All Connections of Switch

Hi all,
i'm using NI Switch.llb for controlling NI2590 Switch.
How can i get status of switch (what channels are connected)?
0 Kudos
Message 1 of 3
(6,584 Views)
Nadav,
 
You can use niSwitch Get Relay Position to find if the status of a particular relay.
 
Guy Ferraro
Switch Product Support Engineer
NI - USA
0 Kudos
Message 2 of 3
(6,561 Views)

Hi Nadav,

An effective method when switching at a fast rate is to repetitively call niSwitch_CanConnect:
ViStatus niSwitch_CanConnect (ViSession vi, ViConstString channel1, ViConstString channel2, ViInt32* pathCapability);

When pathCapability returns NISWITCH_VAL_PATH_EXISTS, you know channel1 and channel2 are connected.

Let me know if you have further questions!

Chad AE
Applications Engineer

 

0 Kudos
Message 3 of 3
(6,559 Views)