LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

help with the keyboard

Hi! My case is very simple, and it is so simple that i didn't find any question equal to mine.

 How I do the backspace?

0 Kudos
Message 1 of 7
(3,339 Views)

Uhm,

 

in which way is this related to LabVIEW?

 

You can use the backspace key, just as any other key on your keyboard. Most people find it the most convenient to use the little finger of their right hand to press the backspace key.:smileywink:

 

 

Seriously, what do you want, and what have you programmed so far?

Do you want to mimic a backspace on a string control on the FP?

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Message 2 of 7
(3,327 Views)

I'm doing a keyboard, and i don't know how to do the backspace. I read a post that said that i have to use \b and select '\' Codes Display, but instead of a backspace, apears a square.

This is a part of my program: ( maybe will be necessary initialize de array -  i put a ,   b,  \b)

0 Kudos
Message 3 of 7
(3,320 Views)

I don't quite understand what you are trying to accomplish. You said you're "doing a keyboard". What exactly does that mean? Are you trying to have a front panel that looks like a keyboard? Your code seems to imply that you want to have some sort of visual indication of something like keys being pressed, but the keys come from some array, or some other source. Please clarify this. What is the purpose of this? Is this related to your other question?

 

Comments regarding the code:

  • If you have an array as the source of data then you should use auto-indexing on the for-loop rather than wiring a "magic number" to the N terminal and using Index Array. Please read the LabVIEW Help on auto-indexing loops. 
  • Writing a backspace character to a string indicator isn't the same as actually pressing the backspace key on the keyboard. You're actually writing a value to the string, not sending keystrokes, which is something different. 
  • I am assuming the comparisons at the bottom were just for debugging. However, it should be pointed out that the sequence frame is unnecessary - think dataflow. Also, you do not have the outputs of the comparisons wired to the Boolean indicators. 

To learn more about LabVIEW it is recommended that you go through the tutorial(s) and look over the material in the NI Developer Zone's Learning Center which provides links to other materials and other tutorials. You can also take the online courses for free.
Message 4 of 7
(3,302 Views)

Hi! Thanks for the help. I've already solved this problem, but I have another. I want to erase all the text that is showed when i press a button.

 

But it can't be erased before my text be spoken. I jus't don't know how to do it. I read about some functions in the forum, like delete, replace substring, but I can't use any of them. This is a text program, whithout the part that do my output be spoken.

 

 

0 Kudos
Message 5 of 7
(3,278 Views)

use a key event and (if you are using a string) put an empty string in the event when the button is pressed.

 

here is an example of an event key:

Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 6 of 7
(3,254 Views)

Manieri wrote:

Hi! Thanks for the help. I've already solved this problem, but I have another. I want to erase all the text that is showed when i press a button.

 

But it can't be erased before my text be spoken. I jus't don't know how to do it. I read about some functions in the forum, like delete, replace substring, but I can't use any of them. This is a text program, whithout the part that do my output be spoken.


Your approach is all wrong. Do not continue with the current code you have. It's a really bad start. You didn't even listed to what I said about the auto-indexing and the disconnected outputs. Please try to use a better architecture, or you will find yourself in trouble later when you need to add to the code or modify it.

 

To learn more about LabVIEW it is recommended that you go through the tutorial(s) and look over the material in the NI Developer Zone's Learning Center which provides links to other materials and other tutorials. You can also take the online courses for free.

 

You can also review well-established architectures such as a state machine or the producer-consumer architecture. I don't know the scope of your project, so you may not need to go as far as the producer-consumer architecture, but you definitely do not want to stick with what you've got. 

0 Kudos
Message 7 of 7
(3,230 Views)