Section 8. Datalogger Programming
This section is for users who write their own datalogger programs. A
datalogger program to measure this sensor can be created using Campbell
Scientific’s Short Cut Program Builder Software if using LoggerNet or by
using PC9000 software for the CR5000 or CR9000X. Short Cut or PC9000 are
used to create the datalogger program, the sensors should be wired to the
channels shown in the wiring diagram created by either program. Any
reference to specific channel assignments is for these examples only.
8.1 CR1000 Example
'CR1000
'Created by Short Cut (2.5)
'Declare Variables and Units
Public
Batt_Volt
Public
PTemp_C
Public
Temp_C(2)
Public
FullBR(2)
Units
Batt_Volt=Volts
Units
PTemp_C=Deg C
Units
Temp_C=Deg C
Units
FullBR=mV
'Define Data Tables
DataTable
(MFGTRUSS,True,-1)
DataInterval
(0,60,Min,10)
Sample
(1,PTemp_C,FP2)
Sample
(1,Temp_C(1),FP2)
FieldNames
("TrussTemp1")
Sample
(1,FullBR(1),FP2)
FieldNames
("B1231")
Sample
(1,FullBR(2),FP2)
FieldNames
("B1232")
EndTable
DataTable
(Table2,True,-1)
DataInterval
(0,1440,Min,10)
Minimum
(1,Batt_Volt,FP2,False,False)
EndTable
'Main Program
BeginProg
Scan
(1,Min,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(1):
TCDiff
(Temp_C(1),2,mV2_5C,1,TypeT,PTemp_C,True,0,_60Hz,1,0)
'Generic Full Bridge measurements FullBR(1):
BrFull
(FullBR(1),2,mV25,3,1,1,2500,False,True,0,_60Hz,1.0,0.0)
'Call Data Tables and Store Data
8-1
Содержание ST350
Страница 1: ...ST350 Strain Transducer 2 08 C o p y r i g h t 2 0 0 8 C a m p b e l l S c i e n t i f i c I n c...
Страница 6: ...Section 1 Introduction 1 2...
Страница 8: ...Section 2 Specifications 2 2...
Страница 12: ...Section 3 Sensor Alignment and Installation 3 4...
Страница 22: ...Section 5 Mounting of Sensor to Various Surfaces 5 8...
Страница 24: ...Section 6 Calibration and Validation 6 2...
Страница 28: ...Section 7 Maintenance Replacement Parts and Repairs 7 4...
Страница 32: ...Section 8 Datalogger Programming 8 4...
Страница 44: ...Appendix B ST350 Accuracy Verification B 6...
Страница 49: ...This is a blank page...