Agb220xa_groundchanlist_q, Agb220xa_groundchanlist_q -25 – Agilent Technologies B2201A User Manual
Page 211

Agilent B2200 User’s Guide, Edition 2
6-25
VXI plug&play Driver
Driver Functions
agb220xa_groundChanList_Q
This function will query the instrument for the status, ground enabled or disabled, 
for the channels given in the list.
The parameter “gndchan_list” is an array of integers with each integer representing 
one channel. The last number of the “gndchan_list” should be “0” (numeric zero) to 
identify the end of the list. The maximum number of channels that can be specified 
by the list is 100.
The “gnd_status” parameter is an array of integers containing the return values of 
the query. The “gnd_status” array returned will correspond one to one with 
“gndchan_list” parameter. 
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.
