Edit tab, Enable execution every x seconds, On demand – Contemporary Control Systems BASview User Manual
Page 63: Status, Point table, Rename a point reference, Deleting a point reference, Edit program, Code editor, Debug tab

TD110500-0MC
63
Edit Tab
The edit tab is where the program options are set and the actual programming is entered.
Enable Execution Every x Seconds
Check the box to enable the program for execution. Unchecking the box prevents the program from
automatically executing. If the program is enabled, the seconds to wait between executions of the
program may be specified. It is recommended that the seconds be set to the highest value possible that
will allow for proper operation.
Keep in mind that it may take several seconds for all point values to be read, so executing a program
more often than every 5 seconds would usually be an unnecessary burden on the system. Also,
temperatures and some other types of points do not usually change very quickly so programs that depend
on their values may only need to execute every 30 or 60 seconds.
On Demand
If automatic execution is disabled, the program may still be executed "on demand" by checking this box.
"On demand" means it is only executed when a user clicks a button that is linked to this program on a
graphic screen. To link a graphic button to a program, drag the program node from the tree to a graphic
and select a Link Button control.
Status
This displays the
program’s current status. If an error displays, see the debug screen for more information.
Point Table
The point table lists up to 16 points that the program can use. Because the names used internally by the
system to identify points can be complicated and hard to remember or type, points are accessed in the
program by a simplified name called the Reference Name.
For example, a point called "Unoccupied Cool Setpoint" in the tree may have an internal name of
"/Drv.BACnet_Network_1/Dev.BACnet_Device2/ Pnt.Unoccupied_Cool_Setpoint". This name is long and
not easy to type, so the reference name is simplified to "Unoccupied_Cool_Setpoint".
Any time a reference name is used in a program, it must be prefixed with an "@" so the system knows a
point is being referenced rather than a local variable.
Rename a Point Reference
A reference name may be changed by clicking on that row of the table. This allows the reference name
to be simplified even more, for example to UnOccCool or anything that easier to remember and type.
Deleting a Point Reference
Right click a row in the table and select "Delete Item" to remove a point reference from the table.
Edit Program
Check this box to enable editing of the program code.
Code Editor
The code editor is a simple text editor where the program code may be entered and modified.
Debug Tab
This is where debug messages display. The upper portion displays the current value of all points used by
the program and this program timer value and a other items that may be useful for debugging a program.
The lower portion displays error messages and debug messages generated by a program by calling the
debug() function.
Auto-Refresh
Uncheck this box to prevent the debug screen from updating. This will allow more time to read debug
messages that may quickly scroll off the screen. Check the box to re-enable updating.