取消
显示结果 
搜索替代 
您的意思是: 

Event structure with value changes

已解决!
转到解答

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 项奖励
1 条消息(共 92 条)
5,633 次查看

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 项奖励
2 条消息(共 92 条)
5,626 次查看

Because it's a new topic. 🙂

0 项奖励
3 条消息(共 92 条)
5,623 次查看

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 眨眼表情

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 项奖励
4 条消息(共 92 条)
5,611 次查看

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 项奖励
5 条消息(共 92 条)
5,608 次查看

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
6 条消息(共 92 条)
5,604 次查看

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 项奖励
7 条消息(共 92 条)
5,600 次查看
解答
已被主题作者 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 项奖励
8 条消息(共 92 条)
5,587 次查看

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 项奖励
9 条消息(共 92 条)
5,584 次查看

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 项奖励
10 条消息(共 92 条)
5,580 次查看