05-28-2024 12:24 PM
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)
05-28-2024 12:40 PM - edited 05-28-2024 12:50 PM
Please don't put your text into code tags when posting.
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.
05-28-2024 12:43 PM
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?
05-28-2024 12:55 PM
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
05-28-2024 01:01 PM - edited 05-28-2024 01:02 PM
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)
05-28-2024 01:04 PM
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
05-28-2024 01:13 PM
@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.
05-28-2024 01:17 PM
this is the code
i dont have keydown yet
05-28-2024 01:18 PM
05-28-2024 01:31 PM
@xBernasx wrote:
code
It is still in LabVIEW 2024 and I cannot open it.
See if this can give you some ideas....