Daqadcsettrig, Format, Purpose – Measurement Computing Data Acquisition Systems rev.10.4 User Manual

Page 106: Parameter summary, Parameter values, Returns

Advertising
background image

daqAdcSetTrig

Also See: daqAdcSetAcq, daqAdcSetTrigEnhanced,

daqAdcSetScan, daqSetTriggerEvent,

daqAdcSoftTrig

Format

daqAdcSetTrig(handle, triggerSource, rising, level, hysteresis, channel)

Purpose

daqAdcSetTrig

configures the device for enhanced triggering.

Parameter Summary

Parameter Type

Description

handle DaqHandleT Handle to the device for which the ADC

acquisition trigger will be configured

triggerSource DaqAdcTriggerSource

Sets the trigger source

rising BOOL

Boolean flag to indicate the rising or falling edge
of the trigger source

level WORD

The trigger level (in A/D counts) for an analog
level trigger

hysteresis WORD

Hysteresis value for an analog level trigger (if
selected)

channel DWORD

Channel for which the analog level trigger will be
detected (if selected)

Parameter Values

handle:

obtianed from the daqOpen function

triggerSource:

see table below

rising:

valid values are either true (

≠ 0) or false ( = 0)

level:

valid values range from 0 to 65,535

hysteresis:

valid values range from 0 to 65,535

channel:

valid values range from 0 to 271

Parameter Type Definitions

trigSource-(DaqAdcTriggerSource)

Definition

Devices

Description

DatsImmediate

All

Post-trigger data acquisition begins immediately upon invocation of the
daqAdcArm command (no pre-trigger data acquisition is possible with this trigger
source)

DatsSoftware

All

Post-trigger data acquisition begins upon a software command issued by the
calling application (see daqAdcSoftTrig)

DatsAdcClock

All

Post-trigger data acquisition begins immediately upon invocation detection of the
Adc Clock pulse being driven.

DatsGatedAdcClock

DaqBooks

DaqBoard(ISA)

Post-trigger data acquisition begins immediately upon invocation detection of the
Adc Clock pulse being driven.

DatsExternalTTL

All

Post-trigger data acquisition begins on the selectable edge of an external TTL
signal. Refer to the applicable user’s manual for pinouts showing the location of
the external TTL signal connection.

DatsHardwareAnalog

All

Post-trigger data acquisition begins upon a selectable criteria of the input signal
(above level, below level, rising edge, etc.)

DatsSoftwareAnalog

All

Post-trigger data acquisition begins upon a selectable criteria of the input signal
(above level, below level, rising edge, etc.)

Returns

DaqError

See Daq Error Table.

4.2-50 Daq API Command Reference

988594

Programmer’s Manual

Advertising