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

  • 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 127
Section 7. Installation
128
'Define Data Tables
DataTable(OneMin,True,-1)
DataInterval(0,1,Min,10)
Average(1,Batt_Volt,FP2,False)
Average(1,PTemp_C,FP2,False)
Average(2,Temp_C(1),FP2,False)
EndTable
DataTable(Table1,True,-1)
DataInterval(0,1440,Min,0)
Minimum(1,Batt_Volt,FP2,False,False)
EndTable
'Main Program
BeginProg
Scan(5,Sec,1,0)
'Default Datalogger Battery Voltage measurement Batt_Volt:
Battery(Batt_Volt)
'Wiring Panel Temperature measurement PTemp_C:
PanelTemp(PTemp_C,_60Hz)
'Type T (copper-constantan) Thermocouple measurements Temp_C:
TCDiff(Temp_C(),2,mV2_5C,1,TypeT,PTemp_C,True,0,_60Hz,1,0)
'Call Data Tables and Store Data
CallTable(OneMin)
CallTable(Table1)
NextScan
EndProg
DataTable() and EndTable Instructions
The DataTable() instruction has three parameters: a user-specified alphanumeric
name for the table (for example, OneMin), a trigger condition (for example,
"True"), and the size to make the table in RAM (for example, auto allocated).
Name-The table name can be any combination of numbers, letters, and
underscore up to 20 characters in length. The first character must be a letter
or underscore.
Note While other characters may pass the precompiler and compiler, runtime
errors may occur if these naming rules are not adhered to.
TrigVar-Controls whether or not data records are written to storage. Data
records are written to storage if TrigVar is true and if other conditions, such as
DataInterval(), are met. Default setting is -1 (True). TrigVar may be a
variable, expression, or constant. TrigVar does not control intermediate
processing. Intermediate processing is controlled by the disable variable,
DisableVar, which is a parameter in all output processing instructions (see
section, Output Processing Instructions
(p. 131) ).
Read More! Section, TrigVar and DisableVar — Controlling Data Output and
Output Processing (p. 222) discusses the use of TrigVar and DisableVar in special
applications.
Vista de pagina 127
1 2 ... 123 124 125 126 127 128 129 130 131 132 133 ... 587 588

Comentarios a estos manuales

Sin comentarios