Search the Community
Showing results for tags 'preallocated clone'.
-
## Accessing Breakpoints and Wire Values in Preallocated Clone VIs (LabVIEW Scripting) Hello, As part of automating certain debugging workflows, I’m looking to programmatically: - Place breakpoints on SubVIs, or - Read values flowing through wires (yes, I’m aware this involves using private properties — if anyone knows from which version of LabVIEW these became accessible, I’d be glad to know!). This is trivial when working with **non-reentrant VIs** via the `Diagram` property. However, things get complicated with **reentrant VIs** (specifically *preallocated clones*): Accessing the `Diagram` property on such a clone returns the **top-level VI’s diagram reference**, not the actual clone's diagram. As a result, I can’t access the relevant references for SubVIs or wires within that clone instance. ### Why I believe it’s still possible: - The **Breakpoint Manager** correctly detects and removes breakpoints on objects *inside* clone diagrams. 👉 This implies it has access to these internals and may be able to **set** breakpoints programmatically too — which is exactly what I’d like to do. - The **Probe Watch Window** can read values from wires within clone diagrams. 👉 Again, this confirms some internal visibility and access. I’m fully aware this might involve using **undocumented or unsupported LabVIEW features** (e.g., hidden `.ini` keys, private scripting APIs, or heap introspection). --- If anyone has insights, experience, or any direction to offer, I’d greatly appreciate your help! Thanks in advance!
- 16 replies
-
- breakpoints
- wire values
-
(and 2 more)
Tagged with: