LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Arduino and Dallas DS1820 (one-wire)

Solved!
Go to solution

So I was able to get the onewire to work. Now i am trying to figure out how to get more that just one to work within the loop. Is this possible within labview? I tryed creating two cases within the .ino files but only one works. Please help. thank you

0 Kudos
Message 161 of 172
(3,715 Views)

okay I just went over post 159. The one issue with me using that is I need to be able to see both temps at one time. and then be able to link set temps to actions such as right to an SSR.

0 Kudos
Message 162 of 172
(3,715 Views)

Hi.

I downloaded your code but i have problem.

I catch an error because don't have DattasTemperature.h.

Downloaded it from internet but i have other problem:

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

LIFA_DS18B20.cpp.o: In function `__static_initialization_and_destruction_0':

C:\Program Files (x86)\Arduino/LIFA_DS18B20.ino:41: undefined reference to `DallasTemperature::DallasTemperature(OneWire*)'

LIFA_DS18B20.cpp.o: In function `setup':

C:\Program Files (x86)\Arduino/LIFA_DS18B20.ino:66: undefined reference to `DallasTemperature::getAddress(unsigned char*, unsigned char)'

C:\Program Files (x86)\Arduino/LIFA_DS18B20.ino:67: undefined reference to `DallasTemperature::setResolution(unsigned char const*, unsigned char)'

C:\Program Files (x86)\Arduino/LIFA_DS18B20.ino:68: undefined reference to `DallasTemperature::getAddress(unsigned char*, unsigned char)'

C:\Program Files (x86)\Arduino/LIFA_DS18B20.ino:69: undefined reference to `DallasTemperature::setResolution(unsigned char const*, unsigned char)'

LIFA_DS18B20.cpp.o: In function `processCommand(unsigned char*)':

C:\Program Files (x86)\Arduino/LabVIEWInterface.ino:564: undefined reference to `DallasTemperature::begin()'

C:\Program Files (x86)\Arduino/LabVIEWInterface.ino:565: undefined reference to `DallasTemperature::requestTemperatures()'

C:\Program Files (x86)\Arduino/LabVIEWInterface.ino:585: undefined reference to `DallasTemperature::begin()'

C:\Program Files (x86)\Arduino/LabVIEWInterface.ino:586: undefined reference to `DallasTemperature::requestTemperatures()'

C:\Program Files (x86)\Arduino/LabVIEWInterface.ino:589: undefined reference to `DallasTemperature::getTempCByIndex(unsigned char)'

collect2.exe: error: ld returned 1 exit status

Error compiling

Can you help me?

Thanks

P.S. Sorry for my improbable english 🙂

Message 163 of 172
(3,715 Views)

Hi Mikcondo,

About your problem: I assume you need to add the DallasTemperaturelibrary to arduino your library folder.

On another note:

LIFA was replaced with LINX about a year ago.  LINX provides all the same functionality as LIFA and includes a lot more features, like more supported devices, more build in sensors and a firmware wizard to upload the firmware for you, so you don't run into issues like the one you're seeing (its probably because the arduino API changed something in the latest build).

Check out LINX and let us know if you have any questions as you get started.

More info on using DS sensors with LINX can be found (for example) here

0 Kudos
Message 164 of 172
(3,715 Views)

how to set four ds18b20 sensors for above code and what are the pin use to in arduino

0 Kudos
Message 165 of 172
(3,715 Views)

how to combined two or more ds18b20 sensors for above code

0 Kudos
Message 166 of 172
(3,715 Views)

Hello, since no library one wire sensor for LINX, you can try this procedure I found on this site,  I hope someone can post figure out the LINX code, http://www.instructables.com/id/Arduino-Labview-With-2-DS18B20/?ALLSTEPS

0 Kudos
Message 167 of 172
(3,715 Views)

You can add support for the sensor using LINX Custom Commands, FYI.

0 Kudos
Message 168 of 172
(3,715 Views)

For Linx, a custom code supporting up to four Dallas DS1820 sensors HAS been developed too (by me ), see

https://www.labviewmakerhub.com/forums/viewtopic.php?f=12&t=295&start=56

0 Kudos
Message 169 of 172
(3,715 Views)

Hi everyone,

I tryied some hours to add the command for a ds18b20 sensor to the original LIFA for Arduino. I used the code written in te Posts 5 and 6 of this thread. But I'm unable to read the Temperature in Labview. My Goal is to measure the Temperature with an DS18B20, then send it with Arduino to Labview and control a relais over a digital output of the Arduino.

I red this thread a couple of times but the most part of the posts are quite old and for older Versions of Labview/Arduino and I'm still unable to implement it.

 

Thanks for your help!

Dunkymunky

 

 

0 Kudos
Message 170 of 172
(3,551 Views)