background image

 

A-1 

Appendix A.  Importing Short Cut Code 

Into CRBasic Editor 

This tutorial shows: 

 

How to import a 

Short Cut

 program into a program editor for 

additional refinement 

 

How to import a wiring diagram from 

Short Cut

 into the comments of 

a custom program 

Short Cut

 creates the following files, which can be imported into 

CRBasic 

Editor

. Assuming defaults were used when 

Short Cut

 was installed, these files 

reside in the C:\campbellsci\SCWin folder: 

 

.DEF (wiring and memory usage information) 

 

.CR2 (CR200(X) datalogger code) 

 

.CR6 (CR6 datalogger code) 

 

.CR1 (CR1000 datalogger code) 

 

.CR8 (CR800 datalogger code) 

 

.CR3 (CR3000 datalogger code) 

 

.CR5 (CR5000 datalogger code) 

Use the following procedure to import 

Short Cut

 code and wiring diagram into 

CRBasic Editor

1.  Create the 

Short Cut

 program following the procedure in Section 

4

QuickStart

 

(p. 2)

. Finish the program and exit 

Short Cut

. Make note of the 

file name used when saving the 

Short Cut 

program. 

2.  Open 

CRBasic Editor

.   

3.  Click 

File

 | 

Open

. Assuming the default paths were used when 

Short Cut

 

was installed, navigate to C:\CampbellSci\SCWin folder. The file of 

interest has the .CR2, .CR6, .CR1, .CR8, .CR3, or .CR5 extension. Select 

the file and click 

Open

4.  Immediately save the file in a folder different from 

C:\Campbellsci\SCWin, or save the file with a different file name. 

Once the file is edited with 

CRBasic Editor

Short Cut

  can no 

longer be used to edit the datalogger program.  Change the name 

of the program file or move it, or 

Short Cut

 may overwrite it next 

time it is used. 

5.  The program can now be edited, saved, and sent to the datalogger. 

6.  Import wiring information to the program by opening the associated .DEF 

file. Copy and paste the section beginning with heading “-Wiring for 

CRXXX–” into the CRBasic program, usually at the head of the file. After 

pasting, edit the information such that an apostrophe (

'

) begins each line. 

This character instructs the datalogger compiler to ignore the line when 

compiling. 

NOTE 

Summary of Contents for Wind Monitor Series

Page 1: ...INSTRUCTION MANUAL Wind Monitor Series 05103 05103 45 05106 05108 05108 45 and 05305 Revision 12 15 C o p y r i g h t 1 9 8 4 2 0 1 5 C a m p b e l l S c i e n t i f i c I n c...

Page 2: ......

Page 3: ...ucts to CSI CSI will return such Products by surface carrier prepaid within the continental United States of America To all other locations CSI will return such Products best way CIP port of entry per...

Page 4: ...g container Campbell Scientific s shipping address is CAMPBELL SCIENTIFIC INC RMA _____ 815 West 1800 North Logan Utah 84321 1784 For all returns the customer must fill out a Statement of Product Clea...

Page 5: ...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...

Page 6: ......

Page 7: ...logger and Generate Wiring Diagram 3 5 Overview 6 6 Specifications 7 7 Installation 9 7 1 Siting 9 7 2 Assembly and Mounting 9 7 3 Wiring 11 7 4 Programming 11 7 4 1 Wind Speed 12 7 4 2 Wind Direction...

Page 8: ...ion angles east of True North are subtracted from 0 to get True North C 2 C 3 Declination angles west of True North are added to 0 to get True North C 3 D 1 05103 potentiometer in a half bridge circui...

Page 9: ...ellsci com old manuals or contact a Campbell Scientific application engineer for assistance 2 Precautions READ AND UNDERSTAND the Safety section at the front of this manual The wind monitor is a preci...

Page 10: ...sarm to a tripod or tower 3 Orient the crossarm North South with the 17953 NU RAIL on the north end Appendix C Wind Direction Sensor Orientation p C 1 contains detailed information on determining true...

Page 11: ...erminals The following procedure shows using Short Cut to program the sensor 1 Install Short Cut by clicking on the install file icon Get the install file from either www campbellsci com the ResourceD...

Page 12: ...Wind Monitor Series 4 3 When Short Cut opens select New Program 4 Select the Datalogger Model and enter the Scan Interval default of 5 seconds is OK for most applications Click Next...

Page 13: ...AQ Wind Speed Direction Sensor Click to move the selection to the Selected device window The wind speed defaults to meters second This can be changed by clicking the Wind Speed box and selecting one...

Page 14: ...is proportional to wind direction The R M Young Instruction Manual includes additional information on the operating principles installation and maintenance of the sensor The wind monitors are manufact...

Page 15: ...000 and CR9000 X TABLE 6 1 Wind Speed Specifications 05103 Wind Monitor 05103 45 Wind Monitor Alpine 05106 Wind Monitor MA 05108 Heavy Duty Wind Monitor 05108 45 Heavy Duty Wind Monitor Alpine 05305 W...

Page 16: ...10 k linearity 0 25 life expectancy 50 million revolutions Power switched excitation voltage supplied by datalogger TABLE 6 3 Physical Specifications 05103 Wind Monitor 05103 45 Wind Monitor Alpine 05...

Page 17: ...D A 12 inch long mounting pipe ships with the wind monitor for attaching the sensor to a CM200 series crossarm with the CM220 FIGURE 7 1 or 1049 NU RAIL fitting FIGURE 4 1 in QuickStart section The 05...

Page 18: ...Wind Monitor Series 10 FIGURE 7 1 CM220 Right Angle Mounting Kit mounted to a crossarm FIGURE 7 2 The CM216 allows the wind monitor to mount atop a tripod CM220 CM200 Series Crossarm...

Page 19: ...matically configured by the measurement instruction 7 4 Programming Short Cut is the best source for up to date datalogger programming code Programming code is needed when creating a program for a new...

Page 20: ...x B where M multiplier x number of pulses per second Hertz B offset TABLE 7 2 lists the multipliers to obtain miles hour or meters second when the measurement instruction is configured to output Hz Th...

Page 21: ...wind speed unit vector mean wind direction and Standard Deviation of the wind direction optional using the measured wind speed and direction samples 8 Sensor Maintenance Every month do a visual audio...

Page 22: ...e green wires should vary between about 1 k to 11 k depending on vane position Resistance when the vane is in the 5 degree dead band should be about 1 M Symptom Incorrect wind direction 1 Verify that...

Page 23: ...System Office of Research and Development Research Triangle Park NC 27711 EPA 1987 On Site Meteorological Program Guidance for Regulatory Modeling Applications EPA 450 4 87 013 Office of Air Quality...

Page 24: ...Wind Monitor Series 16...

Page 25: ...te of the file name used when saving the Short Cut program 2 Open CRBasic Editor 3 Click File Open Assuming the default paths were used when Short Cut was installed navigate to C CampbellSci SCWin fol...

Page 26: ...Appendix A Importing Short Cut Code Into CRBasic Editor A 2...

Page 27: ...bles and Units Public Batt_Volt Public WS_ms Public WindDir Units Batt_Volt Volts Units WS_ms meters second Units WindDir Degrees Define Data Tables DataTable Hour True 1 DataInterval 0 60 Min 10 Wind...

Page 28: ...S_ms WindDir FP2 False 0 0 0 FieldNames WS_ms_S_WVT WindDir_D1_WVT WindDir_SD1_WVT EndTable Main Program BeginProg Main Scan Scan 5 Sec 1 0 Default Datalogger Battery Voltage measurement BattV Battery...

Page 29: ...1 DataInterval 0 60 Min WindVector WS_ms WindDir False 0 0 FieldNames WS_ms_S_WVT WindDir_D1_WVT WindDir_SD1_WVT EndTable Main Program BeginProg Main Scan Scan 5 Sec Default Datalogger Battery Voltag...

Page 30: ...Appendix B Example Programs B 4...

Page 31: ...ative and are subtracted from 360 degrees to get True North as shown FIGURE C 2 0 and 360 are the same point on a compass For example the declination for Logan Utah is 11 78 East 11 August 2015 True N...

Page 32: ...ndix C Wind Direction Sensor Orientation C 2 FIGURE C 1 Magnetic declination for the contiguous United States 2015 FIGURE C 2 Declination angles east of True North are subtracted from 0 to get True No...

Page 33: ...Appendix C Wind Direction Sensor Orientation C 3 FIGURE C 3 Declination angles west of True North are added to 0 to get True North...

Page 34: ...Appendix C Wind Direction Sensor Orientation C 4...

Page 35: ...rement result is the ratio of the measured voltage to the excitation voltage Vs Vx This ratio is related to the resistance as shown below s t s x s R R R V V The maximum value that Rs will reach is Rf...

Page 36: ...Appendix D Wind Direction Measurement Theory D 2...

Page 37: ......

Page 38: ...ua Apinag s nbr 2018 Perdizes CEP 01258 00 S o Paulo SP BRASIL www campbellsci com br vendas campbellsci com br Campbell Scientific Canada Corp 14532 131 Avenue NW Edmonton AB T5L 4X4 CANADA www campb...

Reviews: