03-20-2011 08:16 PM
Hi,
it's 2:00 AM and for 30 minutes I got stuck.
Maybe it's a simple question, but I don't have an idea, how to solve this problem.
I want a user to type in a number. For example "9".
After typing the number and clicking "OK" a number (in our case 9) of numeric controls should appear.
But before typing the number, none of them should be visible for the user.
How can I do that?
I'm using LabView 2009.
03-20-2011 10:15 PM
where the user will type in the number?
If you want to programatically create the controls/indicators then you have to start making use of what is known as Scripting.... and for that atleast you must be advanced user of LabVIEW
03-21-2011 01:13 AM
maybe you can use "property node" function to control the visibility (and more functions!) of numeric controls. are those numeric controls in separate? in array? kindly try the attached sample VI and see if thats what you looking for. I hope you can give more details about your problem.
hope this one helps.
03-21-2011 02:19 AM
If you want the control to be visible, but not the number in it. use a string indicator and either feed it an empty string or an appropriately formatted numeric string.
03-21-2011 04:07 AM
My problem is much more complicated, but this subVI is easy to explain in a example.
Imagine that you're creating a calculator.
step 1.
In the first step the user types in an integer in a control. Than he clicks "OK".
step2.
After that a number of controls appear below the first control - the number is specified by the user in step 1.
For example you can use this VI to build a calculator with user specified amount of input controls.
03-21-2011 05:50 AM
Hi,
if you want to create Controls in LabVIEW on the fly, you will have to use scripting. What scripting is, you can find more info over here.
This toolkit is for free and if you're using LV2010 it's built in already if you're using 2009, you will have to install it yourself. Before 2009 it's not existing.
It has some really good examples like :
Drop Round Button.vi – Demonstrates how to create a Front Panel control. Programmatically creates a Round Button Boolean control. (but this can be any control)
03-21-2011 05:53 AM
03-21-2011 06:04 AM
perhaps this topic link may suits you (but it seems the author's VI cannot be download from his provided site). i guess its a good workaround to your problem.
DynaPanels: Now we can place controls dynamically
03-21-2011 12:24 PM
You mean something like this?
03-21-2011 12:29 PM
I would appreciate if you can save it as LV 2009.