7:17 am
October 29, 2018
Hi
I am trying to compile an example (DHTxx Temp-Humidity Sensor.vi) and get this error:
Running interpreter...Finished!
Generating downloadable program...Finished!
Compiling...Error!
and Details :
temp:30:5: error: 'dht' was not declared in this scope
dht[Const1009] = new DHT(DHTxx_2082, Const956);
^
exit status 1
As far as I can see, all the Arduino DHT libraries are installed correctly.
I'm new to this,
so some one give a hint what goes wrong here???
3:39 pm
December 16, 2018
Hi there, if you have not yet done this, here is what I did.
1) you need all the library for DHT11
2) be able to run the example of DHT11 in the arduino sketch environment .
3) use the template in Manual under porting
4) build three calling vi for 1) open vi- input pinnumber output clk
2) gettemp vi- no input ; output temperature
3) gethumidity - no input; output humidity
5) use these codes in the translator :
temperature vi, dht DHT; %s=DHT.temperature
humidity vi, dht DHT; %s=DHT.humidity
open vi , %s= DHT.read11(%s)
32
1 Guest(s)