Moxa DA-682A-C7-DPP [17/36] Sample code for customizing the da 682a dpp

Moxa DA-682A-C7-DPP [17/36] Sample code for customizing the da 682a dpp
DA-682A-DPP Windows Software Customizable Sample Code
4-2
Sample Code for Customizing the DA-682A-DPP
The DA-682A-DPP comes with several pieces of sample code that you can use to customize the behavior of LED
notifications, temperature, vibration, and GPS events, or to initiate emergency reboots when critical system
applications come to a halt.
LED Control
The DA-682A-DPP is designed with 8 programmable LEDs that integrators and system administrators can
customize for their notification needs. The source code for controlling the LED behavior is available on the
software DVD under
\examples\Example\C++\WatchDog\ and the compiled executable LED.exe is
available at
\examples\Release.
The LED Control Walkthrough
You can follow the steps below to test the LED control script or modify the control script to create customized
patterns that are associated with specific system events. Refer to LED Control Code
for the complete code.
1. Create the c:\programs\examples folder on your computer and copy the LED.exe file from the
software DVD into that folder. Run
LED.exe on the computer.
2. Select 1 to display the LED’s current status.
In the screenshot below, the user has selected 1 and is viewing the current status of all LEDs. The value 0
shown next to each LED entry indicates that all of the LEDs are currently turned off. Visually verify this by
examining the LEDs on the DA-682A-DPP’s front panel.

Содержание

Похожие устройства

Скачать