Bosch BME280 LabVIEW API - Pressure, Temperature, Humidity Sensor
LabVIEW 2013 Student Edition
Bosch BME280 is a sensor for humidity, pressure and temperature measurements.
BME280 uses I2C protocol to transfer calibration coefficient and uncalibrated data from internal memory registers.
Read the Bosch BME280 datasheet included in the code for more information and specifications.
Instructions on how to use Code:
Open.vi - Create a new I2C Reference for BMx280 sensor. Set the I2C parameters using I2C User Configuration typdef. The two address available for this type of sensor are 0x76 (default) and 0x77 (alternative).
Config.vi - Sets the oversampling method and the filter coefficient for temperature, pressure and humidity measurement. Use Skip Measurement to disable the measurement. Set also the standby time between two consecutive measurements. Use BMx280 Setting typedef for all parameters.
Start.vi - Transitions the sensor from sleep to running state to begin the measurement.
Read.vi - Reads 8 bytes RAW data from sensor ADC register. The data must be calibrated using sensor calibration data and specific routines. The calibration routines are available in Windows DLL to be operated under host computer.
Stop.vi - Stops the measurement and set the sensor in sleep mode.
Close.vi - Clears the sensor reference. Before clearing, this VI can abort the measurement if necessary, and releases any resources the reference reserved.