LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Display letters instead of numerical values on labview using joystick

How do I display letters instead of numerical values from joystick? Eg. Instead of getting numerical values to display on labiew from the joystick, i want to see letters....

0 Kudos
Message 1 of 8
(2,936 Views)
Please explain what you mean by letters instead of numbers.
0 Kudos
Message 2 of 8
(2,928 Views)

For example, When I push the joystick forward I get numerical values such as "200" displayed on the VI. Instead of getting numbers i would like to know how i can get letters such as "w" when i push my joystick forward. hope it's clear now...haha thanks 🙂 

0 Kudos
Message 3 of 8
(2,913 Views)

Hi Doyoyo,

 

you could use a case structure to "translate" numbers to letters.

 

Or you could use a lookup table of char vs. index…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 8
(2,889 Views)

Hi GerdW,

 

will try it out! thank you! 

0 Kudos
Message 5 of 8
(2,864 Views)

HI GerdW, do you mind showing me a demo? 

 

 

I have attached a program to this post, could you show me how I can change the output of the axis info to letters?  The Front panel shows axis info....for eg, X axis...if the number is above 0 to show "L" and if the number is below 0 to show "J"? 

0 Kudos
Message 6 of 8
(2,859 Views)

Hi doyoyo,

 

as I can't open your VI (I only have LV2011 available here) I created a simple example:

check.png

The upper part shows the lookup table suggestion, the lower one the case structure approach…

 

Or like this:

check.png

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 8
(2,850 Views)

Hi GerdW,

 

Will take a look at it! thank you very much for ur effort :)) appreciate it! 

 

cheers,

 

Doyoyo!

0 Kudos
Message 8 of 8
(2,839 Views)