beautypg.com

AMX ENV-VST-C User Manual

Page 35

background image

Programming

29

ViewStat Color Communicating Thermostat

3.

Copy the AMX_iWeather_Comm_dr1_0_0.jar file into the same project folder as the
AMX_ENV-VST-C_Comm_dr1_0_0.jar file on the NetLinx Master.

4.

Add the AMX_iWeather_Comm_dr1_0_0.jar file name to the thermostat’s project files in the
NetLinx Studio Workspace, so it will be downloaded with the thermostat files.

5.

Define virtual device and real (IP) device numbers for the Weather module, and place a
DEFINE_MODULE statement for the module into the thermostat’s NetLinx program. FIG. 19
displays sample code using the DEFINE_MODULE statement. (For more information, consult the
NetLinx Programming Language Reference Guide.) These statements appear as commented lines in
the thermostat’s Main.axs file.

The Weather module starts, and the thermostat module automatically finds and uses it. No additional
NetLinx code is required.

FIG. 18

InConcert window

FIG. 19

Define Module code

Duet Module
.jar file