Table of Contents
Whenever the DataHub is running, Gamma, its scripting engine, is running. Gamma is an interpreter. Think of it as a program that is always running in the background, that you can interact with at any time. The only time Gamma stops is when the DataHub shuts down. You can write and run scripts for Gamma, or interact with it using the Script Log.
The Script Log displays output from Gamma scripts, and can also be used to conduct interactive sessions, like a terminal. To open the Script Log, right click on the DataHub icon in the system tray, and select . The Script Log should appear on your desktop:

You can use the text entry field at the bottom to send code to Gamma. Try the following:
--> a = 5; 5
--> a; 5
--> princ("Hello world.\n");
Hello world.
t--> $DataSim:DataSim.Sine; -0.47552825816976968
![]() | The colon character (:) is used to divide the domain name from the point name. The dollar sign character ($) tells Gamma that the colon is part of the variable name, not a sytactic element. |
This gives you a taste of working with Gamma, but to accomplish anything really useful and to save your work, you'll need a script. The following sections will explain how to access and edit scripts, and create your own.
Copyright © 1995-2006 by Cogent Real-Time Systems, Inc. All rights reserved.