04-03-2012 07:51 AM
Sorry I clicked the wrong button. I wanted to click reply 😞
04-03-2012 07:53 AM
I edited my previous post..
Have a look at the edited text.
04-03-2012 07:55 AM
Could you please take a look at my vi where need to be fixed?
04-03-2012 07:59 AM
My code is supposed to be able to make the user change the units so that the corresponding values change along with them. For example, when they click to change "Flow unit", the flow values must change to correspond the unit changed. Also for "Pressure unit". Hope you understand!! Thanks
04-03-2012 08:11 AM
Lets try to break down your vi, and see if you can find the problems 😉
So if you try to run your vi.
What is the output of the second for loop ?
Try to put a probe or a array indicator there, so that you can see the values.
04-03-2012 08:15 AM
The output is the array of index numbers where the values in the main datastream change but I couldn't find what to put in "true" case. That's why I put 100 because I couldn't figure it out.
04-03-2012 08:26 AM
I want you to RUN the vi and tell me the value of the array.
And you need to look at those values and tell me if they are what you expect or not.
Can you do that ?
04-03-2012 08:30 AM - edited 04-03-2012 08:37 AM
No It isn't what I expected. The number is wrong. The array search function stop searching when it found.
04-03-2012 08:36 AM - edited 04-03-2012 08:37 AM
Okay, then you have found your first bug. 🙂
The next step before fixing that for loop, is to look at the first for loop.
Is the array af names in the correct order ?
( Hmmm maybe my questions are too much leading )
04-03-2012 08:37 AM
This is the kind of response that doesn't help people help you.
You need to give more details. What did you get? What did you expect? How is it wrong?