External Alarm State Management API Sample Program
About this task
The External Alarm State Management API contains a sample program that demonstrates the use of this API. You can find the source file and make file for this program in the %BSM_ROOT%\api\amxasmgr
directory. It contains:
amxassample.cpp
|
The sample application source code. |
Amxassample_exe.vcxproj
|
Visual Studio project that creates the sample executable. |
makefile
|
Makefile that creates the sample executable.
|
This sample program generates up to ten alarms and processes Acknowledge, Clear, and Delete requests passed to it by the Alarm Manager.
Note: The program generates each of the alarms you create, then repeats the first three alarms every thirty seconds.
You can use the project provided with the sample as a basis for constructing projects for your own applications.
Note: Depending on how you installed Visual C++, the INCLUDE, LIB, and PATH environment variables may not be automatically set when you install MSDEV. If they are not set, you will have to set them manually or run the following to set them before building any user programs.
..\<
Program Files Install Directory>\Microsoft Visual Studio 11.0\Common7\Tools\vsvars32.bat
- You can use the CIMPDEMO project to create and run the executable for the sample program.
- Create a sample program.
- Run a sample program.
Create a Sample Program