02-07-2023 02:03 AM
I am trying to create a button in which when the user presses it, it types in a string into a string control. How can I do that?
02-07-2023 02:14 AM - edited 02-07-2023 02:15 AM
Hi Aether,
@AETHER1 wrote:
I am trying to create a button in which when the user presses it, it types in a string into a string control. How can I do that?
So you want to do something like this:
IF button press THEN
local of string control := "String"
ENDIF
So what have you tried and where are you stuck?
02-07-2023 10:11 PM
Yes, this is exactly what I am trying to achieve in code terms. I still haven't tried anything yet as I am still confused where to begin.
02-08-2023 12:49 AM
Hi Aether,
@AETHER1 wrote:
I still haven't tried anything yet as I am still confused where to begin.
When you don't know where to begin this simple code then you should start with the Training resources offered at the top of the LabVIEW board!
After doing so you should start by placing a case structure in your empty block diagram as that is the LabVIEW way of IF-THEN-ELSE…
02-08-2023 02:32 AM - edited 02-08-2023 02:34 AM
No need to create a button, because it's already there. The code piece is in the PNG, you can drag and drop onto the block diagram space. I set the button to switch behavior.