LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Event structure with value changes

Solved!
Go to solution

Sorry I clicked the wrong button. I wanted to click reply 😞

0 Kudos
Message 11 of 92
(1,846 Views)

I edited my previous post..

Have a look at the edited text.

0 Kudos
Message 12 of 92
(1,841 Views)

Could you please take a look at my vi where need to be fixed?

0 Kudos
Message 13 of 92
(1,838 Views)

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

0 Kudos
Message 14 of 92
(1,837 Views)

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 ?

 

Event structure with value changes (1).png

 

Try to put a probe or a array indicator there, so that you can see the values.

0 Kudos
Message 15 of 92
(1,830 Views)

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.

0 Kudos
Message 16 of 92
(1,837 Views)

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 ?

0 Kudos
Message 17 of 92
(1,833 Views)

No It isn't what I expected. The number is wrong. The array search function stop searching when it found.

0 Kudos
Message 18 of 92
(1,831 Views)

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 )

0 Kudos
Message 19 of 92
(1,828 Views)

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?

0 Kudos
Message 20 of 92
(1,825 Views)