
Section 8. Operation
344
willberepresentedbyfourfieldnames:“values(1,1)”,“values(1,2)”,
“values(2,1)”,and“values(2,2)”.Scalar(non‐array)variableswillnot
havesubscripts.
Line 3 – Data Units
Includestheunitsassociatedwitheachfieldintherecord.Ifnounits
areprogrammedintheCR3000CRBasicprogram,anemptystringis
enteredforthatfield.
Line 4 – Data-Processing Descriptors
EntriesdescribewhattypeofprocessingwasperformedintheCR
3000
toproducecorrespondingdata,e.g.,Smpindicatessamples,Min
indicatesminima.Ifthereisnorecognizedprocessingforafield,itis
assignedanemptystring.Therewillbeonedescriptorforeachfield
namegivenonHeaderLine2.
Record Element 1 – Timestamp
Datawithoutti
mestampsareusuallymeaningless.Nevertheless,the
TableFile()instructionoptionallyincludestimestampsinsomeformats.
Record Element 2 – Record Number
Recordnumbersareoptionallyprovidedinsomeformatsasameansto
ensuredataintegrityandprovideanup‐countdatafieldforgraphing
operations.Themaximumrecordnumberis&hffffffff(a32‐bit
number),thenthere
cordnumbersequencerestartsatzero.The
CR3000reportsbacktothedataloggersupportsoftware31bits,ora
maximumof&h7fffffff,thenitrestartsat0.Iftherecordnumber
incrementsonceasecond,restartatzerowilloccuraboutonceevery
68years.
8.3.2 Memory Conservation
One or more of the following memory-saving techniques can be used on the rare
occasions when a program reaches memory limits:
• Declare variables as DIM instead of Public. DIM variables do not require
buffer memory for data retrieval.
• Reduce arrays to the minimum size needed. Arrays save memory over the
use of scalars as there is less "meta-data" required per value. However, as a
rough approximation, 192000 (4-kB memory) or 87000 (2-kB memory)
variables will fill available memory.
• Use variable arrays with aliases instead of individual variables with unique
names. Aliases consume less memory than unique variable names.
• Confine string concatenation to DIM variables.
• Dimension string variables only to the size required.
Komentarze do niniejszej Instrukcji