Chapter 6 – B&B Electronics ADAM-5000_TCP - Manual User Manual
Page 92

Planning Your Application Program
ADAM5KTCP_SetStreamAlarmState
Chapter 6
Description:
Set the criterion to signal the event object
Syntax:
int ADAM5KTCP_SetStreamAlarmState(WORD
wStreamAlarmState);
Parameters: wStreamAlarmState[in]: When assigned to
ADAM5KTCP_Receive StreamIngoreAlarm:
means the
ADAM5KTCP.DLL always signals
event object when any stream data comes from
an ADAM-5000/TCP. Then the application can
receive the stream data by calling
“ADAM5KTCP_ReadStreamData()” function.
When assigned to ADAM5KTCP_Receive
Stream WhenAlarm:
means ADAM5KTCP.DLL only signals event
object when a alarm status is triggered. Then
the application can receive the alarm informa-
tion about the ADAM-5000/TCP by
calling
“ADAM5KTCP_ReadAlarmInfo()” function.
Return:
Please refer to Chapter 6-2-4 “Return Codes” for more
detail information
ADAM-5000/TCP User’s Manual
6-25