Agb220xa_groundport – Agilent Technologies Agilent B2201A User Manual

Page 208

Advertising
background image

6-22

Agilent B2200 User’s Guide, Edition 4

VXIplug&play Driver
Driver Functions

Syntax

ViStatus _VI_FUNC agb220xa_groundChanList_Q(ViSession vi,
ViInt16 gnd_disen, ViInt32_VI_FAR gndchan_list[ ],
ViInt32_VI_FAR gnd_status[ ] );

Parameters

vi

Instrument handle returned from agb220xa_init( ).

gnd_disen

Query type.

0 : checks if the port is the ground enabled.

1 : checks if the port is the ground disabled.

gndchan_list[ ]

Channel numbers to check the status. 5 digits integer. ABCDE.
where A: card number, BC: input port number, DE: output port
number. Top zero(s) can be ignored. For example, if A=0,
BC=01, and DE=01, channel number should be 101 instead of
00101.

gnd_status[ ]

Status of the channels given in the gndchan_list. Returned value
depends on the setting of gnd_disen as shown below:

when gnd_disen=0, 0 means ground disabled, 1 means enabled.

when gnd_disen=1, 0 means ground enabled, 1 means disabled.

agb220xa_groundPort

This function will select which input port is the ground port on the specified card.
For each card, you can specify the same or different ground port.

The input ground port and a ground enabled input port cannot be assigned to the
same input port.

If the ground input port and a couple port have been assigned to the same input port,
the ground mode and the couple mode cannot be used in parallel.

If this function is not executed, the ground port is assigned to the input port 12. For
details, see “Ground Mode” on page 3-18.

Syntax

ViStatus _VI_FUNC agb220xa_groundPort(ViSession vi, ViInt16 gport_cardno,
ViInt16 gnd_port);

Parameters

vi

Instrument handle returned from agb220xa_init( ).

gport_cardno

Card number. 1 (card 1), 2 (card 2), 3 (card 3), 4 (card 4), or 5
(all card) in the normal configuration mode, or 0 (all card in the
auto configuration mode). For the configuration mode, see
agb220xa_func.

Advertising