LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Event structure with value changes

Solved!
Go to solution

Hello, I got a problem with using an event structure. I want the values to change in the array itself when the user adjusts the units, such as Flow 4 l/min = 240 l/hr... It should pop up in the same array. I already got a code here but it's pretty confusing and not working 😞

 

Could you please help?  Thanks

0 Kudos
Message 1 of 92
(4,968 Views)

Hi Bombbooo,

 

why do you create a new thread instead of sticking with your original one?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 92
(4,961 Views)

Because it's a new topic. 🙂

0 Kudos
Message 3 of 92
(4,958 Views)

Hi Bombbooo,

 

I still think it's the very same topic...

 

But anyway: if you would set the correct local variable your VI would work as intended. You're just one step before reaching your goal Smiley Wink

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 92
(4,946 Views)

Could you please make a few changes in my vi to make it work? I'm blocked now. I tried to run it but it's not working. Thank you so much

0 Kudos
Message 5 of 92
(4,943 Views)

Hi Bombbooo,

 

there is exactly one error in your VI. The error display will show you that error. All you have to do is selecting a local variable!

 

I'm sure you're able to do this - it will be more help if you learn to fix such errors on your own instead of waiting for others to do so...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 6 of 92
(4,939 Views)

I already ran the program but it didn't work in the way I want. I already tried to find the wrong things in my vi but I couldn't. I know I will learn a lot if I do it by myself but I'm really stuck here. When I changed the unit, the corresponding values didn't change along with the changed units

0 Kudos
Message 7 of 92
(4,935 Views)
Solution
Accepted by topic author Bombbooo

So what it not work ?

How did it not work ?

 

What would you like it to do ?

What did it do ?

 

We can't read your mind, you have to explain in detail.

0 Kudos
Message 8 of 92
(4,922 Views)

Thanks for coming to help me. I want to make the value change corresponding to the changed unit in the same array?

 

For example, when I change the unit of "flow" from L/min to be L/hr, the value should change from 4 to 240 in the data mainstream without adjusting the value manually. It should pop up automatically. As you can see in my vi, I tried to run it but it didn't give me the correct values along with the corresponding changed units

 

I'm really stuck now. Thanks for helps

0 Kudos
Message 9 of 92
(4,919 Views)

You selected problem solved..  Does that mean it was actually solved? 

 

Why are you using an Event Structure?   You are way overcomplicating things...

What are you trying to do?

 

Can you describe what your code is supposed to do and we may suggest something much simpler...

0 Kudos
Message 10 of 92
(4,915 Views)