Testing autorun and interactive playlist files, Testing custom scripts – BrightSign HD2000 User Guide User Manual

Page 91

Advertising
background image

85

Testing autorun and interactive playlist files

Running AUTORUN.BAS in debug mode provides detailed output to the BrightSign shell while
the script is running. To begin testing the AUTORUN.BAS script in debug mode, do the following:

1

Copy your content, interactive playlist, and AUTORUN.BAS to your CF/SD card.

2

Open AUTORUN.BAS and find the following line near the top of the script:

debug=false 'set to true to turn on debug prints; false to turn them off

3

Change this line to:

debug = true

4

Rename AUTORUN.BAS so it doesn’t start automatically. For example, rename it RUN.BAS.
If you are testing a playlist, the main playlist must be named AUTOPLAY.BSP
If you are testing an interactive playlist, it must be named AUTOPLAY.CSV

5

Insert your CF/SD card into BrightSign, and add power.

6

When the Roku prompt appears, type the following:

script run.bas

Testing custom scripts

To make troubleshooting your custom scripts much easier, we recommend adding check and
print statements, like those found in the AUTORUN.BAS script. Here are a few examples:

Add print statements telling you which portion of the script you are currently in
Add print statements showing the type of event that just occurred
Add print statements showing names of files read from the flash card
Add print statements showing the coordinates of a mouse click

Advertising
This manual is related to the following products: