Campbell-scientific CR1000 Measurement and Control System Manual de usuario Pagina 223

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 588
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 222
Section 7. Installation
223
Figure 75: Data from TrigVar program
CRBasicExample42. UsingTrigVartoTriggerDataStorage
'In this example, the variable "counter" is incremented by 1 each scan. The data table
'is called every scan, which includes the Sample(), Average(), and Totalize()
'instructions. TrigVar is true when counter = 2 or counter = 3. Data are stored when
'TrigVar is true. Data stored are the sample, average, and total of the variable
'counter, which is equal to 0, 1, 2, 3, or 4 when the data table is called.
Public counter
DataTable(Test,counter=2 or counter=3,100)
Sample(1,counter,FP2)
Average(1,counter,FP2,False)
Totalize(1,counter,FP2,False)
EndTable
BeginProg
Scan(1,Sec,0,0)
counter = counter + 1
If counter = 5 Then
counter = 0
EndIf
CallTable Test
NextScan
EndProg
7.8.10 NSEC Data Type
Data of NSEC data type reside only in final data storage. A datum of NSEC
consists of eight bytes — four bytes of seconds since 1990 and four bytes of
nanoseconds into the second. Nsec is declared in the Data Type parameter in final-
data storage output-processing instructions
(p. 477). It is used in the following
applications.
Placing a time stamp in a second position in a record.
Accessing a time stamp from a data table and subsequently storing it as part
of a larger data table. Maximum(), Minimum(), and FileTime() instructions
Vista de pagina 222
1 2 ... 218 219 220 221 222 223 224 225 226 227 228 ... 587 588

Comentarios a estos manuales

Sin comentarios