LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is the following possible in Labview?

Hi all,

I just begin learning labview and very inexperienced with it. I am
trying to do the following things. I wanna add many controls on the
labview display form and the VI started, it would read from a text
file or something to determine which control is to be displayed and
which control not to be displayed. I am just wondering if this is
something impossible to do in labview or if it can be done.

Thanks in Advance.
Alan
0 Kudos
Message 1 of 4
(2,800 Views)
as a short answer - yes, this is possible to implement and this is not something exceptional. But particular implementation is up to you.
0 Kudos
Message 2 of 4
(2,800 Views)
Quite easy to do.
In your block diagram, right click on the control and select "Create - Property Node"
It defaults to the "Visible" property - which is what you want.
Change it to "write" mode.
Go to the top of your functions palette, and select the floppy disk.
Select one of the "Read File" that matches what your file looks like. Right-click and select help for details on using it.
Read the strings, and use the string compare items to parse them.
Generate a boolean to indicate show/hide and connect it to "visible" above.

Les Hammer
0 Kudos
Message 3 of 4
(2,800 Views)
It's actually pretty simple. You can take a couple of different approaches. For each control/indicator you can create a property node. One of the properties is Visible. You could have a .ini file with entries for each control. Use the Read Key function (File I/O>Configuration File VIs palette) to read a Boolean value for each and wire the result to the property node. That might be a lot of property nodes and entries in the .ini file so you could group controls on a tab control and do something similar in your .ini file for the different pages of the tab control. You can make different pages either visible/invisible or enabled/disabled.
0 Kudos
Message 4 of 4
(2,800 Views)