Advanced Scripting | Task Scheduling

Advanced Scripting - Description

Advanced scripting is particularly useful when paired with a Third Party Control System or a Panel Builder (Present on the VDC-108 DiVAS and Conductor Server)

Scripting can be utilized to replicate multiple actions in a sequence, and can use either one line of code from a Third Party Control System or a Single button on a Panel Builder Application to accomplish this.  You can use scripting to control all aspects of your volante hardware including Stopping/Starting a DVR Recording, Scheduling a Global "Building wide" On/Off Event, or any other task you may wish to accomplish. 

You can also save a script and then use Task Scheduler to recall this script at a given time. With Third Party Control systems this can be used to offload some of the logic in setting up a frequent action and have it occur on a schedule without involving the control system.

The Example used here will be a "Site On/Video Reset" Command that could be scheduled to run everyday at 6:30 AM. 

The Theoretical Site has Five Conference Rooms that through the previous day may have been utilized to view different sources (cable boxes, DVD/BluRay Players/Local PC).  The Site administrator would like to make sure that when employees come into the building, those rooms are turned on and tuned into a digital signage player that is playing this weeks "announcements".  Throughout the day, the rooms will be used via a third party control system as normal. 

To do this, we will first create a script that will:

  1. Turn on all five Displays
  2. Set the five receivers to view the digital signage source.

Then we will add this script to a Task that will run every morning at 6:30 AM.

Step 1 - Create the Script

  1.  Create and Store the RS-232 Command for Display On into your VDT-111 database.  For Assistance with this process, please review the FAQ on how to Create/Recall RS-232 Commands.
  2. Navigate to ASCII String Builder (VDT-111) Or Scripts (VDC-108 DiVAS)
  3. Select your first command, in this case "SERIAL COMMAND"
  4. In the Next Drop Down, select the desired Receiver
  5. In the Next Drop Down list, select the "Power On" Command.
  6. Select Add.

This will add a line of code to the White Box below the drop down menus that should look like this:

serial 169.254.22.171 21

 

Repeat Steps 1 through 6 For the additional four receivers until your window contains all five "Power On" Commands.  The Window should now have lines like this:

 

serial 169.254.22.171 21

serial 169.254.22.172 21

serial 169.254.22.173 21

serial 169.254.22.174 21

serial 169.254.22.175 21

 

Now, change commands to "SWITCH VIDEO" and follow the same process of choosing receiver, and then transmitter.  Once done, your text should look like the following:

 

serial 169.254.22.171 21

serial 169.254.22.172 21

serial 169.254.22.173 21

serial 169.254.22.174 21

serial 169.254.22.175 21

switch 169.254.22.171 169.254.23.10

switch 169.254.22.172 169.254.23.10

switch 169.254.22.173 169.254.23.10

switch 169.254.22.174 169.254.23.10

switch 169.254.22.175 169.254.23.10

When finished editing your script, make sure to save the script.  To do this:

  1. In the "Load" Drop Down Menu - Select "new"
  2. Click Save
  3. Give the script a name like "Morning Setup"
  4. Click OK.

Scripts are recalled similarly to the RS-232 commands and are referenced by a Database ID number.  To establish the ID of your script use the String Builder to do this:

1.  Delete all of text in to Script Builder Window - this will not affect your saved script

2.  select "Embed Another Script" from the Actions Drop Down Menu.

3.  Select your Script and Hit Add

you will now have a line of text that says

Script 4

with 4 being the database ID. 

You can continue to create scripts as needed to perform different actions.  You can even embed scripts within scripts, which could allow you to do any number of actions simply by referencing a variety of scripts.  For example, you could have broken the above example into two scripts - the first being the "Power On" Command, and the second being "Switch Video" Command, and then referenced them all within another script that would look like:

script 4

script 5

To Recall from a Third Party Control System - 

  1. Connect to the VDT-111/VDC-108 DiVAS as normal
  2. Send the serial string "Script 4" from the TP Control processor to the VDT-111.

TASK SCHEDULING

Once you have created your script(s):

  1. Navigate to TASKS
  2. Click "New Task"
  3. Give the Task a reference Name like - "Morning Startup"
  4. Select the Start Date/Time
  5. If the Task is to be a daily occurrence click "Never ending Task" to create a task with no end date.
  6. If the task is to end on a specific date, choose the end date and time
  7. Set your interval.  To occur every morning at 6:30 AM, set your interval to 1 day, 0 Hours, 0 Minutes. with a start time at 6:30 AM.
  8. Verify "Active" is checked and save the script.

The Script will now run unattended until you disable or delete the script.

ADVANCED SCHEDULING:

If you wanted to create a schedule that only operated on Weekdays Only  (IE Monday - Friday)  You would need to create the task as five separate tasks, one for each day.  Instead of setting the interval to 1 Day 0 Hours 0 Minutes, change the interval to 7 Days 0 Hours 0 Minutes.  Change the start date of each task to a different day (Monday through Friday on a calendar)

Have more questions? Submit a request

0 Comments

Article is closed for comments.
Powered by Zendesk