Campbell 237 Скачать руководство пользователя страница 17

B-1

Appendix B.  Example Programs 

Each example program measures leaf wetness and outputs a sample resistance 

and a time fraction the sensor is wet. In these examples, the output interval is 

set to 60 minutes, so a time fraction wet of .33 is equivalent to 20 minutes 

during that hour. 

Wetness threshold is set at 150 kΩ.

 

CRBasic Example B-1.  CR1000 Program Example 

Public

 Vs_Vx 

Public

 Rs_kOhms 

DataTable

(Wetness,true,-1) 

 

OpenInterval 

 

DataInterval

(0,60,Min,10) 

 

Sample

(1, Rs_kOhms, FP2) 

 

Histogram

(Rs_kOhms, FP2, 0, 1, 001, 1 , 0, 150)  

'Enter threshold in 8th parameter

 

EndTable 

BeginProg 

 

Scan

(60,Sec, 3, 0) 

 

BRHalf

(Vs_Vx, 1, mV25, 1, VX1, 1, 2500, True, 0, 250, 1, 0) 

 Rs_kOhms = (1 / Vs_Vx) - 101 
 

If

 Rs_kOhms > 10000 

Then

 

 Rs_kOhms = 10000 

 

EndIf 

 

CallTable

 Wetness 

  

NextScan 

EndProg 

CRBasic Example B-2.  CR200(X) Program Example 

'CR200(X) Series Datalogger 

Public

 Vs_Vx 

Public

 Rs_kOhm 

Public

 ScanIntervalWet 

Public

 ScanIntervalSum 

Public

 TimeFractionWet 

DataTable

 (Wetness,1,-1) 

 

DataInterval

 (0,60,min)  

'Interval must match IfTime interval (below) 

 

Sample

 (1,Rs_kohm) 

 

Sample

 (1,TimeFractionWet) 

EndTable 

BeginProg 

 

Scan

 (1,Min) 

 'Measure Wetness 

 

ExDelSE

(Vs_Vx,1,1,1,mV2500,500,.0004,0) 

 'Zero measurement when measurement < 0 

 

If

 Vs_Vx < 0 

Then

 Vs_Vx = 0  

 Rs_kOhm = (1 / Vs_Vx) - 101 

 'Sum Scan Intervals 

 ScanIntervalSum = ScanInter 1 

 'Check if Leaf wetness is below 150 kOhms transition and count as time wet 

 

If

 Rs_kohm < 150 

AND

 Rs_kohm > 0 

Then

 

   ScanIntervalWet = ScanInter 1 
 

EndIf 

Содержание 237

Страница 1: ...237 Leaf Wetness Sensor Revision 01 2021 Copyright 1988 2021 Campbell Scientific CSL I D 506...

Страница 2: ...under guarantee or not Please state the faults as clearly as possible and if the product is out of the guarantee period it should be accompanied by a purchase order Quotations for repairs can be give...

Страница 3: ...cell phones and aerials may also not be applicable according to your locality Some brackets shields and enclosure options including wiring are not sold as standard items in the European market in some...

Страница 4: ...beginning work Wear a hardhat and eye protection and take other appropriate safety precautions while working on or around tripods and towers Do not climb tripods or towers at any time and prohibit cl...

Страница 5: ...nsor Preparation 4 7 2 Sensor Deployment 4 7 3 Wiring to Datalogger 5 7 4 Datalogger Programming 6 7 4 1 Measurement of Vs Vx 6 7 4 2 Calculating Sensor Resistance 7 8 Operation 7 8 1 Calculating Wet...

Страница 6: ...Table of Contents ii 7 2 Measurement Instructions Parameters Results 7 9 1 Symptom Causes 9 CRBasic Examples B 1 CR1000 Program Example B 1 B 2 CR200 X Program Example B 1...

Страница 7: ...rubber This compound was chosen for its resistance to temperature extremes moisture and UV degradation However this jacket will support combustion in air It is rated as slow burning when tested accor...

Страница 8: ...ocessing will be required to determine parameters such as the percent of time wet Section 8 1 Calculating Wet Time Fraction p 8 4 After selecting the sensor click Wiring Diagram to see how the sensor...

Страница 9: ...Scientific supplies the sensor unpainted because individual modifications will vary with the application The paper listed in Section 10 References p 9 describes the effects of paint colour and sensor...

Страница 10: ...in plant disease and other applications Besides providing some protection for the gold plated electrodes this paint allows tiny water droplets to spread and bridge the electrodes Gillespie and Kidd1...

Страница 11: ...uit schematic of the 237 TABLE 7 1 describes wiring to Campbell Scientific dataloggers FIGURE 7 2 237 Sensor Schematic TABLE 7 1 Wire Colour Function and Datalogger Connection Wire Colour Wire Functio...

Страница 12: ...ndix A Importing Short Cut Code Into CRBasic Editor p A 1 Programming basics for CRBasic dataloggers are in the following section Complete program examples for select CRBasic dataloggers can be found...

Страница 13: ...pressed in k is calculated as follows Rs R2 Vs Vx R2 R1 Therefore Rs k 1 Vs Vx 101 Except for the CR200 X Campbell Scientific also suggests including the following after the resistance calculation If...

Страница 14: ...er to Appendix B Example Programs p B 1 for information on calculating fraction of time wet with the CR200 X 8 2 Calibration A wet dry threshold of 150 k is used in Appendix B Example Programs p B 1 W...

Страница 15: ...ly cut if the mV200C mV25C or mV50C range code was used for the BrHalf instruction Another cause of these outputs is a highly conductive state 25 mV that occurs if the sensor is very wet with very ion...

Страница 16: ...can now be edited for additional refinement Once the file is edited with CRBasic Editor Short Cut can no longer be used to edit the program it created 2 To add the Short Cut wiring information into t...

Страница 17: ...V25 1 VX1 1 2500 True 0 250 1 0 Rs_kOhms 1 Vs_Vx 101 If Rs_kOhms 10000 Then Rs_kOhms 10000 EndIf CallTable Wetness NextScan EndProg CRBasic Example B 2 CR200 X Program Example CR200 X Series Datalogge...

Страница 18: ...lculate Time Fraction Wet at top of each hour If IfTime 0 60 Min Then Interval must match data table interval TimeFractionWet ScanIntervalWet ScanIntervalSum ScanIntervalWet 0 ScanIntervalSum 0 EndIf...

Страница 19: ...nfo campbellsci fr www campbellsci fr Germany Location Phone Email Website Bremen Germany 49 0 421 460974 0 info campbellsci de www campbellsci de India Location Phone Email Website New Delhi DL India...

Отзывы: