16
Programming the Addressable MEMS Tiltmeter with CRBASIC
Description:
CRBASIC is the programming Language used with Campbell Scientific CRBASIC Dataloggers.
Campbell’s Loggernet Software is typically used when programming in CRBASIC. The MEMS
sensor should be read with the VoltDiff instruction and the output averaged 100x.
Sample Program:
‘The following sample program reads 20 addressable Bi-Axial MEMS Gages and
Thermistors. The A-Axis is read on Differential Channel 1, the B-Axis is read on Differential
Channel 2 and the Thermistors are read with Single Ended Channel 5 and the bridge excited
with EX1. The string is enabled with Control Port 1 and clocked with control port 8.
'Declare Public Variables for Reading MEMS Sensor and Thermistor
Public MEMS_1
Public MEMS_2
Public MEMS_3
Public THERM_1
Public THERM_2
Public THERM_3
Public Channel 'Counter
Public Reading_A
'Output of the A Axis
Public Reading_B
'Output of the B Axis
Public Reading_THERM
'Output of Thermistor
'Store MEMS Output every 5 minutes
DataTable (MEMS_EXAMPLE,1,-1)
Sample (1,Reading_A,IEEE4)
Sample (1,Reading_B,IEEE4)
Sample (1,Reading_THERM,IEEE4)
EndTable
BeginProg
'5 min scan interval
Scan (5,min,0,0)
'enable String using C1
PortSet(1,1)
'Delay
Delay(0,125,MSEC)
Содержание 6160
Страница 2: ......
Страница 4: ......
Страница 15: ...9 Figure 6 Sample Model 6160 or 6150 Calibration Sheet ...