Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to set device timeout using IEEE-488.2 commands?

ibtmo() requires a unit descriptor that is not used in the IEEE-488.2 commands. To set a device's timeout value, do I need to use ibdev() to get a ud, then set the timeout using ibtmo() or ibconfig(), and finally take the device offline with ibonl()? Or is there an easier way using only IEEE-488.2 commands?
0 Kudos
Message 1 of 3
(4,536 Views)
Try calling ibtmo(0) where the "0" is for GPIB board index
(0 for GPIB0, 1 for GPIB1, etc..). The "board level" functions
strictly require a "ud" obtained by ibfind("gpib0") call, but
work with immediate parameter such as 0 or 1.

makoto

"deke" wrote in message
news:5065000000080000007A1B0000-986697009000@quiq.com...
> ibtmo() requires a unit descriptor that is not used in the IEEE-488.2
> commands. To set a device's timeout value, do I need to use ibdev()
> to get a ud, then set the timeout using ibtmo() or ibconfig(), and
> finally take the device offline with ibonl()? Or is there an easier
> way using only IEEE-488.2 commands?
0 Kudos
Message 2 of 3
(4,536 Views)
Thanks, but I think that ibtmo() is a partial answer. ibtmo(0 or 1) would set the timeout value for all instruments on the bus, not just the instrument I need to access. I'd like to have different timeout values for specific instruments. For instance, the spectrum analyzer needs a much longer timeout value than the DMM or power supply.
0 Kudos
Message 3 of 3
(4,536 Views)