04-16-2025 07:48 PM - edited 04-16-2025 07:53 PM
How do you debug a VI in an LLB that is dynamically loaded (i.e. asynchronously called)? I'd like to open the front panel and block diagram when the VI is called.
04-17-2025 01:57 AM
Set a breakpoint in it.
04-17-2025 05:24 AM
Put an invoke node and property node on the VIs diagram to open the front panel and diagram.
Or use the same 2 nodes with the VI reference where you dynamically start it.
Is this VI reentrant?
If not (there's often no reason to start it dynamically in the first place, but) you can make a new VI, put a static reference VI to the VI in it and use the nodes. This is convenient as it doesn't modify any production code.
04-17-2025 10:28 AM
@BigApple0 wrote:
How do you debug a VI in an LLB that is dynamically loaded (i.e. asynchronously called)? I'd like to open the front panel and block diagram when the VI is called.
The location (plain VI vs. inside LLB) is irrelevant for the issue. The debugging steps are the same.
If you call the VI dynamically, you probably already have a reference and you can call methods to open the front panel and block diagram. from anywhere else in the caller. No need to touch the subVI.
04-17-2025 09:33 PM
The VI is being called by VeriStand
04-18-2025 03:37 AM
@BigApple0 wrote:
The VI is being called by VeriStand
A "minor" detail...
04-18-2025 04:40 PM - edited 04-18-2025 04:41 PM
Figured out how to at least view the Front Panel
Under VI Properties -> Window Appearance, click Customize and check
I wonder if there's a way to view the block diagram as well?
04-18-2025 05:05 PM - edited 04-18-2025 05:08 PM
It would also be nice to debug a VI running in the Veristand Engine on the RT Target.
Anyone have any experience with Remote Front Panels?
Sounds like this used to be possible.
https://forums.ni.com/t5/VeriStand/debugging-custom-devices/m-p/993274#M41
https://forums.ni.com/t5/VeriStand/Print-NIVS-Debug-String-vi-in-a-Model/m-p/1915461#M1552
I'm not sure I completely follow the steps to configure the VI server settings. Seems like an unintuitive process to get the Remote Front Panel working along side the VeriStand rtexe.