LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

selecting a port number with help from the operator from a string with multiple lines

The Current Program:  So, my test program needs to display a list of available ports to communicate with in a string format . . . that is like step 1.  Step 2, the operator reads the list of available ports and then types in the number that they want to use before clicking the start button.  The test program goes to the next screen at that point . . .

 

Can we skip step 2 and allow the user to mouse click on the line that has the port number that we want instead of typing it in manually? 

 

I want to use something like the "Pick Line" function and then strip the number from the resulting string . . . but it needs a numeric index instead of a mouse click . . . Hmmmmm  . . . what am I missing?

 

Any thoughts?  Thanks in advance for your time!

0 Kudos
Message 1 of 3
(2,382 Views)

Maybe use a combo box?  (Yeah, LabVIEW has those, too.  :D)

 

But a ring or enum control should do as well (better, actually), especially if the ports are numeric and in numerical order.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 2 of 3
(2,353 Views)

My first thought is the combo box, which has a string data type and a drop down that you can populate programmatically.

 

My second thought is a ring, which behaves just like a combo box but with a numeric data type.  Third thought is a list box which also has a numeric data type, but looks more like a table that you select a line from.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 3
(2,338 Views)