Agilent Technologies C-Size VXIbus Systems Manual de usuario Pagina 143

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 178
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 142
C Language Program
/* This program sends the *IDN? command to the Command Module as a */
/* way to determine if the computer is communicating with the mainframe */
/* Include the following header files */
#include <stdio.h>
#include <cfunc.h>/* This file is from the GPIB Command Library Disk */
#define ADDR 70900/* I/O path from the PC to the Command Module */
/**************************************************/
void main(void)/* Run the program */
{
char message[80];
int length = 80;
IOOUTPUTS(ADDR, "*IDN?", 5);/* send *IDN? command */
IOENTERS(ADDR, message, &length);/* enter *IDN? response */
printf("%s\n", message);/* print*IDN? response */
}
COMM1B :
Embedded
Controller
Addressing
In systems containing message-based modules which are servants to the
Agilent E1499A embedded V/382 controller, the modules are programmed
from the VXIbus backplane rather than from the GPIB. The V/382
factory-set interface select code is 16.
Since no secondary address is required as when programming from the
VXIbus backplane, the logical address of the message-based module is
combined with the VXI interface select code.
For example, to program a message-based module with a logical address of
24, the OUTPUT statement in an BASIC program appears as:
OUTPUT 1624;"...
for logical addresses from 1 to 99
or
OUTPUT 160xxx;"...
for logical addresses from 100 to 255
See "Sending the *IDN? Command" in the section "GPIB Addressing" to
verify communication over GPIB, between the V/382 and the Agilent
C-Size Configuration Guide System Programming and Debugging 6-3
Vista de pagina 142
1 2 ... 138 139 140 141 142 143 144 145 146 147 148 ... 177 178

Comentarios a estos manuales

Sin comentarios