LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

change data from keyboard ( ex: a ==> numeric = 15 )

i want to make a simple Piano ... i got note equivalent frequency and i did a numeric case that pass one frequency to the wave output so changing the numeric simulate piano
i only could set decrement/increment from the keyboard  for numeric value  this is not efficient
i want to simulate the keyboard as a physic piano so when clicking 'a' correspond do ... this mean that i want to change on clicking 'a' the numeric value to 0
the project is attached
0 Kudos
Message 1 of 12
(2,752 Views)
Hi jasjas,

use an event structure to detect keypresses. You will get an ASCII code for the key that you have to convert to your frequency.
You can directly connect it to a case structure where you define a frequency for each relevant key. Or you use a lookup table...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 12
(2,750 Views)

Hi jasjas

i add an example for you with the suggested Event Structure. (thanks GerdW)

Mike

0 Kudos
Message 3 of 12
(2,741 Views)
Sorry Mike but ur example won't open with me can u plz save to Open with labview 8 i don't have labview 8.5
 
0 Kudos
Message 4 of 12
(2,724 Views)

Hi

yes of course. Now in 8.0

Mike



Message Edited by MikeS81 on 01-21-2008 12:55 AM
0 Kudos
Message 5 of 12
(2,704 Views)
You Save it on 8.2 still will not Open with 8.0 😞
0 Kudos
Message 6 of 12
(2,666 Views)

Hi jasjas,

i´m sorry. I hope it is now in 8.0.

Mike

0 Kudos
Message 7 of 12
(2,661 Views)
Still Get Errorr!
0 Kudos
Message 8 of 12
(2,653 Views)
Here's the 8.0 version.
0 Kudos
Message 9 of 12
(2,648 Views)

Hi

i´m so sorry. I think now i have it.

Mike

0 Kudos
Message 10 of 12
(2,645 Views)