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

Nathan - Your a star !!!

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

d

0 Kudos
Message 81 of 172
(3,774 Views)

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?

0 Kudos
Message 82 of 172
(3,774 Views)

You have installed visa530runtime and the Labview RunEngine?

0 Kudos
Message 83 of 172
(3,774 Views)

Does it work now?

0 Kudos
Message 84 of 172
(3,774 Views)

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.

0 Kudos
Message 85 of 172
(3,774 Views)

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:

0 Kudos
Message 86 of 172
(3,774 Views)

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

0 Kudos
Message 87 of 172
(3,774 Views)

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

0 Kudos
Message 88 of 172
(3,774 Views)

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

0 Kudos
Message 89 of 172
(3,774 Views)

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?

0 Kudos
Message 90 of 172
(3,774 Views)