03-29-2025 09:51 AM
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?
03-29-2025 03:04 PM
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
03-29-2025 10:43 PM
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).