01-12-2025 01:21 AM
I am using an Arduino nano, i have an LDR connected to A0 and a TMP 37 temp sensor to A1.
I managed to get the program to work when the the output resource of the first analogue read then goes into the "in" of the second analogue read, then output of that goes into the close vi.
The issue i had was the erratic temp sensor values, it would jump between 18-21 degrees Celsius, even when only sampling at every 1000ms. I tried to "T" off the input resource wires before they reach the analogue reads, however i am having an issue with combining the output renounces to allows them to go into the close vi, as per the picture, any help please?
01-12-2025 11:28 AM
We can't debug pictures very well, but it clearly shows glaring errors and broken wires. Since the program cannot even run, it is not obvious how you can see incorrect measurements. Can you also show the program that gives the erratic data?
You would probably get much better help if you attach your VIs and explain the measurement setup in more detail.
01-12-2025 12:18 PM
Hello
Thanks for the reply, i have attached both version of the program, one with sequential reads / daisy chained, which is the one where i am having the issue reading a steady temperature.
I have also included the original posts program as well.
I noticed that i left the mean / average vi in the program, this was a mistake, it wasnt there when i tried the original or this program.
I am using an arduino nano, with the linx "add-on". Not sure what other information you may need?
01-12-2025 02:04 PM
You should access linx serially, not in parallel. It's a single connection to the microcontroller and it can't do things in parallel.
01-12-2025 02:07 PM
Thanks, only issue I have is the temperature reading fluctuates about 3-4 degrees and is not steady at all, any idea what might cause this, I was wondering if it was because of the sequentially read information
01-12-2025 02:09 PM
Oh nvm I see you have the linx cluster passed in serially.
01-13-2025 10:43 AM
Is that a good or bad thing?
01-13-2025 08:41 PM
Good
01-14-2025 11:35 AM
Is it possible to "T" off the information before they get to there respective read vi's, so i can try and eliminate the erratic read information?
01-14-2025 05:16 PM
You only have a single connection to the arduino and the arduino can only do a single thing at a time so branching to try and run in parallel shouldn't have any difference at best, and could cause communication errors (I'm not familiar with whether or not the linx internals use some kind of mutex functionality) at worst.