Campbell SDM-AO4A Product Manual page 15

Four-channel analogue output module
Hide thumbs Also See for SDM-AO4A:
Table of Contents

Advertisement

'12V- 12V
'C1- C1
'C2- C2
'C3- C3
'SDM-AO4A output
'Strip chart recorder #1- 1 and ground
'Strip chart recorder #2- 2 and ground
'Strip chart recorder #3- 3 and ground
'Strip chart recorder #4- 4 and ground
'Define OneMin DataTable
DataTable(OneMin,1,-1)
DataInterval(0,1,Min,0)
WindVector
(1, WS_ms,WD_0_360, IEEE4, 0, 0, 0, 0)
Average(1,Temp_C,IEEE4,0)
Sample(1,RH, IEEE4)
EndTable
BeginProg
Scan(1,Sec,1,0)
'Code for wind measurements, WS_ms & WD_0_360:
PulseCount(WS_ms, 1,P1, 1, 1, 0.75, 0.2)
BrHalf(WD_0_360, 1,mV1000, 1,Vx1, 1, 1000, True, 1000,60, 355, 0)
' Code for temperature/humidity measurements, Temp_C and RH:
VoltSe(Temp_C,1,mV5000,2,0, 0, _60Hz,0.1,-40.0)
VoltSe(RH,1,mV5000,3,0, 0, _60Hz,0.1, 0)
'Call Data Table
CallTable(OneMin)
'Convert 0-360 WD to 0-540 for strip chart use:
If
WD_0_540 >= 270
WD_0_540 = WD_0_360 + 360
Else
WD_0_540 = WD_0_360
EndIf
'Scale the measurements for the SDM-AO4A to output 0-1000 mV
WSOut = WS_ms*20 'WS: 0-50 m/s = 0-1000 mV
WDOut = WD_0_540 *1.852 'WD: 0-540 deg = 0-1000mV
TempOut= 10*(Temp_C+40) 'Temp: -40-60 deg C = 0-1000 mV
RHOut = RH *10 'RH: 0-100 % RH = 0-1000 mV
'Send mV outputs to SDM-AO4A at SDM Address 12 (Rotary Switch at C)
SDMAO4A
(AO4AOutput(),AO4AResponse,12,1,4,1)
NextScan
EndProg
SDM-AO4A Four-Channel Analogue Output
AND
WD_0_360 <180
Then
10

Advertisement

Table of Contents
loading

Table of Contents