LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

KEY DOWN in event

Solved!
Go to solution
When use KEY DOWN in event ,this event triggered for every key (keyboard) press , the question i need event triggered for just 1 key pressed ; for example press F2 the event triggered and no triggered for the other key of keyboard ; thank you
Forza Juventus
Message 1 of 13
(3,738 Views)

Hi moussa,

 

the event structure also gives you some "properties" of the event as time and KEY. You have to use a simple case structure to filter for the keys you're interested in...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 13
(3,731 Views)
Hello GerdW ; in the example ; I need the "Event Change" increment just when i push Key F2 ; Thanks
Forza Juventus
0 Kudos
Message 3 of 13
(3,717 Views)

You can do that, as 


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 4 of 13
(3,712 Views)

Hi noussa,

 

which example are you referring to?

 

As simple as this:

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 13
(3,710 Views)

in the example ;

I need the "Event Change" increment just when i push Key F2 ; Thanks

Forza Juventus
0 Kudos
Message 6 of 13
(3,682 Views)

Hi moussa,

then you should increment the event counter only in the case of a "F2" event!

 

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 13
(3,675 Views)

Find modified code in the attachment.


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 8 of 13
(3,671 Views)

And, put your Stop button in the event structure.  It is set to Switch Until Released and it'll likely never be True when it's read.

 

Boolean%20Action_LV85[1]_BD.png

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 9 of 13
(3,670 Views)

Hello all ;

 The problem is in the example Prd Time;

I need when i push F2 → (with event KEY DOWN) the array Production increment and the array Time saved the time of this increment production ,

and when I push other key → no event (no increment production ,no saved time )

Thanks,

Forza Juventus
0 Kudos
Message 10 of 13
(3,643 Views)