Nxc-vol4 levels, Create_level, Send_level – AMX NetLinx NXM Series User Manual

Page 50

Advertising
background image

NXC-VOL4 Volume Control Card

44

NetLinx Cardframe, Control Cards, and NetModules

NXC-VOL4 Levels

Volume (audio) channels 1 and 2 use levels 1 and 2 respectively. For reading current volume levels and
displaying bargraphs seeCREATE_LEVEL andSEND_LEVEL. The two levels associated with each port of the
NXC-VOL4 Control Card are listed in the table below:

CREATE_LEVEL

This keyword creates an association between a specified level of a device and a variable that will contain the
value of the level. This can only appear in the DEFINE_START section of the program.

CREATE_LEVEL DEV, Level, Value

Parameters:

DEV: The device from which to read the level.

Level: The level of the device to read.

Value: Variable in which to store the level value.

DevLev: A DEVLEV structure.

Value: Variable in which to store the level value CREATE_LEVEL DevLev, Value.

During execution of the program, NetLinx continuously updates the variable to match the level that it
represents.

SEND_LEVEL

This keyword sends a value to a specific level on a NetLinx device/port. The syntax follows any one of the four
following examples:

SEND_LEVEL DEV, Level, Value

SEND_LEVEL DEV[ ], Level, Value

SEND_LEVEL DEVLEV, Value

SEND_LEVEL DEVLEV[ ], Value

Parameters:

DEV: Device containing the specified level

Level: Number of the level to receive the new value

Value: New level value

DEV[ ]: Device array (each device contains the specified level)

DEVLEV: Device-level to receive the new value

DL[ ]: Device-level array (each will receive the new value)

NXC-VOL4 Levels

Port 1

Port 2

Level

Description

Level

Description

1

Output #1

1

Output #3

2

Output #2

2

Output #4

Advertising