Moxa TC-6110-T-LX [46/74] Examples tc6000releas

Moxa TC-6110-W7E [46/74] Examples tc6000releas
TC-6110 / Windows 7 Customizable Sample Code
5-2
Sample Code for Customizing the TC-6110
The TC-6110 computer comes with several pieces of sample code that users may use to customize its behavior
for LED notifications; temperature, vibration and GPS events; or to initiate emergency reboots when critical
system applications come to a halt.
The LED Control Walkthrough
The TC-6110 is designed with 8 programmable LEDs that integrators and system administrators may
customize for their notification needs. The source code for controlling LED behavior is located in the folder
<Software DVD>\examples\project\LED\, while the compiled executable LED.exe is located under
<Software DVD>\examples\TC6000Release. You can follow the steps below to test the LED control script,
or you may freely modify the control script to create customized patterns that are associated with specific
system events. To review the LED control code, see
The LED Control Script section in Appendix B of this
manual.
1. Create the
c:\programs\examples folder and copy LED.exe into that folder. Run LED.exe.
2. You will be presented with a menu of three choices; first, select 1 to display the LED’s current status.
3. 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 entry indicates that all of the LEDs are currently turned off. Visually verify this by
examining the TC-6110’s front panel.
4. You may now run LED.exe again, but this time select 2. At the next prompt, enter the ID number (0 to 7)
of an LED to activate, and when prompted enter either 1 (to turn it on), or 0 (to turn it off). The LEDs on
the main TC-6110 panel correspond to 0 through 3; 4 and 5 correspond to those on the first module; and
6 and 7 to those on the second.

Содержание

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

Скачать