
DBS9900 User’s Manual
5-2
DBS9900 Driver Software
82-28993 Revision 01
5.1.2 VIT
Initialize
an9900_VITinit
This function is used only for the Soft Front Panel and performs the following initialization actions:
•
Opens a session to the Default Resource Manager resource and a session to the
specified device using the interface and address specified in the
Resource_Name control.
•
Performs an identification query on the Instrument.
•
Resets the instrument to a known state.
•
Sends initialization commands to the instrument that set any necessary
programmatic variables such as Headers Off, Short Command form, and Data
Transfer Binary to the state necessary for the operation of the instrument driver.
•
Returns an Instrument Handle which is used to differentiate between different
sessions of this instrument driver.
Each time this function is invoked, a Unique Session is opened. It is possible to have more than
one session open for the same resource.
Function Prototype
ViStatus _VI_FUNC
an9900_VITinit
(ViRsrc
resourceName
, ViBoolean
IDQuery
, ViBoolean
resetDevice
, ViSession
instrumentHandle
);
an9900_VITinit
Parameters
Variable Type
Description
<INPUT>
resourceName
ViRsrc
Specifies the interface and address of the device that is to be
initialized.
Default Value:
GPIB-VXI : : 144
Note: Based on the instrument Descriptor, this operation establishes a
communication session with a device. The grammar for the
Instrument Descriptor is shown below. Optional parameters are
shown in square brackets ([ ])
VXI
VXI [board] : : VXI logical
address [ : : INSTR]
GPIB-VXI
GPIB-VXI [board] [ : : GPIB-VXI
primary address] : : VXI logical
address [ : : INSTR]
The VXI keyword is used for either embedded or MXIbus controllers in
VXI instruments.
The default value for optional parameters are:
board 0
GPIB-VXI primary address
1
IDQuery
ViBoolean
Specifies if an ID Query is sent to the instrument during the
initialization procedure.
Valid Range:
VI_OFF (0)
Skip Query
VI_ON (1)
Do Query (Default Value)
resetDevice
ViBoolean
This control specifies if the instrument is to be reset to its power-on
settings during the initialization procedure.
Valid Range:
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com