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

Could you please repost labviewAdressWorkLV1.vi in a different version? I can't open it with Labview 2010.

I'm still trying to get multiple sensors to work. Three sensors would be sufficient for me.

Thank you

0 Kudos
Message 121 of 172
(1,526 Views)

Here it is saved for 2009 but just remember that if you use it, you cannot use LIFA.  So, if you have other functionality using LIFA, this won't work as-is.

Message 122 of 172
(1,526 Views)

Hello!

Now next ver. of control.

1/ Out door temp - for now manual ( debugging program is further connected to the sensor OUT door )

2/ MAT temp - computation graph (factor) Weather-compensated control

Download All
Message 123 of 172
(1,526 Views)

Thank you Nathan and Black for pointing me the right direction.

I now read multiple sensors via serial (visa). Instead of using LIFA I use a stripped version of the onewire example sketch.

Cheers.

Message was edited by: JR--------

0 Kudos
Message 124 of 172
(1,526 Views)

update:

20 sensors dallas ds18b20 connecting OK!

R= 2kOh  ( power - data wire )

0 Kudos
Message 125 of 172
(1,526 Views)

last foto of wire

0 Kudos
Message 126 of 172
(1,526 Views)

HI all,

succesfully buil vi to read three temps. If runs alone all works correctly, but if i add a loop in vi to control a dc motor (pvm write) temps reading doesn't works. Probably my fault in adding anothen control?? Can someone help me?

0 Kudos
Message 127 of 172
(1,526 Views)

There shouldn't be any inherent issues when adding in the PWM write function.  You will need to attach your VI so that we can look at it to see if we can help fix your issue.

0 Kudos
Message 128 of 172
(1,526 Views)

Hy Nathan,

thank you for your help.

Uploading the vi.

regards

Riky

0 Kudos
Message 129 of 172
(1,526 Views)

The biggest thing that I notice is that you don't have a stop button for your while loop.  This means that you are using the abort button to stop your VI.  This is something that you should always avoid when using resources that need to be closed gracefully (like LIFA).  If you use the abort button, you risk LIFA not being able to connect to the Arduino again after the first time.  If you do need to use the abort button, you need to then open the LIFA Close.vi and select the COM port and then run it so that you close the connection to the Arduino.  Then, you can run your VI again.

I only see one temperature reading along with the PWM.  Do you have a modified verison of the DS1820 VI?  I'm assuming you have one that outputs three temperatures.

If adding the stop button to the while loop and using it to stop your VI (instead of the abort button) doesn't fix your problem, you should either post or link to the VI that you are using to read the temperatures.

0 Kudos
Message 130 of 172
(1,526 Views)