User Guide
Programming
10
NSS-Vote Programmer’s Guide
Additionally, you can provide an "in queue" indicator. In the program, look for the send strings
containing
>==> [MICROPHONE IN QUEUE] STATION and <==< [MICROPHONE NOT IN
QUEUE] STATION
. At this point in the code, you can use this signal to turn any indicators on and off,
such as a red microphone LED ring, if it is available.
Implementing microphone control and indicators for the public speaking podium is very similar. These
events are implemented in a different section of the program. Look for the send strings containing:
>==> [MICROPHONE ON] STATION: PUBLIC SPEAKING STATION,
<==< [MICROPHONE OFF] STATION: PUBLIC SPEAKING STATION,
>==> [MICROPHONE IN QUEUE] STATION: PUBLIC SPEAKING STATION,
<==< [MICROPHONE NOT IN QUEUE] STATION: PUBLIC SPEAKING STATION
and implement microphone control and indicators for the public podium at these points.
Modifying Graphical Room View
The NSS-VoteConsole (640x480).tpd file contains three graphical displays of the room on pages
vRollCall, vVotingProgress and the popup page vBodyEditMemberGraphicalPP. It is
recommended that you modify each of these pages to represent the layout of the room in which you
install NSS-Vote.
Each of these pages has a series of buttons for each seat. There is a field for name and title for each seat,
and there is a button to represent each seat. These three sets of buttons must be grouped together for each
seat in order for the page to properly display information.
To modify these pages for your room layout:
1. Delete the unused seats starting from the lower right and working your way around the arc counter-
clockwise.
2. Move the remaining seats to the appropriate location but make sure to keep all three buttons for each
seat grouped together in the new design.
Optionally, you can change the graphic of the room by importing your own bitmap, or you may choose to
simply delete the stock bitmap.
Custom Programming
Adding Custom NSS-Vote Options
As you have seen from the previous sections, NSS-Vote events can be detected using CHANNEL_EVENTs
in your main program. All major NSS-Vote system events are posted to the
vdvVotingGlobal and
vdvVotingStations virtual devices and can be captured using CHANNEL_EVENTs, LEVEL_EVENTs
and
DATA_EVENTs.
For instance, if you want to add a sign that lights up when voting is in progress, you can capture this
event from a channel on the virtual device and implement any custom programming required to light the
sign.
The source code for all the station modules is supplied with NSS-Vote. This provides you with sample
code to take advantage of any of the information that the NSS-Vote engine has to offer. For a full list of
virtual device channels, levels and strings, see the NSS-VoteEngineMod API section on page 25.
Customizing HTML Pages
NSS-Vote uses XML files formatted with XSL style sheets for creating HTML pages. The XSL files for
NSS-Vote can be customized to change the HTML formatting of agenda and voting results.
Customization of the XSL file should be done by a web developer with knowledge of XML and XSL
technologies.
For more information, visit the W3C’s site on XSL at http://www.w3.org/Style/XSL/.