LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

my case structure only updates when highlight execution in on

Greetings,
I'm sure this is elementary but I cannot get my case structure to update unless I have the "highlight execution" on.  It doesn't matter if the control is boolean of numeric.  All I have is a case structure and a control on the front panel.  When I change the control and press the run button the case dose not change.  If I turn on "highlight execution" the case will change.  This happens in versions 6.1 and 8.5.  What am I missing here?
Thanks.
0 Kudos
Message 1 of 6
(2,725 Views)
Most likely is happening faster that you can see because your boolean is latch action and you don't have a delay in your loop. Latch action resets the button to false after it is read once by the code (in the next iteration).
 
Right-click the boolean and make sure the mechanical action is e.g. "switched when pressed".


Message Edited by altenbach on 04-29-2008 08:57 AM
0 Kudos
Message 2 of 6
(2,720 Views)

The case doesnt "update".  The highlight execution is showing the case selected durring execution.  In non-execution mode, use the little arrows on the top bar of the case structure to view the other cases.  Also you can click on the case name to get a dropdown of the other cases (similar to a dropdown menu)

 

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 3 of 6
(2,719 Views)
Sorry I think I misread this question.
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 4 of 6
(2,717 Views)
Flakpl's answer is probably more approriate.
 
Case structures are code and what happens on the diagram is irrelevant during execution. Place some indicators inside your cases and you will see on the front panel that the correct cases execute according to the code logic. 😄
 
Execution highlighting is a debugging too and will update the diagram to show the currently executing case. This is just a cosmetic feature.


Message Edited by altenbach on 04-29-2008 09:03 AM
0 Kudos
Message 5 of 6
(2,713 Views)
Thanks falkpl and altenbach,
I see now that that the output is correct even though the case frame does not change.
Thanks again for your replies.
0 Kudos
Message 6 of 6
(2,673 Views)