Appendix A. CRBasic Programming Instructions
453
ReadOnly
Flagsacommaseparatedlistofvariables(PublicorAliasname)asread‐only.
Syntax
ReadOnly [variable1, variable2, ...]
Units
Assignsaunitnametoafieldassociatedwithavariable.
Syntax
Units [variable] = [unit name]
A.1.2 Constant Declarations
Const
Declaressymbolicconstantsforuseinplaceofnumericentries.
Syntax
Const [constant name] = [value or expression]
ConstTable/EndConstTable
Declaresconstants,thevalueofwhichcanbechangedusingtheexternal
keyboard/displayorterminalCoption.Theprogramisrecompiledwiththenew
valueswhenvalueschange.SeeConstants
(p.122).
Syntax
ConstTable
[constant a] = [value]
[constant b] = [value]
[constant c] = [value]
EndConstTable
A.2 Data-Table Declarations
DataTable/EndTable
Markthebeginningandendofadatatable.
Syntax
DataTable(Name, TrigVar, Size)
[data table modifiers]
[on-line storage destinations]
[output processing instructions]
EndTable
DataTime
Declarationwithinadatatablethatallowstimestampingwithsystemtime.
Syntax
DataTime(Option)
A.2.1 Data-Table Modifiers
DataEvent
Setstriggerstostartandstopstoringrecordswithinatable.Oneapplicationis
withWorstCase.
Syntax
DataEvent(RecsBefore, StartTrig, StopTrig, RecsAfter)