LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

hide/display panels, set/predefine parameters

Solved!
Go to solution

 

Hi,
I have an application where I want to set/reset display/hide the parameters.
The VI should work as follows:
In the "First mode" it should display already set parameters through indicators. In this case the parameters must be predefined, so users cannot change them.
 
In the "Second mode" it should display buttons and take the true/false values that the user wants to set.
I have attachted a VI this is where I am at the moment. In the "First mode" I can clearly see that the appropriate configuration is displayed but the panel is refreshed too frequently even if I put in a 100ms delay. This case is just even worse in second mode.
The ideal would be to have the panels with buttons that I can swap with no noticable refresh.
Does anybody have idea how to proceed further?

 

Hi,


I have an application where I want to set/reset display/hide the parameters.

 

The VI should work as follows:

 

In the "First mode" it should display already set parameters through indicators. In this case the parameters must be predefined, so users cannot change them. 

 

In the "Second mode" it should display buttons and take the true/false values that the user wants to set.

 

I have attached a VI this is where I am at the moment. In the "First mode" I can clearly see that the appropriate configuration is displayed but the panel is refreshed too frequently even if I put in a 100ms delay. This case is just even worse in second mode.

 

The ideal would be to have the panels with buttons that I can swap with no noticable refresh.

 

Does anybody have idea how to proceed further?

 

Thanks,

Krivan

0 Kudos
Message 1 of 6
(3,095 Views)
Solution
Accepted by topic author krivan

Please find the solution for ur problem. If any thing else you meant then please indicate the same.

 

I made this VI as per my interpretation's this helps.

 

Kudos are welcomed.

Message 2 of 6
(3,084 Views)

Hi kekin,

 

thanks this is exactly that I needed. However can you please clarify how it works? Namely, I see that it works and it works how I wanted but I don't understand why...

I've never used these blocks that you did in the VI.

 

Thanks,

Krivan

0 Kudos
Message 3 of 6
(3,069 Views)

Dear  krivan

 

The BOX that I have used inside while loop is called EVENT STRUCTURE. They are mainly used to process the code when any event happens. It could be change of value, any mouse click or keyboard entry.

 

TO learn more refer help in Labview on event structures.For more refer below link:

 

http://search.ni.com/nisearch/app/main/p/bot/no/ap/global/lang/en/pg/1/sn/catnav:oh/q/event%20struct...

0 Kudos
Message 4 of 6
(3,047 Views)

Hi,

 

I just added new booleans the clusters [copy/paste and dragged them into the boxes] and now the problem is that the values are changeable in the "first mode" too. How can I make the buttons read only in the first mode again?

 

VI is attached.

 

Thanks.

0 Kudos
Message 5 of 6
(3,040 Views)

Dear  krivan

 

When you added the controls to cluster, the cluster is modified & hence the event structure for "cluster" should be re assigned for ALL ELEMENTS.

 

I have attached modified VI. I believe you need to read more on EVENT STRUCTURES to learn it.

 

Kudos are welcomed.:-)

Message 6 of 6
(3,033 Views)