DBS9900 User’s Manual
5-28
DBS9900 Driver Software
82-28993 Revision 01
5.5.5 Set
Trigger
Polarity
an9900_setTrigPolarity
This function sets trigger polarity for the specified module. Whether the trigger is “edge” or “level”
sensitive depends on the mode. Gated trigger is level sensitive; all others are edge-sensitive.
Function Prototype
ViStatus _VI_FUNC
an9900_setTrigPolarity
(ViSession
vi
, AN9900_MODULE
mod
,
AN9900_TRIGPOL
pol
);
an9900_setTrigPolarity
Parameters
Variable Type
Description
<INPUT>
vi
ViSession
This control accepts the Instrument Handle returned by the Initialize
function to select the desired instrument driver session.
mod
AN9900_MODULE
AN9900_MOD_A Set trigger polarity for Module A.
AN9900_MOD_B Set trigger polarity for Module B.
pol
AN9900_TRIGPOL
AN9900_TRIGPOL_RISING
Trigger on rising edge.
AN9900_TRIGPOL_FALLING
Trigger on falling edge.
AN9900_TRIGPOL_HILEVEL
Level sensitive interpretation.
=AN9900_TRIGPOL_RISING
AN9900_TRIGPOL_LOLEVEL
If trigger mode is gated.
=AN9900_TRIGPOL_FALLING
<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