17
'counter for number of sensors
For Channel = 1 To 20
'1st clock using C8
PortSet(8,1)
Delay(0,10,MSEC)
PortSet(8,0)
Delay(0,10,MSEC)
'Delay
Delay(0,100,mSec)
'Read the A-axis
'Reset the temporary storage location
MEMS_3 = 0
'counter
For MEMS_1 = 1 To 100
'differential voltage measurement on DIFF1
VoltDiff (MEMS_2,1,mV5000,1,False,0,1000,0.001,0)
'Sum the readings
MEMS_3 = MEMS_2
'Increment To 100
Next
'Calculate the Average reading value
Reading_A = MEMS_3 / 100
'Read the B-axis
'Reset the temporary storage location
MEMS_3 = 0
'counter
For MEMS_1 = 1 To 100
'differential voltage measurement on DIFF2
VoltDiff (MEMS_2,1,mV5000,2,False,0,1000,0.001,0)
'Sum the readings
MEMS_3 = MEMS_2
'Increment To 100
Next
Содержание 6160
Страница 2: ......
Страница 4: ......
Страница 15: ...9 Figure 6 Sample Model 6160 or 6150 Calibration Sheet ...