cancel
Showing results for 
Search instead for 
Did you mean: 

Arduino and Dallas DS1820 (one-wire)

SOLVED
DavePW
Member

Re: Arduino and Dallas DS1820 (one-wire)

Nathan - Your a star !!!

It worked, thanks for your help..... I'm learning lots....

d

DavePW
Member

Re: Arduino and Dallas DS1820 (one-wire)

Message contains an attachment

So having now had success with reading my DS18B20 devices (Thanks to Nathan_B !!).

I'm now having some issues with generating a standalone EXE via the Application builder.

When running the generted EXE on another PC, it starts and then throws an error. See the attached.

One of the issues I've had in the past was getting the comm port correct moving to another PC.

I've adjusted the comm port so it reflects that used in PC used to generate the EXE. But still

get the error.

Ideas?

mayerha
Member

Re: Arduino and Dallas DS1820 (one-wire)

You have installed visa530runtime and the Labview RunEngine?

mayerha
Member

Re: Arduino and Dallas DS1820 (one-wire)

Does it work now?

DavePW
Member

Re: Arduino and Dallas DS1820 (one-wire)

Still not working on that particular machine.

But I took another laptop and installed Arduino/Labview Runtime/NI-VISA 5.2 & .NET framework as previous machine and the runtime VI ran fine. So I think I have a particular machine problem. Now the machine in question is a faily low spec affair (2GHz/512MB) and I think that maybe the issue. i.e I'm going to upgrade the memory. The error I'm getting is 5003.

Jogibaer
Member

Re: Arduino and Dallas DS1820 (one-wire)

Message contains a hyperlink Message contains an image Message contains an attachment

Hi guys, I'm new in working with arduino too and trying to get my DS18B20 work with your posted LIFA and LabVIEWInterface files. At the moment I am trying to verify the firmware but can't find or understand the mistakes in the code. I am using these files, see attachement. Could you give my some advice and how I could try to fix that?

Here is the error code while having all files opened in the Arduino Software:

LIFA_Base.ino: In function 'void setup()':
LIFA_Base:46: error: redefinition of 'void setup()'
DS18S20:10: error: 'void setup()' previously defined here
LIFA_Base.ino: In function 'void loop()':
LIFA_Base:67: error: redefinition of 'void loop()'
DS18S20:14: error: 'void loop()' previously defined here
LabVIEWInterface.ino: At global scope:
LabVIEWInterface:24: error: redefinition of 'OneWire oneWire'
LIFA_Base:33: error: 'OneWire oneWire' previously declared here
LabVIEWInterface:27: error: redefinition of 'DallasTemperature sensors'
LIFA_Base:36: error: 'DallasTemperature sensors' previously declared here

And this is how it looks like in my fimware folder:

Nathan_B.
Active Participant

Re: Arduino and Dallas DS1820 (one-wire)

DS18S20.ino is causing the problem and should not be in the folder.

Jogibaer
Member

Re: Arduino and Dallas DS1820 (one-wire)

Thank you very much for your reply. Ok I removed DS18S20.ino, now I am getting this error:

LabVIEWInterface:24: error: redefinition of 'OneWire oneWire'
LIFA_Base:35: error: 'OneWire oneWire' previously declared here
LabVIEWInterface:27: error: redefinition of 'DallasTemperature sensors'
LIFA_Base:38: error: 'DallasTemperature sensors' previously declared here

Nathan_B.
Active Participant

Re: Arduino and Dallas DS1820 (one-wire)

You have duplicate code for the sensor.  Once in LIFA_Base and once in LabVIEWInterface.

Jogibaer
Member

Re: Arduino and Dallas DS1820 (one-wire)

Message contains a hyperlink Message contains an image

Thank you, it's getting better, but don't know about the custom code of PentairDave. Sensors not declared...mhhh so I have to add "int sensors;"? But where? I red this http://arduino.cc/en/Reference/VariableDeclaration but don't know where the variable has to be declared?