LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

string limit to max 30 chars, only file name chars allowed, enable a enter button

Highlighted

I have a string control,
1. Limit to max 30 chars, user should not be able to enter more than 30 chars.

2. Chars allowed should be only which are allowed in Windows file name. This string will be used to name file .csv. 

3. There is boolean button(START), it should be enabled only when atleast characters to write file name then only boolean button to be enabled.

 

How to do that? 

0 Kudos
Message 1 of 2
(100 Views)
Highlighted

There are many ways to do this.  The first thing you should do is learn enough LabVIEW to be familiar with the Palettes (such as the String Palette), have some idea of how to check for "only file name characters" (I can think of several ways, depending on whether you want to check as each character is entered, or only when they all are in).  I don't know what you mean by "Enable" a button, but several methods are available, including "hiding" it by making it "invisible" (you'll need to learn about Control Properties and how to manipulate them).  When interacting with the User Interface, Event Loops are often helpful.

 

Take some Tutorials (check the list on the first page of this Forum), take a class, find a Tutor/Mentor.

 

Bob Schor

0 Kudos
Message 2 of 2
(73 Views)