LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Event structure with value changes

Solved!
Go to solution

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.

0 Kudos
Message 21 of 92
(1,691 Views)

@ 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.

0 Kudos
Message 22 of 92
(1,689 Views)

Are you sure that the names are in correct order ?

Have you verified this by a probe ?

 

Event structure with value changes (2).png

 

 

When ever you have a functional problem with your vi, you have to verify that every wire has the correct value as you expect.

0 Kudos
Message 23 of 92
(1,684 Views)

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.

0 Kudos
Message 24 of 92
(1,678 Views)

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 ?

0 Kudos
Message 25 of 92
(1,672 Views)

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

0 Kudos
Message 26 of 92
(1,666 Views)

Something you would share ? ( just a picture )

 

And what do you get out of the index array ?

 

 

 

0 Kudos
Message 27 of 92
(1,660 Views)
0 Kudos
Message 28 of 92
(1,656 Views)

labview 3.jpg

0 Kudos
Message 29 of 92
(1,654 Views)

And what do you get in the index array ?

0 Kudos
Message 30 of 92
(1,649 Views)