DBS9900 User’s Manual
5-60
DBS9900 Driver Software
82-28993 Revision 01
5.7.3
Write to Instrument
an9900_writeInst
This function writes data to an instrument register to modify device settings.
Function Prototype
ViStatus
an9900_writeInst
( ViSession
instrumentHandle
,
ViUInt16
registerNumber
,
ViUInt16
value
);
an9900_writeInst
Parameters
Variable Type Description
<INPUT>
instrumentHandle
ViSession
This control accepts the Instrument Handle returned by the Initialize function to
select the desired instrument driver session.
registerNumber
ViUInt16
Specifies register to be written.
Valid range: 0x00 - 0x3F. (Default is 0x00).
value
ViUInt16
This control writes data (in hex) to a register.
Valid range: 0x00-0xFFFF. (Default is 0x00).
<OUTPUT>
None None
None
<RETURN>
= 0
> 0
< 0
“VI_SUCCESS”
Warning: The function completed, but an exception condition occurred which
may require attention.
Error: The function did not complete successfully.
NOTE: Use the an902_error_message() function to get a textual description of
errors and warnings.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com