Section 8. datalogger programming, 1 cr1000 example, Datalogger programming -1 – Campbell Scientific ST350 Strain Transducer for Structural Testing User Manual

Page 29: Cr1000 example -1

Advertising
background image

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

Advertising