Section 7. Installation
199
NSEC — One Element Time Array
'This program example demonstrates the use of NSEC data type to determine seconds since
'00:00:00 1 January 1990. A time stamp is retrieved into variable TimeVar(1) as seconds
'since 00:00:00 1 January 1990. Because the variable is dimensioned to 1, NSEC assumes
'the value = seconds since 00:00:00 1 January 1990.
'Declarations
Public
PTemp
Public
TimeVar(1)
As Long
DataTable
(FirstTable,True,-1)
DataInterval
(0,1,Sec,10)
Sample
(1,PTemp,FP2)
EndTable
DataTable
(SecondTable,True,-1)
DataInterval
(0,5,Sec,10)
Sample
(1,TimeVar,Nsec)
EndTable
'Program
BeginProg
Scan(1,Sec,0,0)
TimeVar = FirstTable.TimeStamp
CallTable FirstTable
CallTable SecondTable
NextScan
EndProg
NSEC — Two Element Time Array
'This program example demonstrates how to determine seconds since 00:00:00 1 January 1990,
'and microseconds into the last second. This is done by retrieving variable TimeStamp into
'variables TimeOfMaxVar(1) and TimeOfMaxVar(2). Because the variable TimeOfMaxVar() is
'dimensioned to 2, NSEC assumes the following:
' 1) TimeOfMaxVar(1) = seconds since 00:00:00 1 January 1990, and
' 2) TimeOfMaxVar(2) = microseconds into a second.
'Declarations
Public
PTempC
Public
MaxVar
Public
TimeOfMaxVar(2)
As Long
DataTable(
FirstTable,True,-1)
DataInterval
(0,1,Min,10)
Maximum
(1,PTempC,FP2,False,True)
EndTable
DataTable
(SecondTable,True,-1)
DataInterval
(0,5,Min,10)
Sample
(1,MaxVar,FP2)
Sample
(1,TimeOfMaxVar,Nsec)
EndTable
Summary of Contents for CR800 Series
Page 2: ......
Page 4: ......
Page 6: ......
Page 32: ......
Page 34: ......
Page 54: ......
Page 92: ......
Page 310: ......
Page 446: ...Section 8 Operation 446 8 11 2 Data Display FIGURE 100 CR1000KD Displaying Data ...
Page 448: ...Section 8 Operation 448 FIGURE 102 CR1000KD Real Time Custom ...
Page 449: ...Section 8 Operation 449 8 11 2 3 Final Storage Data FIGURE 103 CR1000KD Final Storage Data ...
Page 450: ...Section 8 Operation 450 8 11 3 Run Stop Program FIGURE 104 CR1000KD Run Stop Program ...
Page 452: ...Section 8 Operation 452 FIGURE 106 CR1000KD File Edit ...
Page 456: ......
Page 462: ......
Page 523: ...Section 11 Glossary 523 FIGURE 116 Relationships of Accuracy Precision and Resolution ...
Page 524: ......
Page 526: ......
Page 556: ......
Page 558: ......
Page 560: ......
Page 597: ......