LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

switching between two tables in the front panels

Hi
I am working on an application,which has two "Tables"
in the front panel. Both the tables do get updated
simultaneously from the same test,
Table-A displays
A short summary report while the test is beign executed, and result.
Table-B displays
A detailed report of the test and its condition and parameter
along with results.
My front end is a simple display table, along with couple of
Button controls,like "START","ABORT","DeTAIL DISPLAY" and "QUIT"
ofcourse.
All these buttons are used in Event driven case structures except
"DeTAIL DISPLAY"
as the execution beigns, on the press of start button,
there are number of tests in which i have to pass, parameters to
DLL and get back the result parameters.
The end customer requires to switch the display between the TABLE-A  & TABLE-B during execution.
so i have a, seperate while loop,where in a case structure is wired to "DeTAIL DISPLAY"
button, and if true, visible is set to true to TABLE-B, and false to TABLE-A,
and vis-versa. as per the logic this while loop should take care of switching between the
tables.
The other while loop Takes care of the entire test.
My problem is that, while i execute the switching of tables are not fast.
it waits till the tests are over,and event case structure is in idle state, and then switches to the other table.
Also some times i am unable to click on button"DeTAIL DISPLAY", as the event control
case structure, is not responding till end of the execution.

How to over come this problem
rags
0 Kudos
Message 1 of 4
(2,767 Views)

Hi,

Why do you have to do it in the block diagram?

You can simply place "Tab control" from  controls>>containers>>tab control

Place table A on page1 and rename it table A.

Place table B on page2 and rename it table B.

This would be the fast solution to display several tables om the front panel.

The tables will be updated even if one is not displayed.

good luck

Tareq

0 Kudos
Message 2 of 4
(2,764 Views)

Hi Tareq,

The soloution what you are telling is very good,cos i have implemented
this technique to display multiple graph.

That could be my last resort, my  doubt is that, is
there any way, where in you can make the second independent
while loop to execute, when the event case structure is
beign executed in the main while loop.

if you have idea, do let me know.


rags

0 Kudos
Message 3 of 4
(2,758 Views)

Hi,

Have you tried using notifiers in master slave architecture?

check this out

 

0 Kudos
Message 4 of 4
(2,745 Views)