I'm trying to read some industrial sensors with 4-20mA standard.
I tried to read them separately and it works well, problems come out when I try to read them both in the same VI.
This is the VI that I attempted to use to to read them both:
I tried it and the sensor at pin 11 works, while the one at pin 10 doesn't, perhaps I didn't use the array properly?
(I tried to post this on the LINX forum, but it seems to be quite dead)
Solved! Go to Solution.
I am not sure why you feel it necessary to convert an array to a cluster and then back to array!
Not saying that is what is causing you your problem, but it is completely unnecesary.
But using Array Index will make me read one channel at once, won't it?
I meant if the loop is repeated 10 times and I've two indexes I'll read 5 times sensor 1 and 5 times sensor 2, also I need to implement an autoindexing
Anyway I'll try to study more the array part
Never mind guys, after studied array a little bit more I understood how to use them properly, it's quite easy and doesn't need any loop (unlike I thought)
After debugging the circuit a little bit I got the idea to try with another analog pin and it worked; so basically the problem was that one Arduino's pin somehow stopped to work