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

LabVIEW numeric control does not trigger value changed event when Enter key is hit

已解决!
转到解答

I used to be able to type in some value in a LabVIEW numeric control then hit the 'Enter' key to trigger a 'Value Changed' event.  Then at some point in time, this does not work anymore.  I will have to click somewhere else to trigger the value changed event.  The up/down arrow keys still work, but just typing in a number then hit enter does not.  Is it some configuration settings got accidentally changed?  Please help!

1 条消息(共 30 条)
6,973 次查看

I see there is no configuration for this. Can you post the vi (I have tried in my machine it works fine) also copy and paste the code into a new vi then run and check it.

-----

The best solution is the one you find it by yourself
0 项奖励
2 条消息(共 30 条)
6,955 次查看

Thank you for your reply.  I can not post the vi because it is very complicated.  All involved amounts to 45 Mbytes.  I tried it with a simple vi and it works fine, but in my main application, it does not work.

0 项奖励
3 条消息(共 30 条)
6,944 次查看

45 MB for one VI?  I hope not!

 

Can you copy and paste that one control and the event structure that handles it to a simpler VI?  Get that simpler VI operational and see if it still has a problem?

0 项奖励
4 条消息(共 30 条)
6,939 次查看

I can repeat this behavior by having a boolean control toggle on the Return key, as setup in Key Navigation.  Do you have an OK button or other boolean which does this?  If I check the box to have it set focus on toggle, the number will see the value change event.

0 项奖励
5 条消息(共 30 条)
6,933 次查看

Thank you for your reply.  Not just 1 vi.  The main application includes some 50+ vi's.  That is just the first level.  When I break out just one numeric control in a debug effort, it works fine.  But the main app still does not work.

0 项奖励
6 条消息(共 30 条)
6,921 次查看

Then you have to look into the main vi/main architecture.Can you post a snapshot of the main  vi 

0 项奖励
7 条消息(共 30 条)
6,904 次查看

Mathew, thanks for your reply.  I don't exactly follow what your are saying mainly because my problem is with Numeric Control and yours is with Boolean.  Anyway, I did not map any Key Navigation, before and after, thus I don't think that is it.

0 项奖励
8 条消息(共 30 条)
6,884 次查看

sound like you have the event selection to mouse up or mouse down and not value change. can you confirm its value change event. are you using filtered events? Is this LV version 2011

0 项奖励
9 条消息(共 30 条)
6,877 次查看

nijams, thank you for your reply.  Attached is a screen shot of the main vi, it has grown very convoluted.  Every slider in the front panel triggers several levels of ValueSignaling property chantes and massive mathmatical computations happen and many graphs redraw.  I used to be able to type in a new number, hit Enter to see the change happen.  Now hitting the Enter does not do anything, not even changing the slider.  I have to mouse click outside of the numeric field for the change to happen.

0 项奖励
10 条消息(共 30 条)
6,873 次查看