04-03-2012 08:44 AM
The array of names is in a correct order, because it's sent from the big main stream. I'm not sure what you were asking.
04-03-2012 08:49 AM
@ Raven Fans
What did you get?
Incorrect values corresponding to the changed units
What did you expect?
- I expected the values to change along with the changed units. When the user changes the unit; for example, Flow (from L/min to L/hr), all flow values should change to correspond the changed flow unit. You can see from my vi.
How is it wrong?
- My vi is still not working in the way I want. It didn't give me the correct values when the units are changed.
04-03-2012 08:54 AM
Are you sure that the names are in correct order ?
Have you verified this by a probe ?
When ever you have a functional problem with your vi, you have to verify that every wire has the correct value as you expect.
04-03-2012 09:00 AM
I don't know why but the order is switching between flow and pres. It seems to be correct when i turn "highlight execution" on.
04-03-2012 09:05 AM - edited 04-03-2012 09:09 AM
So now we know that the array out of the first for loop is in reversed order compared to the Main Data Stream array.
So first of all you need to correct this.
The rest of your code requires that this array is in the right order.
What would you do to correct the array ?
04-03-2012 09:11 AM - edited 04-03-2012 09:14 AM
Ok I got it. I already fixed the order of the names, but still dont know how to reslove the array of index numbers problem
04-03-2012 09:17 AM - edited 04-03-2012 09:18 AM
Something you would share ? ( just a picture )
And what do you get out of the index array ?
04-03-2012 09:19 AM
04-03-2012 09:20 AM
04-03-2012 09:25 AM
And what do you get in the index array ?