Pre-Build Action is not Changing LabVIEW VI

Updated May 8, 2020

Reported In

Software

  • LabVIEW

Operating System

  • Windows

Issue Details

I want to modify some constant values in a VI named VI to Modify.vi. I have implemented this block diagram following the template Pre-Build Action.vi.


The problem is that when I build the executable, no changes are performed in VI to Modify.vi. Why is this happening?

Solution

This behavior is expected as in your code you are not opening  VI to Modify.vi. To modify parts of the block diagram in a VI its required to use the invoke nodes: FP.Open and FP.Close as you can see in the following image:

 

Additional Information

The invoke methods FP.Open and FP.Close are used to open and close the front panel of a VI.