LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

DHT11

hello...

can anyone help me, how to make overheat indicator lamp ??

Message 61 of 78
(4,978 Views)

I am also working on a similar project which requires me to display the temperature and humidity values from the DHT22 sensor on LabVIEW. I came across this post and I downloaded the attachment you had.  I am new to LabVIEW so please bear with me. In the folder that I downloaded, I see a CustomFirmware, a .lvlib file and a .vi file.  So correct me if I am wrong, but I have to load the CustomFirmware onto the Arduino, as I would have done before. Now do I have to replace the firmware from the following directory C:\Program Files (x86)\National Instruments\LabVIEW 2013\vi.lib\LabVIEW Interface for Arduino\Firmware\LIFA_Base with the custom one of just load it from wherever it is stored on my computer.  Also do I have to copy the .lvlib and .vi file to some specific directory before I can use it.  i would appreciate some clearance on the what I need to do with these files, or do i just open them up and use them.

0 Kudos
Message 62 of 78
(4,978 Views)

If it was provided by me, you should be able to open the provided firmware in the Arduino IDE and upload it.  The LabVIEW VI's should be able to be used from anywhere (but I'd recommend putting them in a logical place) since they only use functions that come with LIFA already.

0 Kudos
Message 63 of 78
(4,978 Views)

Hi Nathan,

Thanks for responding.  Yes, the files were provided by you.  Can you give me an example of what would be a "logical place" for putting the VI's and what about the LabVIEW Library file (that is the .lvlib file), what do I do with this?

0 Kudos
Message 64 of 78
(4,978 Views)

You can put the files anywhere you want that seems logical to you.  I would put the whole folder provided in the zip file with your project (your VI) which uses that sensor. 

0 Kudos
Message 65 of 78
(4,978 Views)

Hallo, wie bekommen ich die Bibliotek für den Sensor DHT11 ins LabVIEW eingebunden. Ich habe Ihre Datei runtergeladen und habe es in Arduino abgespielt, ich bekomme eine Fehlermeldung. Ich brauche Ihre Hilfe. Ich möchte den Sensor über LabVIEW Programm auslesen. Vielen Dank für Ihre Hilfe

0 Kudos
Message 66 of 78
(4,978 Views)

Hi Nathan, I am getting this error when I try to upload your LIFA into an Arduino Uno board.

Arduino: 1.6.0 (Windows 7), Board: "Arduino Uno"

Build options changed, rebuilding all

Using library Wire in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire

Using library SPI in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI

Using library Servo in folder: C:\Program Files (x86)\Arduino\libraries\Servo

Using library LiquidCrystal in folder: C:\Program Files (x86)\Arduino\libraries\LiquidCrystal

Using library Robot IR Remote in folder: C:\Program Files (x86)\Arduino\libraries\RobotIRremote

C:\Program Files (x86)\Arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10600 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI -IC:\Program Files (x86)\Arduino\libraries\Servo\src -IC:\Program Files (x86)\Arduino\libraries\LiquidCrystal\src -IC:\Program Files (x86)\Arduino\libraries\RobotIRremote\src C:\Users\T!B!\AppData\Local\Temp\build5513844763982871198.tmp\AccelStepper.cpp -o C:\Users\T!B!\AppData\Local\Temp\build5513844763982871198.tmp\AccelStepper.cpp.o

C:\Program Files (x86)\Arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10600 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI -IC:\Program Files (x86)\Arduino\libraries\Servo\src -IC:\Program Files (x86)\Arduino\libraries\LiquidCrystal\src -IC:\Program Files (x86)\Arduino\libraries\RobotIRremote\src C:\Users\T!B!\AppData\Local\Temp\build5513844763982871198.tmp\AFMotor.cpp -o C:\Users\T!B!\AppData\Local\Temp\build5513844763982871198.tmp\AFMotor.cpp.o

C:\Program Files (x86)\Arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10600 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI -IC:\Program Files (x86)\Arduino\libraries\Servo\src -IC:\Program Files (x86)\Arduino\libraries\LiquidCrystal\src -IC:\Program Files (x86)\Arduino\libraries\RobotIRremote\src C:\Users\T!B!\AppData\Local\Temp\build5513844763982871198.tmp\DHT.cpp -o C:\Users\T!B!\AppData\Local\Temp\build5513844763982871198.tmp\DHT.cpp.o

C:\Program Files (x86)\Arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10600 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI -IC:\Program Files (x86)\Arduino\libraries\Servo\src -IC:\Program Files (x86)\Arduino\libraries\LiquidCrystal\src -IC:\Program Files (x86)\Arduino\libraries\RobotIRremote\src C:\Users\T!B!\AppData\Local\Temp\build5513844763982871198.tmp\IRremote.cpp -o C:\Users\T!B!\AppData\Local\Temp\build5513844763982871198.tmp\IRremote.cpp.o

C:\Program Files (x86)\Arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10600 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI -IC:\Program Files (x86)\Arduino\libraries\Servo\src -IC:\Program Files (x86)\Arduino\libraries\LiquidCrystal\src -IC:\Program Files (x86)\Arduino\libraries\RobotIRremote\src C:\Users\T!B!\AppData\Local\Temp\build5513844763982871198.tmp\LIFA_Base.cpp -o C:\Users\T!B!\AppData\Local\Temp\build5513844763982871198.tmp\LIFA_Base.cpp.o

C:\Program Files (x86)\Arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10600 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI -IC:\Program Files (x86)\Arduino\libraries\Servo\src -IC:\Program Files (x86)\Arduino\libraries\LiquidCrystal\src -IC:\Program Files (x86)\Arduino\libraries\RobotIRremote\src -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\utility C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\Wire.cpp -o C:\Users\T!B!\AppData\Local\Temp\build5513844763982871198.tmp\Wire\Wire.cpp.o

C:\Program Files (x86)\Arduino/hardware/tools/avr/bin/avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10600 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI -IC:\Program Files (x86)\Arduino\libraries\Servo\src -IC:\Program Files (x86)\Arduino\libraries\LiquidCrystal\src -IC:\Program Files (x86)\Arduino\libraries\RobotIRremote\src -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\utility C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\utility\twi.c -o C:\Users\T!B!\AppData\Local\Temp\build5513844763982871198.tmp\Wire\utility\twi.c.o

C:\Program Files (x86)\Arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10600 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI -IC:\Program Files (x86)\Arduino\libraries\Servo\src -IC:\Program Files (x86)\Arduino\libraries\LiquidCrystal\src -IC:\Program Files (x86)\Arduino\libraries\RobotIRremote\src -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI\utility C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI\SPI.cpp -o C:\Users\T!B!\AppData\Local\Temp\build5513844763982871198.tmp\SPI\SPI.cpp.o

C:\Program Files (x86)\Arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10600 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI -IC:\Program Files (x86)\Arduino\libraries\Servo\src -IC:\Program Files (x86)\Arduino\libraries\LiquidCrystal\src -IC:\Program Files (x86)\Arduino\libraries\RobotIRremote\src C:\Program Files (x86)\Arduino\libraries\Servo\src\avr\Servo.cpp -o C:\Users\T!B!\AppData\Local\Temp\build5513844763982871198.tmp\Servo\avr\Servo.cpp.o

C:\Program Files (x86)\Arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10600 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI -IC:\Program Files (x86)\Arduino\libraries\Servo\src -IC:\Program Files (x86)\Arduino\libraries\LiquidCrystal\src -IC:\Program Files (x86)\Arduino\libraries\RobotIRremote\src C:\Program Files (x86)\Arduino\libraries\Servo\src\sam\Servo.cpp -o C:\Users\T!B!\AppData\Local\Temp\build5513844763982871198.tmp\Servo\sam\Servo.cpp.o

C:\Program Files (x86)\Arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10600 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI -IC:\Program Files (x86)\Arduino\libraries\Servo\src -IC:\Program Files (x86)\Arduino\libraries\LiquidCrystal\src -IC:\Program Files (x86)\Arduino\libraries\RobotIRremote\src C:\Program Files (x86)\Arduino\libraries\LiquidCrystal\src\LiquidCrystal.cpp -o C:\Users\T!B!\AppData\Local\Temp\build5513844763982871198.tmp\LiquidCrystal\LiquidCrystal.cpp.o

C:\Program Files (x86)\Arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10600 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI -IC:\Program Files (x86)\Arduino\libraries\Servo\src -IC:\Program Files (x86)\Arduino\libraries\LiquidCrystal\src -IC:\Program Files (x86)\Arduino\libraries\RobotIRremote\src C:\Program Files (x86)\Arduino\libraries\RobotIRremote\src\IRremote.cpp -o C:\Users\T!B!\AppData\Local\Temp\build5513844763982871198.tmp\Robot IR Remote\IRremote.cpp.o

C:\Program Files (x86)\Arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10600 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI -IC:\Program Files (x86)\Arduino\libraries\Servo\src -IC:\Program Files (x86)\Arduino\libraries\LiquidCrystal\src -IC:\Program Files (x86)\Arduino\libraries\RobotIRremote\src C:\Program Files (x86)\Arduino\libraries\RobotIRremote\src\IRremoteTools.cpp -o C:\Users\T!B!\AppData\Local\Temp\build5513844763982871198.tmp\Robot IR Remote\IRremoteTools.cpp.o

C:\Program Files (x86)\Arduino\libraries\RobotIRremote\src\IRremoteTools.cpp:5:16: error: 'TKD2' was not declared in this scope

int RECV_PIN = TKD2; // the pin the IR receiver is connected to

                ^

Error compiling.

0 Kudos
Message 67 of 78
(4,978 Views)

The error is very common and there are many posts regarding that error.  LIFA is old and not recomended because it is not being updated or offically supported.  LINX has replaced LIFA.

If I had to guess at what the solution was, it was probably that you can't use a current version of the Arduino IDE because they have changed things since LIFA was deprecated. 

0 Kudos
Message 68 of 78
(4,978 Views)

Thanks! Is there an easy hack?

0 Kudos
Message 69 of 78
(4,978 Views)

I'd suggest searching the LIFA community for posts regarding this same error.  I probably posted a potential solution at one point and you'll probably see replies confirming or denying it's useful ness.

Message 70 of 78
(4,978 Views)