T A B L E O F C O N T E N T S 1 INTRODUCTION 1 1.1 PURPOSE 1 1.2 SCOPE 1 1.3 APPLICABLE DOCUMENTS 1 1.4 REFERENCE DOCUMENTS 2 1.5 ABBREVIATIONS AND ACRONYMS 3 1.6 GLOSSARY 3 2 OVERVIEW 5 2.1 Format definitions 5 2.2 Common subroutines and utilities 5 2.3 Standard Database structure 6 2.4 Standard states 6 2.5 Standard commands 6 3 FORMAT DEFINITIONS 7 3.1 SETUP FILES 7 3.1.1 Types of setup files 7 3.1.2 Setup file handling 8 3.1.3 Setup file format 8 3.2 OBSERVATION BLOCKS AND TEMPLATES 8 3.2.1 Introduction 8 3.2.2 Templates 9 3.2.3 Observation Blocks 9 3.3 ALIAS CONVERSION TABLES 10 3.4 INSTRUMENT DICTIONARY 10 3.5 INSTRUMENT CONFIGURATION FILES 10 3.6 FITS COMPRESSION 11 3.7 DIRECTORY STRUCTURE 12 4 COMMON SUBROUTINES AND UTILITIES 15 4.1 Detector data transmission from LCU to IWS 15 4.2 Protocol Converter 15 4.3 Disk space monitor 15 4.4 Short-FITS format handling 15 4.5 Configuration Tool 15 4.6 FITS operational logs 15 4.7 Real-Time Display 15 4.8 Installation 15 4.9 Startup/Shutdown 15 4.10 Base DCS 16 4.11 Base ICS 16 4.12 Base OS 16 4.13 Common Software for Templates 16 4.14 Common Test Software 16 4.15 Template Instrument 16 5 STANDARD DATABASE STRUCTURE 17 5.1 DATABASE POINTS 17 6 STANDARD STATES 19 6.1 Introduction 19 6.2 LCU states 19 6.3 Instrument and Detector States 19 6.4 State transition 20 7 STANDARD COMMANDS 21 7.1 Command syntax and conventions 21 7.2 ICS 22 7.3 DCS 22 7.4 OS 22 8 DEVELOPMENT AND TEST FACTORS 25 8.1 Planning 25 9 REFERENCE 27 9.1 SCRIPTS 27 9.1.1 Create new Instrument from template 27 9.1.2 Create new module structure from template 29 9.2 EXAMPLES 30 9.2.1 Reference Setup File 30