beautypg.com

Campbell Scientific LLAC4 Four-channel, Low-Level AC Conversion Module User Manual

Page 11

background image

LLAC4 Four-Channel, Low-Level AC Conversion Module


'Main Program
BeginProg
Scan

(1,Sec,0,0)

PulseCount

(RMY05103WS,1,15,0,1,0.098,0.0)

PulseCount

(RMY05106WS,1,16,0,1,0.098,0.0)

PulseCount

(RMY05305WS,1,17,0,1,0.1024,0.0)

PulseCount

(RMY03101WS,1,18,0,1,0.750,0.20)

If RMY03101WS < 0.21 Then
RMY03101WS

=

0.0

EndIf
CallTable

WindSpd

NextScan
EndProg

CR5000 Example Program

'CR5000 Series Datalogger

Public Pulse_LLAC(2)

BeginProg
Scan

(1,Sec,0,0)

'Measure low level AC signal (RMY 05103) on LLAC4 wired to C7 and C8 on CR5000
TimerIO

(Pulse_LLAC,11000000,88000000,10,mSec) 'NOTE: Only ports CR5000 C7 and C8

'support Function 8 (frequency in Hz).

NextScan
EndProg

CR200(X) Example Program

'CR200(X) Series Datalogger
'LLAC4 Sample Program
'Record 10-minute average wind speed in m/s for:
'1 RM Young 05103-L Wind Monitor Anemometer
'1 RM Young 05106-L Marine Wind Monitor Anemometer
'1 RM Young 05305-L AQ Wind Monitor Anemometer
'1 RM Young 03101-L Wind Sentry Anemometer

'Declare Public Variables
Public RMY05103WS
Public RMY05106WS
Public RMY05305WS
Public RMY03101WS

'Define Data Tables
DataTable (WindSpd,1,-1)
DataInterval (0,10,min)
Average

(1,RMY05103WS,False)

Average

(1,RMY05106WS,False)

Average

(1,RMY05305WS,False)

Average

(1,RMY03101WS,False)

EndTable

5