Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Autodetect GPIB when plugging in

Hello, I am trying to automatically detect when a GPIB 488.2 is plugged into my device so that I can disable the buttons on it, i.e. enter remote mode. Is there a pin of the GPIB I can route to my micro controller that will be pulled high or low when connecting? I don't know a whole lot about GPIB. Our old version of this device was capable of auto detecting a 488.2 so I know it is possible but it was designed 25+ years ago so there is no way of figuring out how its done.

0 Kudos
Message 1 of 4
(4,259 Views)

You would need to have your GPIB controller poll through the addresses.  If you connect a new instrument to the GPIB bus, nothing happens until the controller attempts to address the instrument in some manner.  At that point in time, the instrument will be placed into remote mode if available.

Help the Community (and future reviewers) by marking posts as follows:
If it helped - KUDOS
If it answers the issue - SOLUTION
0 Kudos
Message 2 of 4
(4,238 Views)

Can you explain the process of polling through the addresses?

 

Can I just have the REN line pull an interrupt pin high on my microcontroller when plugging it in since REN is high by default?

0 Kudos
Message 3 of 4
(4,236 Views)

Seems that you are designing a data source not a controller.

One trick to detekt the connector is to (ab)use two GND lines (the rs488 has a bunch of them) and detekt a connection between them.

But using the REN potential is the recommended / intended way to detect that your device is under remote control.

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 4 of 4
(4,213 Views)