DBS9900 User’s Manual
DBS9900 Driver Software
5-1
82-28993 Revision 01
5 DBS9900 Driver Software – Description of
Functions
!
WARNING
The application software that uses this driver should not try to access 9900 registers directly.
Using functions other than those provided by this driver to access 9900 registers may end in
unexpected results. However,
reading
register values or getting attribute values using VISA
function calls with the Vi Session returned by ‘an9900_init’ is acceptable.
5.1 Initialize, Module and Close Functions
5.1.1 Initialize
an9900_init
This function initializes the instrument by getting a session handle (ViSession) from VISA and
copying calibration constants from the EEPROM to the instrument registers.
Function Prototype
ViStatus _VI_FUNC
an9900_init
(ViRsrc
resourceName
, ViBoolean
IDQuery
, ViBoolean
resetDevice
,
ViPSession
vi
);
an9900_init
Parameters
Variable Type
Description
<INPUT>
resourceName
ViRsrc
Specifies the name of the VXI resource.
Example:
“VXI::128” where 128 represents the logical address of the instrument.
IDQuery
ViBoolean
Specifies whether an ID query is sent to the instrument during
initialization. IDQuery ensures that the instrument at the given address
is indeed a DBS9900.
resetDevice
ViBoolean
Specifies whether the instrument is to be reset to its power-on settings
during the initialization procedure.
vi
ViPSession Session
handle.
<OUTPUT>
None
<RETURN>
= 0
> 0
< 0
ViStatus “VI_SUCCESS”
Warning: The function completed, but an exception condition occurred
which may require attention.
Error: The function did not complete successfully.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com