National Instruments 321645c-01 Welding System User Manual


 
Chapter 2 Function Reference Config_ATrig_Event_Message
©
National Instruments Corporation 2-67 NI-DAQ FRM for PC Compatibles
Config_ATrig_Event_Message
Format
status = Config_ATrig_Event_Message (deviceNumber, mode, chanStr, trigLevel, windowSize,
trigSlope, trigSkipCount, pretrigScans,
postTrigScans, handle, message, callbackAddr)
Purpose
Notifies NI-DAQ applications when the trigger channel signal meets certain criteria you
specify. NI-DAQ sends your application a message or executes a callback function that you
provide.
Parameters
Input
Parameter Discussion
mode indicates whether to add a new alarm message or to remove an old alarm message with
the given device.
0: Remove an existing analog trigger event.
1: Add a new analog trigger event.
Name Type Description
deviceNumber i16 assigned by configuration utility
mode i16 add or remove a message
chanStr STR channel string
trigLevel f64 trigger level in volts
windowSize f64 hysteresis window size in volts
triggerSlope i16 trigger slope
trigSkipCount u32 number of triggers
preTrigScans u32 number of scans to skip before trigger event
postTrigScans u32 number of scans after trigger event
handle i16 handle
message i16 user-defined message
callbackAddr u32 user callback function address