SW (Switches)

The SW (Switches) command enables you to dynamically control the Boolean setting of any of the eight SW task attributes (SW1 through SW8). For detailed information about these task attributes, refer to the Task Attribute Programming Reference Manual.

Syntax

<switch no list>

<switch number>

An integer with a range from 1 through 8. If you enter a SW number less than 1, an error message is displayed.

Explanation

<mix number> SW

<mix number> SW<n>

Displays the current value of all eight switches for the specified task.

<mix number> SW <switch number> = TRUE

<mix number> SW <switch number> = FALSE

Changes the Boolean value of the designated switch.

Examples

Example 1

This example interrogates the value of the switches for task 4857.

4857 SW
  SWITCH VALUES FOR 4857:
      SW 1 = FALSE (NOT VALID) 
      SW 2 = TRUE 
      SW 3 = FALSE 
      SW 4 = TRUE 
      SW 5 = FALSE 
      SW 6 = FALSE (NOT VALID) 
      SW 7 = TRUE 
      SW 8 = FALSE 

Example 2

This example changes the value of switch 6 to TRUE for task 4857.

4857 SW 6 = TRUE 
  SWITCH VALUES FOR 4857: 
      SW 1 = FALSE (NOT VALID)
      SW 2 = TRUE 
      SW 3 = FALSE 
      SW 4 = TRUE 
      SW 5 = FALSE 
      SW 6 = TRUE 
      SW 7 = TRUE 
      SW 8 = FALSE       

Considerations for Use

The SW (Switches) system command shows the validity of each switch. Each switch has a validity bit associated with it, indicating if the value of a switch has been explicitly set. A switch that is not indicated as valid will return the value FALSE.

Each switch setting is reported as one of the following:

FALSE (NOT VALID)
FALSE
TRUE