National Instruments FOUNDATION NI-FBUS Hardware And Software User Manual page 121

Table of Contents

Advertisement

nifWaitAlert
Purpose
Waits for an alert (an event or an alarm) from a specific device or from any device.
Format
nifError_t
Input
ud
alertPriority
Output
aldata
Context
Block, VFD, physical device, link, session.
Description
nifWaitAlert
Alert. It is recommended to use
represents a descriptor of a session, link, a physical device, a VFD, or a block. If
ud
is a VFD descriptor, then the NI-FBUS Communications Manager waits for an alert from
any block in the Virtual Field Device. If
Manager waits for an alarm or event from the block
nifWaitAlert
If the descriptor is a session descriptor, the function waits on any event from any attached link.
nifWaitAlert
alert with a priority greater than or equal to the input alert priority. Your application can have
a dedicated thread which does
When the NI-FBUS Communications Manager interface receives an alert, the
parameter is filled in with the information about the
aldata->alertData
aldata->alarmOrEventName
caused the alert.
and the block of the alarm, respectively.
© National Instruments Corporation
nifWaitAlert(
nifDesc_t ud,
nifAlertData_t *aldata,
uint8 alertPriority)
The descriptor of the session, link, physical device, VFD, block,
or link the alert comes from.
Lowest priority of the alert coming in that you want to wait on.
The information about the specific alert.
only supports normal alert types and does not support Standard Diagnostics
nifWaitAlert2
completes when an event is received from any device connected to that link.
waits indefinitely until the NI-FBUS Communications Manager receives an
nifWaitAlert
depends on the value of
is the name of the alarm parameter or event parameter that
aldata->deviceTag
Chapter 6
instead.
is a block, the NI-FBUS Communications
ud
refers to. If
ud
only.
. The form of
aldata
aldata->alertType
and
aldata->blockTag
6-59
NI-FBUS Hardware and Software User Manual
NI-FBUS Function Reference
ud
represents a link,
ud
aldata
.
are the tags of the device

Advertisement

Table of Contents
loading

Table of Contents