background image

Appendix B. Example program

CRBasic Example 1:

'CR1000X Series Datalogger

'Explanation of Constants and Variables Used in Data logger Program
'BattV = data logger battery voltage
'PanelT = data logger panel temperature
'Net(4) = Array to hold output from SDI12Recorder function;
'         Location 1 = incoming SW, Location 2 = outgoing SW,
'         Location 3 = incoming LW, Location 4 = outgoing LW
'Incoming_SW = downwelling shortwave radiation in Watts per square meter
'Outgoing_SW = upwelling (reflected) shortwave radiation in Watts per
'square meter
'Incoming_LW = downwelling longwave radiation in Watts per square meter
'Incoming_LW = upwelling (emitted) longwave radiation in Watts per
'square meter

'Declare Public Variables

Public

BattV, PanelT

Public

Net(4)

'Rename Variables

Alias

Net(1) = Incoming_SW

Alias

Net(2) = Outgoing_SW

Alias

Net(3) = Incoming_LW

Alias

Net(4) = Outgoing_LW

'Define Data Tables

DataTable

(Net_Rad,1,-1)

DataInterval

(0,1,Min,10)

Minimum

(1,BattV,IEEE4,0,False)

Sample

(1,PanelT,IEEE4)

Average

(1,Incoming_SW,IEEE4,False)

Average

(1,Outgoing_SW,IEEE4,False)

Average

(1,Incoming_LW,IEEE4,False)

Average

(1,Outgoing_LW,IEEE4,False)

EndTable

'Main Program

BeginProg

'The scan rate should not be less than 10 s; faster rates cause the
'data table to fail to populate.

Scan

(10,Sec,0,0)

SN500SS Net Radiometer

17

Содержание SN500SS

Страница 1: ...12 2018 Copyright 2018 Campbell Scientific Inc ...

Страница 2: ...cts to CSI CSI will return such Products by surface car rier prepaid within the continental United States of America To all other locations CSI will return such Products best way CIP port of entry per Incoterms 2010 This warranty shall not apply to any Products which have been subjected to modification misuse neglect improper service acci dents of nature or shipping damage This warranty is in lieu...

Страница 3: ...ing 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 Cleanliness and Decon tamination form and comply with the requirements specified in it The form is available from our website at www campbellsci com repair A completed form must be either emailed to repair campbellsci com or faxed to 435 227 9...

Страница 4: ...ng work l Wear a hardhat and eye protection and take other appropriate safety precautions while working on or around tripods and towers l Do not climb tripods or towers at any time and prohibit climbing by other persons Take reasonable precautions to secure tripod and tower sites from trespassers l Use only manufacturer recommended parts materials and tools Utility and Electrical l You can be kill...

Страница 5: ... Sensor measurements 11 8 2 Long cables 12 9 Maintenance calibration and troubleshooting 13 9 1 Maintenance 13 9 2 Calibration 13 9 3 Troubleshooting 14 Appendix A Importing Short Cut code into CRBasic Editor 15 Appendix B Example program 17 Appendix C SDI 12 sensor support 19 C 1 Introduction 19 C 2 SDI 12 command basics 19 C 2 1 Acknowledge active command a 20 C 2 2 Send identification command a...

Страница 6: ...asurement commands with cyclic redundancy check aMC and aCC 24 C 2 9 Stopping a measurement command 24 C 2 10 Send data command aD0 aD9 24 C 2 11 Continuous measurement command aR0 aR9 25 C 2 12 Extended commands 25 C 3 SDI 12 transparent mode 25 C 3 1 Changing an SDI 12 address 26 C 3 2 Changing an SDI 12 address CR200 X Series 27 C 4 References 28 Table of Contents v ...

Страница 7: ...taken when opening the shipping package to not damage or cut the cable jacket If damage to the cable is suspected consult with Campbell Scientific l The SN500SS is a precision instrument Please handle it with care l When cleaning the sensor never use an abrasive material or cleaner on the diffuser 3 Initial inspection Upon receipt of the SN500SS inspect the packaging and contents for damage File d...

Страница 8: ...Short Cut and click Create New Program 2 Double click the data logger model 3 In the Available Sensors and Devices box type SN500SS or locate the sensor in the Sensors Meteorological Solar Radiation folder Double click SN500SS Type the correct SDI 12 Address SN500SS Net Radiometer 2 ...

Страница 9: ...4 Click the Wiring tab to see how the sensor is to be wired to the data logger Click OK after wiring the sensor 5 Repeat steps three and four for other sensors SN500SS Net Radiometer 3 ...

Страница 10: ...lick Finish and save the program Send the program to the data logger if the data logger is connected to the computer 9 If the sensor is connected to the data logger check the output of the sensor in the data log ger support software data display in LoggerNet PC400 RTDAQ or PC200W to make sure it is making reasonable measurements SN500SS Net Radiometer 4 ...

Страница 11: ...com ing downwelling and outgoing upwelling shortwave and longwave radiation Net radiation at Earth surface is spatially and temporally variable due to changes in position of the sun with respect to Earth s surface changes in atmospheric conditions and differences in land surface con ditions Shortwave radiation accounts for a larger proportion of net radiation during the day when the sun is shining...

Страница 12: ...ter sensitivity range 0 057 mV per W m2 upward looking 0 15 mV per W m2 downward looking Pyranometer expected output range 0 to 114 mV upward looking 0 to 300 mV downward looking Pyrgeometer spectral response 5 000 to 30 000 nm Pyrgeometer sensitivity range 0 12 mV per W m2 Pyrgeometer expected output range 24 to 24 mV Operating temperature range 50 to 80 C Relative humidity 0 to 100 Response time...

Страница 13: ... with a 60 m radius To avoid shading or reflection effects and to promote spatial averaging the SN500SS should be mounted at least 1 5 m 5 ft above the ground or crop surface Campbell Scientific recommends that the SN500SS be mounted to a separate vertical pipe at least 7 6 m 25 ft from any other mounting structures The sensor should be mounted with the cable pointing towards the nearest magnetic ...

Страница 14: ...tical pipe ensure that the pipe does not cast a reflection on the sensor This includes both the incoming and out going sections of the sensor FIGURE 7 3 Two views of the SN500SS mounted to a horizontal crossarm 3 Insert the sensor support arm into the mounting block of the mounting bracket kit FIGURE 7 3 p 8 Make sure the sensor points in the direction of the arrows that appear after the SN500SS N...

Страница 15: ...sistant cable ties included with the tripod or tower to secure the cable to the vertical pipe or crossarm and tripod tower 7 3 Wiring to the data logger Connect the SN500SS to the data logger in the order shown in Table 7 1 p 9 Table 7 1 Wire color function and data logger connection Wire color Wire function Data logger connection White SDI 12 signal C SDI 12 or U configured for SDI 121 Clear Shie...

Страница 16: ...ata loggers are provided in the following section Complete program examples for select CRBasic data loggers can be found in Example program p 17 7 4 1 SDI 12 programming The SDI12Recorder instruction is used to measure an SN500SS This instruction sends a request to the sensor to make a measurement and then retrieves the measurement from the sensor See Sensor measurements p 11 for more information ...

Страница 17: ... the values are ready Rather the data logger picks up the data with the D command on the next pass through the program Another measurement request is then sent so that data is ready on the next scan NOTE This section briefly describes using the SDI 12 commands Additional SDI 12 information is available in SDI 12 sensor support p 19 or at www sdi 12 org The MC and CC commands are the same as the pr...

Страница 18: ...r incom ing LW 3 Voltage signal for outgoing LW 4 Sensor body temperature for out going LW mV C mV C aM4 aC4 aMC4 or aCC4 Albedo W m 2 aXHON Turn heater on aXHOFF Turn heater off Returns the SDI 12 Address See SDI 12 sensor support p 19 for additional commands and details of the SDI 12 protocol 8 2 Long cables The SDI 12 standard specifies the maximum total cable length to be 61 m 200 ft Digital d...

Страница 19: ...of day at any location in the world It is most accurate when used near solar noon in spring and summer months where accuracy over multiple clear and unpolluted days is estimated to be 4 in all climates and locations around the world For best accuracy the sky must be completely clear as reflected radiation from clouds causes incoming radiation to increase above the value predicted by the clear sky ...

Страница 20: ...the SDI12Recorder instruction 2 Check the voltage to the sensor with a digital voltage meter If a switched 12V terminal is used temporarily connect the red wire to a 12V terminal non switched for test purposes 3 Verify the probe SDI 12 address matches the address entered for the SDI12Recorder instruction The address can be verified or changed with the commands described in SDI 12 sensor support p ...

Страница 21: ...CR5 CR5000 datalogger code l CR9 CR9000 X datalogger code Import Short Cut code and wiring diagram into CRBasic Editor 1 Create the Short Cut program following the procedure in QuickStart p 1 Finish the pro gram On the Advanced tab click the CRBasic Editor button The program opens in CRBasic with the name noname CR_ Provide a name and save the program NOTE Once the file is edited with CRBasic Edit...

Страница 22: ...er compiler to ignore the line when compiling You can highlight several lines of CRBasic code then right click and select Comment Block This fea ture is demonstrated at about 5 10 in the CRBasic Features video SN500SS Net Radiometer 16 ...

Страница 23: ...welling longwave radiation in Watts per square meter Incoming_LW upwelling emitted longwave radiation in Watts per square meter Declare Public Variables Public BattV PanelT Public Net 4 Rename Variables Alias Net 1 Incoming_SW Alias Net 2 Outgoing_SW Alias Net 3 Incoming_LW Alias Net 4 Outgoing_LW Define Data Tables DataTable Net_Rad 1 1 DataInterval 0 1 Min 10 Minimum 1 BattV IEEE4 0 False Sample...

Страница 24: ...ttery BattV PanelTemp PanelT 60 Measure Surface Temperature SDI12Recorder Net C1 0 MC 1 0 0 refer to Table 8 1 for a list of relevant commands Call Output Tables CallTable Net_Rad NextScan EndProg SN500SS Net Radiometer 18 ...

Страница 25: ...nd SDI 12 Sensors Watch or Sniffer Mode videos C 2 SDI 12 command basics SDI 12 commands have three components l Sensor address a a single character and the first character of the command Use the default address of zero 0 unless multiple sensors are connected to the same port l Command body an upper case letter the command optionally followed by one or more alphanumeric qualifiers l Command termin...

Страница 26: ...ement and Request CRC aRC0 aRC9 a values CRC CR LF Extended Commands aXNNN a values CR LF 1 Information on each of these commands is given in the following sections C 2 1 Acknowledge active command a The Acknowledge Active command a is used to test a sensor on the SDI 12 bus An active sensor responds with its address C 2 2 Send identification command al Sensor identifiers are requested by issuing ...

Страница 27: ...ddress ttt time in seconds until verification information is available n the number of values to be returned when one or more subsequent D commands are issued C 2 4 Address query command Command requests the address of the connected sensor The sensor replies to the query with the address a This command should only be used with one sensor on the SDI 12 bus at a time C 2 5 Change address command aAb...

Страница 28: ... 0 immediately indicates that it will return two values within the next 35 seconds 0 CR LF Within 35 seconds sensor 0 indicates that it has completed the meas urement by sending a service request to the data logger 0D0 The data logger immediately issues the first D command to collect data from the sensor 0 859 3 54 CR LF The sensor immediately responds with the sensor address and the two values C ...

Страница 29: ...LF Sensor Y immediately indicates that it will have 6 06 values ready for collection within the next 40 040 seconds ZC The data logger makes a request to sensor Z to start a concurrent measurement Z02010 CR LF Sensor Z immediately indicates that it will have 10 val ues ready for collection within the next 20 020 seconds ZD0 After 20 seconds have passed the data logger starts the process of collect...

Страница 30: ...g to learn more about how the CRC code is developed C 2 9 Stopping a measurement command A measurement command M is stopped if it detects a break signal A break signal is sent by the data logger before most commands A concurrent measurement command C is aborted when another valid command is sent to the sensor before the measurement time has elapsed C 2 10 Send data command aD0 aD9 The Send Data co...

Страница 31: ...commands Many sensors support extended SDI 12 commands An extended command is specific to a make of sensor and tells the sensor to perform a specific task They have the following structure Responses vary from unit to unit See the sensor manual for specifics Command aXNNNN The command will start with the sensor address a followed by an X then a set of optional let ters and terminate with an exclama...

Страница 32: ...anging an SDI 12 address CR200 X Series p 27 1 Connect an SDI 12 sensor to the CR1000 2 In LoggerNet Connect under Datalogger click Terminal Emulator The terminal emulator window opens 3 Under Select Device located in the lower left side of the window select the CR1000 station 4 Click Open Terminal 5 Select All Caps Mode 6 Press Enter until the data logger responds with the CR1000 prompt 7 Type SD...

Страница 33: ... until the data logger responds with the CR2XX prompt 7 Type SDI12 and press Enter 8 The response SDI12 indicates that the sensor is ready to accept SDI 12 commands 9 To query the sensor for its current SDI 12 address type and press Enter The sensor responds with its SDI 12 address If no characters are typed within 60 seconds the mode is exited In that case simply type SDI12 again and press Enter ...

Страница 34: ...ddress from 0 to 1 C 4 References SDI 12 Support Group SDI 12 A Serial Digital Interface Standard for Microprocessor Based Sensors Version 1 4 River Heights UT SDI 12 Support Group 2017 http www sdi 12 or g current_specification SDI 12_version 1_4 Dec 1 2017 pdf SN500SS Net Radiometer 28 ...

Страница 35: ...t Asia Location Bangkok Thailand Email info campbellsci asia Website www campbellsci asia China Location Beijing P R China Email info campbellsci com cn Website www campbellsci com cn Spain Location Barcelona Spain Email info campbellsci es Website www campbellsci es Costa Rica Location San José Costa Rica Email info campbellsci cc Website www campbellsci cc UK Location Shepshed Loughborough UK Em...

Отзывы: