! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! ! SDDL Name: COMMAND_CNT.SDDL ! ! Purpose: This SDDL file defines the command_cnt relation. ! ! Modification History: ! ! Date PR Who Reason ! -------- ------- --- ------------------------------------------------- ! 10/28/94 27329 MRB Original implementation ! 01/15/97 16760 MRB C output, remove path_id, add new SIs ! 09/02/97 34358 MRB add new SI ! 01/19/99 36102 MRB su_id now sunit_id !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! ! LANGUAGE C, FORTRAN, SQL INCLUDE ZSPSS_USER_TYPES.SDDL RECORD CMDCNT_TYPE !------------------------------------------------------------------------------ ! ! RECORD INFORMATION ! !------------------------------------------------------------------------------ DESCRIPTION "Tallies of the commands executed on each instrument are stored in this relation. Command counts are used to determine on-board computer memory requirements and the amount of data being uplinked over an orbit. CMD_CNT/Generate stores the appropriate statistics in the fields of this relation. CMD_CNT/Delete removes records from this relation for a given SMS. Users can use this relation for their own reports evaluating system usage. At the conclusion of the expansion of a top-level instruction, a non-SMS (logical SMS only) statement is created with all the command counts for each processor and SI. In addition, the path id, activity id, scheduling unit id, start time and orbit number are output. Special command count statements are created in the logical SMS by the expander during logical SMS generation for each top-level instruction which will be output to the LSMS. Each of these special statements in a logical SMS becomes a record in this relation. The SMS catalog keeps track whether these records have been extracted and stored in this relation. " !------------------------------------------------------------------------------ ! ! FIELD INFORMATION ! !------------------------------------------------------------------------------ FIELD sms_id TYPE SMS_ID_TYPE END_FIELD FIELD sms_version TYPE SMS_VERSION_NUM_TYPE END_FIELD FIELD cc_list_ver DESCRIPTION "This is the version number for the associated CClist." TYPE CCLIST_VERSION_NUM_TYPE END_FIELD FIELD abs_time DESCRIPTION "This field contains the absolute time of the activity." TYPE FULL_SOGS_CHAR_TIME_TYPE END_FIELD FIELD sunit_id DESCRIPTION "This field is the scheduling unit identifier for which this command count applies." TYPE SUNIT_ID_TYPE END_FIELD FIELD proposal_id TYPE PROPOSAL_ID_TYPE END_FIELD FIELD program_id TYPE PROGRAM_ID_TYPE END_FIELD FIELD obset_id TYPE OBSET_ID_TYPE END_FIELD FIELD alignment_id TYPE ALIGN_ID_TYPE END_FIELD FIELD exposure_id TYPE EXPOSURE_ID_TYPE END_FIELD FIELD activity_id DESCRIPTION "This field is the acitivity identifier for which this command count applies." TYPE C*8 RELATED_FIELDS "QGACTINST.ACTIVITY_ID" END_FIELD FIELD orbit_number DESCRIPTION "This field is the orbit number for which this command count applies. All orbits are numbered in monotonically increasing order. A new orbit starts each time the spacecraft makes an ascending node crossing." TYPE I*4 END_FIELD FIELD nrtp_cnt DESCRIPTION "This field is the count for the NSSC-I relative time processor commands." TYPE I*4 RELATED_FIELDS "qginstruct.obc_nrts" END_FIELD FIELD natp_cnt DESCRIPTION "This field is the count for the NSSC-I absolute time processor commands." TYPE I*4 RELATED_FIELDS "qginstruct.obc_datp" END_FIELD FIELD drtp_cnt DESCRIPTION "This field is the count for the DF224 relative time processor commands." TYPE I*4 RELATED_FIELDS "qginstruct.obc_drts" END_FIELD FIELD datp_cnt DESCRIPTION "This field is the command count for the DF224 absolute time processor commands." TYPE I*4 RELATED_FIELDS "qginstruct.obc_datp" END_FIELD FIELD tbl_cnt DESCRIPTION "Tables do not have command counts associated with them. Here, the table size is applied to the table count and any SI's referenced in the table definition." TYPE I*4 RELATED_FIELDS "qgformat.table_size" END_FIELD FIELD foc_cnt DESCRIPTION "This is the command count for the Faint Object Camera." TYPE I*4 END_FIELD FIELD acs_cnt DESCRIPTION "This field is the command count for the Advanced Camera for Surveys." TYPE I*4 END_FIELD FIELD fos_cnt DESCRIPTION "This field is the command count for the Faint Object Spectrograph." TYPE I*4 END_FIELD FIELD hrs_cnt DESCRIPTION "This field is the command count for the High Resolution Spectrograph." TYPE I*4 END_FIELD FIELD hsp_cnt DESCRIPTION "This field is the command count for the High Speed Photometer. The HSP was removed during the first servicing mission." TYPE I*4 END_FIELD FIELD nic_cnt DESCRIPTION "This field is the command count for the Near Infrared Camera. The NIC was installed during the second (SM97) servicing mission." TYPE I*4 END_FIELD FIELD stis_cnt DESCRIPTION "This field is the command count for the Space Telescope Imaging Spectrograph. The STIS was installed during the second servicing mission (SM97)." TYPE I*4 END_FIELD FIELD wfpc_cnt DESCRIPTION "This field is the command count for the Wide Field Planetary Camera." TYPE I*4 END_FIELD END_RECORD !------------------------------------------------------------------------------ ! ! RELATION DECLARATION ! !------------------------------------------------------------------------------ RELATION command_cnt TYPE CMDCNT_TYPE DESCRIPTION "SMS Command Count Records Relation" SUBSYSTEM_USING "SCS", "PODPS" RELATED_FIELDS "sms_catalog.cmd_cnt_flag","sms_catalog.cmd_cnt_time", "qginstruct.*" INDEX command_cnt_1 TYPE clustered FIELDS sms_id, sms_version ATTRIBUTES ignore_dup_row END_INDEX END_RELATION !------------------------------------------------------------------------------ ! ! INSTANCE DECLARATION ! !------------------------------------------------------------------------------ INSTANCE command_cnt GLOBAL TYPE CMDCNT_TYPE END_INSTANCE