Alarm Management API Sample Program
Overview
A sample Microsoft Visual C++ project, named amaru_demo_exe.vcxproj
, is provided to build the sample program. Use this project as a basis for constructing projects for your own applications.
for /F "tokens=* USEBACKQ" %F in (`"%PROGRAMFILES(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -property installationPath`) do set VSPATH=%F call "%VSPATH%\Common7\Tools\VsDevCmd.bat"
When you run the demo program, it will generate an alarm, then reset it.
Build the Demo (Sample) Program
- From the CIMPLICITY Workbench for your project, select Command Prompt from the Tools menu. This will ensure that your environment variables (in particular %BSM_ROOT% and %SITE_ROOT% ) are set correctly.
- In the Command Prompt window, issue the following commands (where
<
drive
>
is the disk where your CIMPLICITY software is installed):
< drive >: cd %BSM_ROOT%\api
- (If the environment variables are not set automatically) issue the following command to set them:
for /F "tokens=* USEBACKQ" %F in (`"%PROGRAMFILES(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -property installationPath`) do set VSPATH=%F call "%VSPATH%\Common7\Tools\VsDevCmd.bat"
- Launch Visual Studio:
devenv CimplicityAPI.sln
-
devenv CimplicityAPI.sln
- Open the Solution Explorer.
- Right click amaru_demo_exe.
- Select Build on the Popup menu.
Run the Demo (Sample) Program
set PRCNAM=<name>
where < name > is the API process name.
To run the sample program, enter the following command in the Command Prompt window:
amaru_demo