Instruction manual
Table Of Contents
- Revision and Copyright Information
- Limited Warranty
- Assistance
- Precautions
- Table of Contents
- 1. Introduction
- 2. Cautionary Statements
- 3. Initial Inspection
- 4. Quickstart
- 5. Overview
- 6. Specifications
- 7. Installation
- 8. Sensor Maintenance
- 9. Troubleshooting
- 10. References
- Appendix A. Importing Short Cut Code
- Appendix B. Example Programs
- Appendix C. Interfacing with HMP155A RS-485 Output
- Campbell Scientific Companies

Appendix B. Example Programs
B.1 Single-Ended Voltage Measurement Example
Below is an example CR1000 program that uses the single-ended voltage
instruction to measure the sensor and uses the datalogger’s SW12V terminal to
power the sensor only when it is being measured. TABLE B-1 shows the
wiring used for the example.
Other CRBasic dataloggers are programmed similarly.
TABLE B-1. Wiring for Single-ended
Measurement Examples
Color Description CR1000
Yellow Temperature SE 2 (1L)
Blue Relative Humidity SE 1 (1H)
White Signal Reference
Red Power SW12V
Black Power Ground
Clear Shield
'CR1000 program to measure HMP155A with single-ended measurements
Public AirTC
Public RH
DataTable(Temp_RH,True,-1)
DataInterval(0,60,Min,0)
Average(1,AirTC,IEEE4,0)
Sample(1,RH,IEEE4)
EndTable
BeginProg
Scan(5,Sec,1,0)
'HMP155A Temperature & Relative Humidity Sensor measurements AirTC and RH:
PortSet (9,1)
Delay(0,2,Sec)
VoltSE(AirTC,1,mV2500,2,0,0,_60Hz,.14,-80)
VoltSE(RH,1,mV2500,1,0,0,_60Hz,0.1,0)
PortSet (9,0)
If RH>100 And RH<108 Then RH=100
CallTable(Temp_RH)
NextScan
EndProg
B-1










