Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Setting GPIB termination character

Question about instrument configuration.

I am working with a test rig which contains about 20 old instruments. Most of them from the 70's. My task is to replace the HP 9836 computer controlling these instruments and translate all code from BASIC to C++.

I need to be able to configure termination individually for each instrument. Is there a configuration file where i can accomplish this? I thought i had found it in the gpib.ini file in the NI-488.2 folder but any change i make in this file has no effect. (Especially a HP 5345A counter seems to require setting termination character to CR).

 

[DEV12]

Connect = GPIB0

DeviceName = DEV12

EOSchar = 0x0D

EOScmp = 7-bit

EOSrd = No

EOSwrt = No

EOT = Yes

PAD = 12

READDR = No

SAD = None

SPollTime = 1sec

TMO = 10sec

0 Kudos
Message 1 of 3
(397 Views)

I seem to remember being able to do that, but not the details of how anymore.  You could setup the bus to not send any termination characters, then send them yourself as required.  I'd create my own INI with gpib address as keys and termination characters as values.  I'd then read the instrument GPIB addresses and termination characters into an array and then write a function that selects the termination based on the GPIB address.

 

Hope that helps,

Craig

0 Kudos
Message 2 of 3
(349 Views)

Thanks Craig! I am happy to hear that it might be possible. My main concern is that while it is possible to send whatever termination I need, I still have to get the GPIB driver to terminate when receiving this character also. The communication capture i have recorded proves that the instrument is not asserting EOI, which cause a timeout to occur every time i try to read from the instrument.

0 Kudos
Message 3 of 3
(346 Views)