Scripts for T-App are text files containing a series of simple commands for T-App to send to the QNW temperature controller. Commands are also included that are handled within the application to generate delays and loops to be used to repeat a sequence of commands. In addition there are commands to present dialogs with information to help the user coordinate running of the script with data acquisition by an SCP (Spectrophotometer Control Program).
For dual sample holder systems based on the TC 1 controller, the controller can be configured by a script command to operate in a linked mode (so that each control command for the sample will result in an identical change for both sample and reference). Script commands are also available for using the sample and reference holders independently.
For systems with multiple cuvette positions there are script commands for controlling the position.
The simple example script below was designed to automate part of the example manual procedure for coordinating T-App with a Spectrophotometer.
Each script command is enclosed within square brackets, [command]. Except for the first two lines of the script, any text outside the brackets is treated as a comment; in the example comments are used to annotate each script command with a brief description of what it does.
Commands that start with [* are instructions for T-App (they are not sent to the temperature controller).
The first two lines of the script file are not script commands but provide information required by T-App.
The first line must begin with “Controller Script” – T-App will refuse to use the contents of a file lacking this header. Anything additional on the same line with this required text will be ignored.
The second line must be “Interval = #” – The number (#) is a time interval in units of seconds that controls timing in the script. For example, the value 0.6 corresponds to 0.01 minutes. After T-App processes a command, it will wait 0.6 seconds before processing the next command. The interval is also used as the unit for delay commands such as [*D 500] which instructs T-App to wait or delay 5 minutes before processing the next command in the script.