10-05-2010 05:18 AM
Hello everybody!
First of all I want to thank you all this forum because It is helping me very much with the question, thanks!
And now my doubt,....
I have an array of measured values, and I need to use this in a formula to convert the voltage measurements in temperature.
In this equation I have of coefficients that I wanted to extract from a table or array.
Trying to solve this,.I converted the array into a cluster and send to formula node inside a for loop.
Before I inserted the cluster and wrote the coefficients manually, the program was working, but now It doesn't
I made the program run with the " lamp" and noticed that, in my for loop, the " I" doesn't increase..Any suggestions?
Thanks forward for the help.
Leandro
Solved! Go to Solution.
10-05-2010 05:37 AM
Hi leandrodzc86,
"in my for loop, the " I" doesn't increase.."
You have connected Numeric value (10) to the N terminal of 'for loop', you are also connecting arrays to for loop (With auto indexing enabled).
Check sizes of all array.It should be same otherwise it will run for number =Minimum array size.
Example,
N terminal value is 10
Array1 size=5
Array2 size = 1
then for loop will run only once. I hope I could explain you the problem with your code.
Best of luck
10-05-2010 05:39 AM
This is the program with the written coefficients.
I will use the manually one, but I wanted the possibility to change the value of them.
regards
Leandro
10-05-2010 05:50 AM
Hi,
If you think coefficients may change later why don't you use text file(ini file)?
Write youe coeff. there with tab delimeter and then read them using read ini function.
also in your latest image i found build array with "t" at all its inputs.
for you can use initialize array.
10-05-2010 07:24 AM
Ok . I am kind of new in LV.
I didnt know about the index and it influence into the for loop,thanks, It helped a Lot. I don t know how to use the commands you said, but I found an alternative. Maybe ( and I am quite sure) that It is not the best one, but works.If you gak, or anyone that reads this has other idea, post here. I am interested to know.
After I will take a look in these commands you said to learn most about it.
thank you very much
Leandro V. Zaccarias
FEM-UNICAMP