LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Controling led with prtsc, lwin, rwin, tab and space. (Labview 2024 q1)

Hi, I need help with controlling the LED using buttons on keyboard as in the topic in the keydown structure. I have no idea how to do this. (Labview 2024 q1)
0 Kudos
Message 1 of 13
(440 Views)

Please don't put your text into code tags when posting.

 

  • Why do you need five buttons to control a LED?
  • I am not familiar with some of your button names, but I assume these are all on the keyboard.
  • What should the LED do as a function of button action? (on, off, dimmer, brighter, flashing, change color, etc.) 
  • Is this a real LED or a virtual LED on the front panel.
  • If this is a real LED, what hardware is used to control it?

 

Do you have problems with LabVIEW programming, key detection, or with hardware interfacing? You need to explain your problem in significantly more detail.

 

Maybe start with the learning resources listed at the top of the forum.

0 Kudos
Message 2 of 13
(433 Views)

Assuming LWIN is the left windows key and RWIN is the right one, many keyboards do not have an "RWIN" so is this a good choice?

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 3 of 13
(431 Views)

i need to do key detection 
i did almost all of the keys with char or vkey in keydown event structure but i cant find any kind of ascii code or vkey in case structure for that buttons

yea sorry for that text in code i used copy paste 

I need one button to one led
yep all on keyboard
on/off
its just led in vi

0 Kudos
Message 4 of 13
(419 Views)

Which one is "that button"?

If you only need one button, why did you mention five? Do you have five LEDs or just one?

 

Why not show us the code you have so far? (Do "save for previous", 2020 or below, before attaching)

 

0 Kudos
Message 5 of 13
(405 Views)

like prtsc to one led, space to second one etc 

my code is a mess, im just a beginner and i cat find a solution for my problem

0 Kudos
Message 6 of 13
(401 Views)

@xBernasx wrote:

like prtsc to one led, space to second one etc 

my code is a mess, im just a beginner and i cat find a solution for my problem


That's why you post your code so we can help you make it better.  Everyone here was once a beginner so we can empathize.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 7 of 13
(384 Views)

this is the code 
i dont have keydown yet


0 Kudos
Message 8 of 13
(380 Views)

@xBernasx wrote:

code


 

It is still in LabVIEW 2024 and I cannot open it.

 

See if this can give you some ideas....

 

altenbach_0-1716921092059.png

 

0 Kudos
Message 10 of 13
(359 Views)