Ibclr, Ibclr -7 – Measurement Computing GPIB-488 User Manual
Page 20

Chapter 3
GPIB 488.1 Library Reference
GPIB-488
3-7
IBCLR
Clears a specified device.
Syntax
C
ibclr (int device)
Parameters
device
is an integer containing the device handle.
Returns
ibsta
will contain a 16-bit status word as described in Appendix B,
.
iberr
will contain an error code, if an error occurred.
Usage Notes
When this routine is executed, the GPIB Interface Board (which is currently the CIC) sends
its talk address over the GPIB. This makes it the active talker. It then unlistens all devices and
addresses the specified device as a listener. Finally, the GPIB board clears the device, by
sending the
Selected Device Clear
message.
Example
This example uses
ibdev
to return the unit descriptor for a device at PAD 5, a DMM, into the
variable dmm. The DMM is then cleared.
C
int dmm;
dmm = ibdev(0,5,0,13,1,0);
/*open instrument*/
ibclr (dmm);
/* clear it */
- ACC-300 (7 pages)
- AI-EXP32 (20 pages)
- AI-EXP48 (19 pages)
- BTH-1208LS (30 pages)
- 6K-ERB08 (32 pages)
- BTH-1208LS Quick Start (4 pages)
- 6K-SSR-RACK08 (33 pages)
- BTH-1208LS-OEM (27 pages)
- CB-COM-Digital (68 pages)
- CB-7018 (68 pages)
- CB-7000 Utilities (44 pages)
- CB-7080D (74 pages)
- CB-COM-7033 (44 pages)
- CB-COM-7017 (72 pages)
- CB-COM-7024 (76 pages)
- CB-NAP-7000P (36 pages)
- CIO-DAC02/16 (16 pages)
- CIO-DAC02 (18 pages)
- CB-NAP-7000D (56 pages)
- CIO-DAC16-I (16 pages)
- CIO-DAC16/16 (20 pages)
- CIO-DAS08 (21 pages)
- CIO-DAC16 (20 pages)
- CIO-DAS08/JR (16 pages)
- CIO-DAS08/JR/16 (14 pages)
- CIO-DAS08/JR-AO (16 pages)
- CIO-DAS08-AOM (32 pages)
- CIO-DAS08-PGM (28 pages)
- CIO-DAS16/330 (34 pages)
- CIO-DAS48-I (17 pages)
- CIO-DAS16/M1 (38 pages)
- CIO-DAS48-PGA (18 pages)
- CIO-DAS800 (20 pages)
- CIO-DAS802/16 (22 pages)
- CIO-DAS6402/16 (40 pages)
- CIO-DAS-TEMP (20 pages)
- CIO-DDA06/16 (18 pages)
- CIO-DDA06/JR (17 pages)
- CIO-DIO24H (20 pages)
- CIO-DIO24/CTR3 (21 pages)
- CIO-DI192 (24 pages)
- CIO-DDA06 (21 pages)
- CIO-DIO48 (19 pages)
- CIO-DO192H (16 pages)
- CIO-DIO192 (20 pages)