Programs Tab

Selection of SCADA Basic programs which run when the mimic is opened and / or when it is closed. ClosedShow picture

The Programs tab allows the selection of SCADA Basic programs that run as the mimic is opened and / or as it is closed.

  • Program - The name of the program to run. The program must be pre-loaded - see the SCADA Basic book for information on information on developing programs.
  • Branch - An optional Variables Tree branch to be used with the program.
  • Function - The function, within the program, to run. If a function is not selected the Main function will run.
  • Arguments - Optional, comma separated, list of arguments that can be retrieved in the program using the GETARG instruction.

The SCADA Basic programs Before open and Before close are called in conditions similar to the corresponding VBA events (OnOpen and OnClose):

  • Before open is called once the mimic is loaded in memory but not yet rendered graphically.

  • Before close is called once the mimic is hidden and before it is unloaded from memory.

In both cases, graphic items and controls present in the mimic are safe for scripting.