Measurement-computing GPIB-488 Uživatelský manuál Strana 71

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 116
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 70
Chapter 4 GPIB 488.2 Library Reference
GPIB-488 4-3 Programming Reference Manual
DevClear
Clears one device.
Syntax
C DevClear(int board, short address)
Parameters
board is an integer which identifies the GPIB board to be used for this operation. In most
applications, this value is 0.
address is the GPIB address of the device to clear.
Returns
ibsta will contain a 16-bit status word as described in Appendix B, IBSTA.
iberr will contain an error code, if an error occurred.
Usage Notes
This routine sends the GPIB Selected Device Clear (SDC) message to the specified device.
To clear multiple devices, use the
DevClearList routine.
If
address is set to NOADDR, then all connected devices on the GPIB is cleared through the
Universal
Device Clear (UDC) message.
Example
This example clears the device at GPIB primary address 4, secondary address 30 connected
to GPIB board 0.
C DevClear(0, MakeAddr (4,30));
/* Use MakeAddr macro (in GPIB.H) to pack
primary and secondary address */
Zobrazit stránku 70
1 2 ... 66 67 68 69 70 71 72 73 74 75 76 ... 115 116

Komentáře k této Příručce

Žádné komentáře