ni.com checkout is currently experiencing issues.
Support teams are actively working on the resolution.
ni.com checkout is currently experiencing issues.
Support teams are actively working on the resolution.
10-11-2013 09:09 AM
Because the pin is determined when you create the OneWire object, you will need to add another one of those and then either duplicate the functions that were made for LIFA and LabVIEW or make it so that you have to send a sensor number reference so you know which one to retrieve.
10-12-2013 01:51 AM
Can someone point me in the direction of tested and working code for Arduino and LV? Im using the UNO R3and have a DS1820. I have tried some examples from this discussion with no success. Thank you
10-14-2013 09:01 AM
Hi Nathan.
Had a go at what you suggested re reading multiple DS18B20's. But not having too much success.
I added the device addresses under the variables section in LabVIEWInterface.ino. I then duplicated the
device reads in the OneWire Read section.
I edited the DS1820 subvi for the extra temperature values..
Files attached.
Would appreciate your taking a look...
d
10-14-2013 09:17 AM
Were you able to get it to work with just one? The only think that I see wrong is that you are still only reading 4 bytes in DS1820 Get Temp.vi when you need to be getting 12.
10-14-2013 09:32 AM
Yep... I have just re-edited things and gone back to a single DS18B20. That's working.
I thought I was getting 4 bytes as I'm using your vi.
d
10-14-2013 09:49 AM
When you added the other two sensors you increase the amount of data sent. If Arduino sends more data then you need to read more data.
10-14-2013 10:24 AM
Here is what I'm using Nathan.
10-14-2013 10:41 AM
That is the same as the VI that you posted earlier. The only thing that I see wrong is that you are still only reading 4 bytes when you need to be getting 12. After you make that change, it should work because I believe the firmware code looks correct.
10-14-2013 10:50 AM
Sorry Nathan - Not too sure whats required then - I thought extending the array would do that...
d
10-14-2013 03:10 PM
You have to change the 4 that is wired to the Send/Receive VI to 12 (it's wired to the "Bytes to Read" terminal).