Mgdemo example application – Echelon Mini EVK User Manual

Page 32

Advertising
background image

LED on the MiniGizmo attached to the evaluation board running the

MGDemo application will activate or de-activate each time the MGSwitch
MiniGizmo sends an update.

In addition, the MGDemo application implements LED1LED4 as
simple lights that cannot be dimmed. These LEDs will be illuminated

whenever the lighting level on the MGSwitch evaluation board is more

than zero.

You can remove an evaluation board running the MGSwitch or MGLight

application from a connection by pressing and holding the device’s Service button

until the Reset light blinks (approximately 10 seconds). To remove an evaluation
board running the MGDemo application from a connection, press and hold the

Connect button for the connection for approximately 10 seconds.

MGDemo Example Application

You can use the MGDemo example application to demonstrate how to use Neuron
C to interface with I/O hardware, how to use network variables in Neuron C to

communicate on a L

ON

W

ORKS

network, and how to use the ISI library to install

devices on a L

ON

W

ORKS

network. You can use the MGDemo application to

interoperate with evaluation boards running the MGSwitch, MGLight, and

MGKeyboard applications, as well as with other 3150 EVBs running the

MGDemo application. In addition, you can use the Monitoring & Control
Example Application to monitor a 3150 EVB running the MGDemo application.
The MGDemo example application implements three types of I/O:
• A temperature sensor reads the local temperature, and stores this data in a

pair of output network variables.

• A piezo buzzer can be controlled with a pair of input network variables.
• Four switch/light pairs implement a switch that is hard-wired to a local light,

where each pair may be connected to remote switches, remote lights, or

remote switch/light pairs, on other devices.
The four pairs consist of one switch and one light each. Each switch is
implemented with a SFPTclosedLoopSensor functional block, and each light

is implemented with a SFPTclosedLoopActuator functional block. When you

use the MGDemo example application in a self-installed environment, each
pair is coupled and can only be connected as one atomic unit. That is, each

LED1LED4 light emulates a light bulb that is physically connected to the

corresponding SW1SW4 switch, while remote switches or remote lights (or
remote switch/light pairs) can be added to extend the functionality to a

lighting system. When you use the MGDemo example application in a
managed environment, you can independently connect each of the switch and

light functional blocks, demonstrating the additional flexibility provided in

managed networks. For example, you can use the MGDemo example
application with the LonMaker tool and connect each of the eight individual

functional blocks independently from each other.

To use the MGDemo application, follow these steps:

1. Start the Mini Application, and load the MGDemo application into one or

more of the 3150 EVBs as described in Chapter 2, Using the Mini
Application
(this app
lication will not run in a 3120 EVB). The evaluation

26

Mini EVK User’s Guide

Advertising