DBS9900 User’s Manual
DBS9900 Driver Software
5-29
82-28993 Revision 01
5.5.6 Get
Trigger
Polarity
an9900_getTrigPolarity
Get trigger polarity. 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_getTrigPolarity
(ViSession
vi
, AN9900_MODULE
mod
,
AN9900_TRIGPOL
*pol
);
an9900_getTrigPolarity
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 Get trigger polarity set for Module A.
AN9900_MOD_B Get trigger polarity set for Module B.
<OUTPUT>
*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
<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