Compiler Error | Arduino Compatible Compiler for LabVIEW Discussions | Forum

Avatar
Please consider registering
guest
sp_LogInOut Log In sp_Registration Register
Register | Lost password?
Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Feed Topic RSS sp_TopicIcon
Compiler Error
November 26, 2018
7:17 am
Avatar
tjay78
New Member
Members
Forum Posts: 1
Member Since:
October 29, 2018
sp_UserOfflineSmall Offline

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???

 

T-J@Y

November 27, 2018
7:49 pm
Avatar
Steffan
Admin
Forum Posts: 408
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

We did not develop a DHT library so you would have to contact the addon creator of that library for support.

December 19, 2018
3:39 pm
Avatar
shklo
Member
Members
Forum Posts: 6
Member Since:
December 16, 2018
sp_UserOfflineSmall Offline

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)

Forum Timezone: UTC 0
Most Users Ever Online: 100
Currently Online:
2
Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
miche91: 33
scottj: 28
scadao: 23
Member Stats:
Guest Posters: 5
Members: 202
Moderators: 0
Admins: 3
Forum Stats:
Groups: 1
Forums: 2
Topics: 266
Posts: 1222
Newest Members:
pujacontrol
Administrators: geadmin: 22, filipealtoe: 96, Steffan: 356