LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

When I pause my code, the case where execution is happening does not pop up.

I have a queue driven state machine and when I press the pause button LabVIEW does not switch to the case where the execution is paused. Is there any easy way to find where the execution has paused without stepping through each case?
0 Kudos
Message 1 of 5
(2,684 Views)
The only way to make a diagram pop open and switch to the executing case is with a breakpoint. Putting a probe on the state that was just dequeued would allow you to see which cases are being selected.

Execution highlighting also switches cases, but slows everything way down.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 5
(2,684 Views)
The only way to make a diagram pop open and switch to the executing case is with a breakpoint. Putting a probe on the state that was just dequeued would allow you to see which cases are being selected.

Execution highlighting also switches cases, but slows everything way down.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 3 of 5
(2,684 Views)
Thanks for the answer, but I generally want to pause the code when I have a problem with a subVI that is not returning, so execution highlighting is not useful. Something that shows all the VIs which are actively running would be helpful so that I can see where the code is stuck.
0 Kudos
Message 4 of 5
(2,684 Views)
The probe on the dequeued command should be helpful though, when the code is running normally the indicator will be flickering away showing the cycle of states the code is going through, if the code gets stuck it will stop cycling.

Another approach might be to (temporarily) put an indicator on the dequeued command, and create a seperate execution loop in the VI that monitors the dequeued command, or some other parameter that's a good indication the code is cycling normally. If this watchdog loop sees that the main loop stop, it calls a case in a case structure that contains a breakpoint. This pops open the diagram, so you can see what's up.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 5 of 5
(2,684 Views)