AMX AXCESS CONTROL SYSTEM PROGRAM Instruction Manual page 50

Programming language
Table of Contents

Advertisement

Levels
contain the value of the level with which it is associated. Since this association only needs to occur
once, this keyword is only allowed to appear in the DEFINE_START section of your program.
In this section, you will develop a new program that handles levels. This system contains a volume
control card to control a volume level, and a Touch Panel for the user to control the volume card.
On the Touch Panel there will be four buttons: Volume Up, Volume Down, Volume Mute, and
Volume Preset. There will also be a bargraph to display and control the volume level, as shown in
FIG. 12.
FIG. 12 The Touch Panel layout for this section.
Here are some code excerpts to get started:
DEFINE_DEVICE
VOLUME
TP
DEFINE_CONSTANT
VOL_UP
VOL_DN
VOL_MUTE
DEFINE_VARIABLE
VOL_LEVEL
VOL_PRESET
DEFINE_START
CREATE_LEVEL VOLUME,1,VOL_LEVEL
This code defines the devices you will use, a variable in which to store the volume level value, and
the statement in the startup code to create the association between level number 1 of the volume
card and the VOL_LEVEL variable. It also defines some constants which give names to the
different channels available in the volume control card. By turning these channels on and off, the
user can raise, lower, and mute the volume levels of the card. Here is the code for the Volume Up,
Volume Down, and Volume Mute buttons on the Touch Panel:
42
= 96
(* AXB-VOL3 *)
= 128
(* AXU-CVA COLOR VIDEO PANEL *)
= 1
(* THESE CHANNELS AFFECT VOLUME LEVELS 1+2 *)
= 2
= 3
(* LEVEL OF VOLUME CHANNEL 1 *)
(* VOLUME PRESET *)
Axcess Programming Language

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Axcess

Table of Contents