Section 13: LPT library function reference
Model 4200A-SCS Parameter Analyzer Reference Manual
13-20
4200A-901-01 Rev. C / February 2017
kibcmd
This command enables universal, addressed, and unaddressed GPIB bus commands to be sent through the
GPIB interface.
Usage
int kibcmd(unsigned int
timeout
, unsigned int
numbytes
, char*
cmdbuffer
);
timeout
The timeout for transfer (in 100 ms ticks)
numbytes
The number of bytes in
cmdbuffer
to send with the ATN line asserted
cmdbuffer
The array that contains the bytes to transfer over the GPIB interface
Details
These commands can consist of any command that is valid with the ATN line asserted, such as
DCL
,
SDC
, and
GET
. The following table lists these GPIB commands.
kibcmd
does the following:
1. Asserts attention (ATN).
2. Sends byte string (command buffer).
3. De-asserts ATN.
GPIB command list
GPIB command
Data byte
(Hex)
Comments
Universal
LLO (local lockout)
DCL (device clear)
SPE (serial poll enable)
SPD (serial poll disable)
11
14
18
19
Locks-out front panel controls.
Returns instrument to default conditions.
Enables serial polling.
Disables serial polling.
Addressed
SDC (selective device clear)
GTL (go to local)
GET (group execute trigger)
04
01
08
Returns instrument to default conditions.
Sends go to local.
Triggers instrument for reading.
Unaddressed
UNL (unlisten)
UNT (untalk)
LAG (listen address group)
TAG (talk address group)
SCG (secondary command group)
3F
5F
20-3E
40-5E
60-7E
Removes all listeners from GPIB bus.
Removes any talkers from GPIB bus.
Place instrument at this primary address
(0 through 30) in listen mode.
Place instrument at this primary address
(0 through 30) in talk mode.
Place instrument at this secondary
address (0 through 30) in listen mode.