LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Debug VI in LLB

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.

0 Kudos
Message 1 of 8
(198 Views)

Set a breakpoint in it.

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 2 of 8
(158 Views)

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.

0 Kudos
Message 3 of 8
(146 Views)

@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.

0 Kudos
Message 4 of 8
(131 Views)

The VI is being called by VeriStand

0 Kudos
Message 5 of 8
(96 Views)

@BigApple0 wrote:

The VI is being called by VeriStand


A "minor" detail...

Message 6 of 8
(86 Views)

Figured out how to at least view the Front Panel

 

Under VI Properties -> Window Appearance, click Customize and check

 

  • Show front panel when called
  • Show front panel when loaded

https://www.ni.com/docs/en-US/bundle/labview-api-ref/page/dialog-boxes/customize-window-appearance-d...

 

I wonder if there's a way to view the block diagram as well?

 

0 Kudos
Message 7 of 8
(57 Views)

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.

0 Kudos
Message 8 of 8
(54 Views)