Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

checking if a device gets disconnected

Assuming multiple devices were opened successfully using ibdev, what would be the best method to check if a device get disconnected or goes offline?   I was thinking of just having a timer that would call FindAllListeners and comparing it with the list of successfully opened devices.  Or would a serial poll be a better solution?  Each device would get serial polled say every second.
0 Kudos
Message 1 of 3
(2,736 Views)
Why are you so serious about someone switching off a device or disconnecting it?

Each second is very short, what are you expecting?
greetings from the Netherlands
0 Kudos
Message 2 of 3
(2,725 Views)
Hello sny:

Thank you for contacting National Instruments. Have you tried opening NI-SPY and then doing a scan for instruments in Measurement & Automation. NI-SPY will list all the commands being sent to check which devices are present, you can use those commands if you choose to.
Regards,

Roland A.
Applications Engineer
National Instruments

Check out VI Roadshow
0 Kudos
Message 3 of 3
(2,705 Views)