Measurement-computing GPIB-488.2 Manuale Utente Pagina 34

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 64
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 33
3-16 IOtech to Associated MCC APIs 986992 GPIB 488.2 Porting Guide
IOtech GPIB Command Associated MCC GPIB 488.2 Command
Listen EnableRemote
SendSetup
Syntax
Listen INT WINAPI Listen(DevHandleT devHandle,
BYTE primary,BYTE secondary);
EnableRemote EnableRemote(int board, short addresslist[])
SendSetup SendSetup(int board, short addresslist [])
Usage Notes
Listen is no longer to be used. Was used to address an external device to Listen.
EnableRemote - When this routine is executed, the system controller asserts the Remote
Enable (REN) line and the Controller addresses the specified devices as listeners.
The command issued in the following example places devices at GPIB addresses 6 and 7
(connected to GPIB board) in remote mode.
Example:
short addresslist[3] = {6,7,NOADDR};
EnableRemote(0, addresslist);
SendSetup addresses a GPIB board as a Talker and the specified GPIB devices as Listeners.
Following this routine, you should call a routine such as SendDataBytes to actually
transfer the data.
The following example prepares GPIB board 0 to send data to GPIB devices 6 and 7.
Example:
short addresslist[3] = {6, 7, NOADDR};
SendSetup(0, addresslist);
Also see IOtech’s: MyListenAddr
Vedere la pagina 33
1 2 ... 29 30 31 32 33 34 35 36 37 38 39 ... 63 64

Commenti su questo manuale

Nessun commento