Agilent Technologies B1500A Guía de usuario Pagina 36

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 208
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 35
2-20 Agilent B1500 VXIplug&play Driver Users Guide, Edition 3
Driver Functions
agb1500_cmd
agb1500_cmd
This function passes the cmd_str string to the instrument. Must be a NULL
terminated C string.
Syntax ViStatus _VI_FUNC agb1500_cmd(ViSession vi, ViString cmd_str);
Parameters vi Instrument handle returned from agb1500_init( ).
cmd_str Instrument command (cannot exceed 256 bytes in length).
Example
ViSession vi;
ViStatus ret;
ret = agb1500_cmd(vi, "AB"); /* sends the AB command */
agb1500_cmdData_Q
This function passes the cmd_str string to the instrument. This entry point will wait
for a response which may be any data. You specify the cmd_str and size parameters,
and get result[ ].
Syntax ViStatus _VI_FUNC agb1500_cmdData_Q(ViSession vi, ViString cmd_str,
ViInt32 size, ViChar _VI_FAR result[ ] );
Parameters vi Instrument handle returned from agb1500_init( ).
cmd_str Instrument command (cannot exceed 256 bytes in length).
size Length of result in bytes. 2 to 32767.
result[ ] Response from instrument.
agb1500_cmdInt
This function passes the cmd_str string to the instrument. This entry point passes the
string in cmd_str followed by a space and then the integer in value. Note that either
an Int16 or 32 can be passed as the Int16 will be promoted.
Syntax ViStatus _VI_FUNC agb1500_cmdInt(ViSession vi, ViString cmd_str,
ViInt32 value);
Parameters vi Instrument handle returned from agb1500_init( ).
cmd_str Instrument command (cannot exceed 256 bytes in length).
Vista de pagina 35
1 2 ... 31 32 33 34 35 36 37 38 39 40 41 ... 207 208

Comentarios a estos manuales

Sin comentarios