*Select device from panel
Technical Article | TA-20201002-TP-42 VDG Sense | Tutorials | Macros |
Introduction
The “Select Device from Panel” macro action, is a dynamic selection rule that allows the user to perform an action on the device that’s currently displayed in the selected panel. This gives the user the ability to perform a single action on multiple devices, without the need to create a unique macro for each separate device. For example, making use of “Go to Preset” action with a single macro button.
This macro-action is similar to the action “Select Device from Event”, where the device, that is used in the macro signal, is used for subsequent actions.
Creating macro
The macro action can only be created in Viewer Macros. You can use any macro signal available in the macro engine. To view a list of available signals, click here.
The following macro action should be configured:
Viewer -> Select Device from Panel -> [Device action]
Executing the macro
Because the macro is a Viewer Macro can only be triggered when the user is in live mode. Additionally, a panel with a valid device has to be selected. If this isn’t the case, nothing will happen.
Select Device from Event & Select Device from Panel
The following is an example that combines Select Device from Event & Select Device from Panel to create a dynamic placement of a device.
Create a new macro and select any signal that originates from a device. For example:
VCA line triggered
Motion detected
Alarm Input triggered
GenericEvent received
We want to place the device in a layout. If the device is also a PTZ device, we want it to move to Preset 1. To achieve this, we create the following action:
(Optional) Select the correct monitor on which the layout is displayed
Viewer -> Select monitor -> [Monitor number]
Switch to the layout with the map panel
Viewer -> Switch Layout -> [Your Map Layout]
Select the panel on the layout on which the device should be displayed
Viewer -> Select Panel -> [Panel name]
Place the device from the signal into the panel
Viewer -> Select Device from Event
Now we want to move the device to PTZ Preset 1
Viewer -> Select Device from Panel -> Go to preset -> Preset 1