
21
NOTE: See the “Rollover Regions” section for two additional events you can use with
CSV files.
STATE
After the EVENTS row, there are one or more STATE rows. These begin with the
keyword STATE. The first cell after the STATE keyword is the name of the video or
image file to display. When the “state is entered”, this file starts playing. The remaining
cells describe what state to jump to when the corresponding event happens. For example,
in the above example, the first state is “demo_menu.bmp”. This is the main menu for the
demo, and is displayed when the demo starts. While “in this state” (the demo_menu.bmp
is showing), if the user presses the elo touch screen or clicks the mouse in the right spot
to trigger the “elo:110:180:350:400” event, then the new state “cars.mpg” is jumped to.
If you look at the STATE rows, you will find one that starts with “cars.mpg” (there can
be only one state with a particular file).
To understand this better, look at the actual demo “autoplay.csv” file in Excel while
playing the demo on your BrightSign. As you select options on the BrightSign, see how
the .CSV file is telling the BrightSign what to do. You can then edit the “autoplay.csv”
file in Excel and Save As… a CSV file to create your own applications.
Preloading Images
The autoplay script tries to be smart about preloading still images so that when a user
triggers their display, they pop up immediately. Here are the rules that are used to
preload an image:
1. If a state (row in the table) only has one possible next bmp state, then it is
preloaded.
2. If a state has more than one possible next bmp state, but one of them is the next
row in the state table, then it (next state row’s file) is preloaded. So if you have a
sequence of images that display one after the other, put them in sequential rows in
the state table to trigger preloading. As an example of this, see the bs1.bmp,
bs2.bmp, etc states (rows) in the prior table.
State File (CSV) Examples
The BrightSign Demo described above shows that you can design powerful interactive
signs using easy to understand CSV files. The following examples further illustrate how
easy CSV files are to use.
Comentarios a estos manuales