Benchtop Measurement and Test
Distributed Measurement and Control
Systems Engineering Software
You can request repair, RMA, schedule calibration, or get technical support. A valid service agreement may be required.
Provides support for NI data acquisition and signal conditioning devices.
Provides support for Ethernet, GPIB, serial, USB, and other types of instruments.
Provides support for NI GPIB controllers and NI embedded controllers with GPIB ports.
Sensor Type: DHT11, RHT11 - Temperature & Humidity Sensor
LabVIEW or C: LabVIEW
Version of LV: 2013
DHT11 is a composite sensor contains a calibrated digital signal output of the temperature and humidity.
DHT11 sensor uses a single-wire bi-directional protocol.
Download DHT11 datasheet from web for more information and specifications.
The API is implemented on FPGA.
To get the measured temperature and humidity values from DHT11 use 'DHT11 Read (FPGA).vi' in API folder from 'DHT11 (FPGA).lvlib.
There is also 'Example - DHT11 (FPGA).vi' in Example folder. The 'Example - DHT11 (FPGA).vi' must be compiled in order to be used from the FPGA Interface.
When I run the DHT11 Read(FPGA).vi
There is always an error -8002 (timeout error)
Can you give me a solution?
Thank you so much!
The API throws the timeout error -8002 if there is no response from DHT11 sensor. Reasons could be faulty wiring, to long lines, no resistor, defect sensor... If you think no of the reasons are apply then you can increase the "Timeout (Ticks)" constants in the "DHT11 Read (FPGA).vi" but this is only necessary if your sensor is out of specifications. Regards, Wolfgang
is it compatible with any fpga?
This example should work with every NI FPGA board with DIO lines that support running in a Single Cycle Timed Loop.
I can't seem to make it work with the myrio library, I cant control inputs or outputs in this example outside de DHT11 (EX: turn on a LED @ certain temperature)
There are three ways to use the myRIO:
To do that click in LabVIEW on Project >> Create Project >> Templates >> myRIO >> myRIO Custom FPGA Project
In the RT VI of the sample project you can see that they nix Express VIs from the myRIO functions palette with FPGA Read/Write-Nodes.
I have downloaded the files and connected myRIO to DHT11 as specified above. I am encountering two problems anyway:
So the program work only when it suits it.
Could you please help me to find a solution?
What do you need our team of experts to assist you with?
We'll be in touch soon!