Welcome to the Atlona Help Center

KB01579 - How to create a toggle macro in Velocity

SKU's: AT-VGW-250

This article explains how to create a toggle macro in Velocity. This macro will toggle between 2 existing macros. On first press, send macro 1, on second press, send macro 2.

 

Step 1:

Create two macros, one for each macro that you will be toggling between.

Navigate to Room Control Options > Control Settings > Macros

2019-03-20_08h17_28.png

2019-03-20_08h17_41.png

For detailed information on creating a macro, see this article:

KB01444 - How to create a Macro (to send commands at the touch of a button in the velocity touch panel)

We will refer to these two macros you created as "Macro 1" and "Macro 2" in step 3.

 

Step 2:

Create a variable.

Navigate to Custom Pages > Tools > + > Give the variable a name and an initial value. We are using "PIP/Full Screen" with an initial value of 1 for this example.

2019-03-20_08h05_05.png

2019-03-20_08h05_13.png

2019-03-20_08h05_43.png

Now navigate back to room technology

2019-03-20_08h17_14.png

 

Step 3:

Create your toggle macro by navigating to Room Control Options > Control Settings > Macros

2019-03-20_08h17_28.png

2019-03-20_08h17_41.png

 

 

Add a new Macro as before in step#1. This will be your toggle macro. 

Command 1, Device: Velocity, Command: IF ELSE LOGIC (TOGGLE).

2019-03-20_08h04_21.png

This IF, THEN, ELSE logic will create a toggle macro.

IF the "PIP/Full Screen" variable is equal to 1 THEN run "Macro 1"  and set the variable to 2,

ELSE: If "PIP/ Full Screen" does not equal 1,  run "Macro 2" and set the variable back to 1.

 

Step 4:

Where do you want this button to show up?

2019-03-20_08h35_40.png

Hide In: 

Drawer: Check this to hide in the Macro Drawer, Uncheck to show in Macros Drawer. In this example, it is hidden. If it were unchecked, it would show up here.

 2019-03-20_08h37_07.png

Preset Page: Check this box to hide it in the preset page, Uncheck this box to show it in the preset page.

2019-03-20_08h41_04.png

2019-03-20_08h41_17.png

Note: if you are not using the macros drawer or the preset page in your program then these checkboxes will not make a difference to your touch panel interface.

 

Lastly, if you want this button to show at the top of your touchpanel all of the time like the below screenshot.

2019-03-20_08h47_07.png

Note: Maximum of 4 macros at the top of the page.

 

Navigate to Room Control Options > User Interface

 2019-03-20_08h17_28.png

2019-03-20_08h45_24.png

 

Scroll down to "Enable Macro Buttons" section.

Slide the toggle to the right.

Select your macro from the drop-down list.

Select a custom icon or add a custom image.

Add a custom label.

2019-03-20_08h52_40.png

Once you are done with this step scroll to the top and click "Apply Settings"

2019-03-20_09h01_12.png

 

You are now done and this button will toggle between Macro 1 and Macro 2 that we created in step 1.

 

Article ID: KB01579

 

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Contact Us