background image

61302V Barometric Pressure Sensor 

 

5.2. 

Voltage Output Program Example 

 
The program example illustrates the analog measurement of a 
61302V in the configuration shown in Appendix A, using a 
CR1000 datalogger.  The sensor is powered for one minute before 
the top of each hour, at which time the sensor is polled for a 
measurement.  The program also includes the option to correct for 
elevation.  The measurement units in the example are hPa. 
 

'CR1000 Series Datalogger 
 
'61302V will need to have the following configuration: 
' Jumper P1 will need to be set to Continuous ASCII mode (jumpers A, B, & C in place) 
' Jumper P3 will need to be set to "5VDC" mode (A position) 
' Jumper P4 will need to be set to Voltage mode (B position) 
 
 
'61302V Wiring 
'Red - CR1000 12V (power continuously for testing) 
'Black - CR1000 AG 
'White - CR1000 SE1 
'Blue - No Connection 
'Green - CR1000 AG 
'Shield - CR1000 AG 
 
'Declare Public Variables 
Public BP_61302V_Analog 
Public Elevation_Correction 
 
'Declare Constants 
Const Elevation = 0 'This value must be added in order to correct for elevation (meters). 
 
'Define Data Tables 
DataTable (Hourly,1,-1) 
  DataInterval (0,60,min,10) 
  Sample (1,BP_61302V_Analog,IEEE4) 
EndTable 
 
'Main Program 
BeginProg 
 
  Scan (5,Sec,0,0) 
 
    ' Switch 61302V Sensor On 1 minute before the top of the hour 
    If TimeIntoInterval (59,60,Min) Then SW12 (1) 
 
    ' Poll 61302V Sensor at the top of the hour 
    If TimeIntoInterval (0,60,Min) Then 
 
      '*** Measure Analog 61302V *** 
      VoltSe (BP_61302V_Analog,1,mV5000,1,1,0,_60Hz,0.12,500) 
 

 

11

Содержание 61302V

Страница 1: ...INSTRUCTION MANUAL 61302V Barometric Pressure Sensor September 2009 Copyright 2009 Campbell Scientific Canada Corp...

Страница 2: ...glect accidents of nature or shipping damage This warranty is in lieu of all other warranties expressed or implied including warranties of merchantability or fitness for a particular purpose CSC is no...

Страница 3: ...3 3 2 1 Serial Output Wiring 4 3 2 2 Analog Output Wiring 4 4 SENSOR OPERATION 4 4 1 Serial Output 5 4 2 Analog Output 6 4 3 Software Commands 7 5 PROGRAMMING 8 5 1 Serial Output Program Example 9 5 2...

Страница 4: ...serial I O options include continuous or polled ASCII text output or NMEA marine output The sensor is supplied with the following standard configuration RS232 serial output TTL levels Polled mode 9600...

Страница 5: ...of Campbell Scientifics white fibreglass enclosures If the 61302V is to being installed in an enclosure a QDP HYDRO VENT should used Otherwise the included poly tube can be used to vent the sensor to...

Страница 6: ...Ended Channel Single Ended Channel Blue Optional Trigger No Connection or SW12V No Connection or SW12V Green Reference AG Red PWR SW12V or 12V SW12V or 12V Jumper b w Ctrl Port SW12 CTRL Black PWR AG...

Страница 7: ...can be used with TTL RS 232 signal levels P4 A B configures the terminal connections for RS 232 Both jumpers must be in position A for RS 232 serial communication Format Description Continuous ASCII...

Страница 8: ...meters The standard setting maps 0 to 5000 mV with 500 to 1100 hPa For example hPa 0 12 mV 500 Effective range is 600 hPa Analog signal resolution is 12 bit resolution 600 212 Therefore the effective...

Страница 9: ...ile paused COMMAND mode is indicated by a prompt All commands must be terminated with a carriage return CR ASCII 13 Use to list available commands as shown below YOUNG 61300 SERIES BAROMETER V2 03 CMD...

Страница 10: ...ely after the command is received Therefore in order to continue communicating the serial communication program that issued the command must also change to match CMD300 n causes the sensor to pause or...

Страница 11: ...ssible Where Elevation is in meters above sea level P 1013 25 1 1 Elevation 44307 69231 5 253283 5 1 Serial Output Program Example The program example illustrates the polling of a 61302V in its defaul...

Страница 12: ...Open Com1 9600 0 0 1000 Scan 5 Sec 0 0 Switch 61302V Sensor On 1 minute before the top of the hour If TimeIntoInterval 59 60 Min Then SW12 1 Poll 61302V Sensor at the top of the hour If TimeIntoInterv...

Страница 13: ...set to 5VDC mode A position Jumper P4 will need to be set to Voltage mode B position 61302V Wiring Red CR1000 12V power continuously for testing Black CR1000 AG White CR1000 SE1 Blue No Connection Gre...

Страница 14: ...lling SW12 0 Correct Barometric Pressure value for elevation above sea level elevation must be in meters Elevation_Correction 1013 25 1 1 Elevation 44307 69231 5 253283 BP_61302V_Analog BP_61302V_Anal...

Страница 15: ...61302V Barometric Pressure Sensor 13...

Страница 16: ...y 1 Connect the 61302V to the PC Please note in order to make the connection to the PC you will require either an interface board i e DB9M TERM or a 9 pin cable with connections for Tx Rx and Ground T...

Страница 17: ...mit to 1050 Use CMD 142 to set the lower measurement limit to 950 These changes must be saved to flash memory which is done by entering CMD420 5 Confirm that the changes have been saved to memory by e...

Страница 18: ...Barometric Pressure Sensor 16 6 Restart the measurement process with CMD300 2 7 Once the configuration is complete you can power the sensor down and replace all jumpers required for your specific appl...

Отзывы: