beautypg.com

Settrig.vi – Measurement Computing UL for NI LabVIEW User Manual

Page 32

background image

Universal Library Virtual Instruments (VIs)

Analog Input VIs

SetTrig.VI

Selects the trigger source and sets up its parameters. This trigger is used to initiate analog to digital
conversions using the following UL for

NI LabVIEW VIs:

ƒ AInScBg.VI or AInScFg.VI, if the

EXTRIGGER

option is selected.

ƒ APretrFg.VI or APretrBg.VI
ƒ FilePret.VI

Summary:

Inputs:

BoardNum

[U32] - The board number assigned when installed with InstaCal. Can

be 0 to 100.

Type

[U32] -Trigger type (see table below)

LowThreshold

[U32] - Low threshold for analog trigger

HighThreshold

[U32] - High threshold for analog trigger

Outputs:

ErrCode

[I32] - Error code. See ErrMsg.VI

Arguments

BoardNum

The board number associated with a board when it was installed with InstaCal. The

board must have the software-selectable triggering source and/or options.

Type

Specifies the trigger or gate type to configure. This can be one of the constants

specified in the

Type

column below.

Trigger
Source

Type Explanation

Analog GATE_NEG_HYS

A/D conversions are enabled when the external analog trigger input is more
positive than HighThreshold. A/D conversions are disabled when the
external analog trigger input is more negative than LowThreshold.
Hysteresis is the level between LowThreshold and HighThreshold.

Analog GATE_POS_HYS

A/D conversions are enabled when the external analog trigger input is more
negative than LowThreshold. A/D conversions are disabled when the
external analog trigger input is more positive than HighThreshold.
Hysteresis is the level between LowThreshold and HighThreshold.

Analog GATE_ABOVE

A/D conversions are enabled as long as the external analog trigger input is
more positive than HighThreshold.

Analog GATE_BELOW

A/D conversions are enabled as long as the external analog trigger input is
more negative than LowThreshold.

Analog TRIG_ABOVE

A/D conversions are enabled when the external analog trigger makes a
transition from below HighThreshold to above. After conversions are
enabled, the external trigger is ignored.

Analog TRIG_BELOW

A/D conversions are enabled when the external analog trigger input makes
a transition from above LowThreshold to below. After conversions are
enabled, the external trigger is ignored.

Analog GATE_IN_WINDOW A/D conversions are enabled as long as the external analog trigger is inside

the region defined by LowThreshold and HighThreshold.

Analog GATE_OUT_WINDOW

A/D conversions are enabled as long as the external analog trigger is
outside the region defined by LowThreshold and HighThreshold.

Digital GATE_HIGH

A/D conversions are enabled as long as the external digital trigger input is
5V (logic HIGH or "1").

Digital GATE_LOW

A/D conversions are enabled as long as the external digital trigger input is
0V (logic LOW or "0").

32