LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Replicating the behavior of the Breakpoint Manager

Hello everyone,
The Breakpoint Manager can detect a breakpoint set on a subVI (BP.vi) inside a cloned subVI of A.vi (preallocated reentrant) and modify the state of this breakpoint. In this example, VI B contains multiple instances of A, and only one clone of A has a breakpoint on its subVI BP.
I'm not a LV Beginner but I can't figure out how to achieve the same result as the Breakpoint Manager. Does anyone have any ideas on this?

BP.jpg

A2.jpg

B.jpg

 

 

0 Kudos
Message 1 of 3
(123 Views)

I didn't think you could (easily) set or clear Breakpoints programmatically, so I "asked Google".  Turns out that maybe you can (one solution involved scripting, which doesn't sound easy or pracitcal, to say nothing of reentrant clones), and the other, by the user whose name is an approximation of jay(π-3) showed a simple technique that should work (even for clones, though you have to be a little clever to set up each clone properly.  Here is the code Jay posted ...

 

Bob Schor

0 Kudos
Message 2 of 3
(94 Views)

I want to do it programmatically, so yes, by scripting. From what I've seen, Jay's solution is to manually place a breakpoint in a case structure.
I can to the script (see below) that put a breakpoint on subVI "BP.vi" in my example, but it will be done on every instance of clone A. 😞 (and so is reported the BP in the breakpoint manager).

Diagram A.jpg

Diagram B.jpg

 

0 Kudos
Message 3 of 3
(74 Views)