next up previous
Next: Device Setup Glish Script Up: gbtGOglishScripts Previous: Device Parameter Lists

Device Glish Script Template Generation

An alternative way of determining the parameter lists for a device is to use the deviceGlishScript() function in getDeviceParameters.g. This function will create a ``first attempt'' device setup glish script. It will provide some documentation including possible values for enumerated data types. This function is not guaranteed to be completely correct and its outputs should be thoroughly checked over. Parameters will also have to be moved around in the created file to match the template defined below.

To use this function follow this formula:

source /home/gbt/gbt.bash
glish -l getDeviceParameters.g
Note: If you are using a shell other than bash then you replace bash by csh or sh in the "source" line. Then once glish has started:
deviceGlishScript('XXX')
deviceGlishScript('XXX','filename')
The first deviceGlishScript() command sends the output to the terminal screen. The second deviceGlishScript() command will send the output to the desired filename. You should replace XXX with the desired device name. If you want the output to go to a specified file you should replace filename which the full path and filename of the desired output file.



Bob Garwood 2011-07-25