beautypg.com

Daqadccalctrig – Measurement Computing Data Acquisition Systems rev.10.4 User Manual

Page 61

background image

daqAdcCalcTrig

Also See: daqSetTriggerEvent, daqAdcSetTrig

Format

daqAdcSetTrig(handle, bipolar, gainVal, voltageLevel, triggerLevel)

Purpose

daqAdcSetTrig

configures the device for enhanced triggering.

Parameter Summary

Parameter Type

Description

handle DaqHandleT

Handle to the device for which the trigger level will be
calculated

bipolar BOOL

Boolean that, when true, sets trigger to bipolar, and when
false

, sets trigger to unipolar

gainVal FLOAT

Gain value of the trigger channel

voltageLevel FLOAT

Voltage level to trigger at

triggerLevel PWORD

A pointer to the returned count which is used to program the
trigger with the daqAdcSetTrig function

Parameter Values

handle:

obtianed from the daqOpen function

bipolar:

valid values are either true (

≠ 0) or false ( = 0)

gainVal:

valid values range from 1, 2, 4, 8, 16, 32, 64

voltageLevel:

valid values range from –10 to +10 Volts

triggerLevel:

pointer to a value from 0 to 65,535

Returns

DaqError

See Daq Error Table

For more details on error messages, please refer to the Daq Error Table.


Function Usage

This function has been obsoleted by the daqSetTriggerEvent function, and is
presented here only as a reference. See daqSetTriggerEvent for more details.

The daqAdcCalcTrig function calculates the trigger level and source for an analog trigger. The result of
daqAdcCalcTrig

is stored in the triggerLevel parameter. The value of this parameter can then be

passed to the daqAdcSetTrig function to configure the analog trigger. All of this can be accomplished
using the daqSetTriggerEvent function.

Programmer’s Manual

908594

Daq API Command Reference 4.2-5