LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Custom control for list of string,numeric values

Hi,

I want to create a control in labView 6.1 that presents the user with a list
of string values on the front panel. The actual strings are material names
(e.g. Si, Al). With each string value would be associated a floating point
value that would then be used on the diagram for some numerical processing.
What I have done is create an array of {string,digital control} clusters,
but it looks kind of clunky on the front panel. Is there a more elegant
solution?

Thanks,

-John P


--
God is a comedian playing to an audience too afraid to laugh.
- Voltaire
0 Kudos
Message 1 of 3
(3,729 Views)
Is this sort of what you are looking for?

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 3
(3,729 Views)
Some ideas that I use when making this kind of button:

Make an array of clusters of {string, numeric, boolean} in which:

The numeric is hidden (right click menu/advanced/hide control) (skip
this if you want the numeric to display
and
The boolean is colored TRANSPARENT and overlaid on the string. So it
it seems to the user that he clicks on the string but in fact clicks
on an invisible boolean.

Another idea is to combine the strings and booleans into one set of
buttons by making a cluster of identical booleans arranged so that
they look like an array and setting the boolean text on each button
to the desired string.

These ideas imply writing some radio button logic to generate an
index to select the desired numeric element. This is more work than it
m
ight seem


Easiest is to use events and convert the mouse coordinates into an
array index. I just made one of these and I have the code handy if
you like.

Adam
On Wed, 18 Jun 2003 19:06:45 -0500, John P wrote:

>Hi,
>
>I want to create a control in labView 6.1 that presents the user with a list
>of string ...









0 Kudos
Message 3 of 3
(3,729 Views)