From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
12-21-2020 11:32 PM
Hi;
When using the LabVIEW insert subVI panel function, I performed a two-level subpanel insertion operation, that is, insert the display VI front panel in the main VI and insert the execution VI front panel in the display VI front panel. There is no problem when running in a programming environment. After the exe is generated, it will not run, and the front panel of the inserted subVI will not be displayed. Can LabVIEW only insert the front panel functions of a subVI?
Solved! Go to Solution.
12-21-2020 11:43 PM
Attach your VI's so we can see what you are doing.
I can only guess that you aren't calling the subVI's by the correct name and path. SubVI's take on a different path when they are in an executable as opposed to a file on the PC running in development environment
12-22-2020 12:59 AM
12-22-2020 01:07 AM
Sorry, the attachment just missed
12-22-2020 03:48 AM
@hhLiu wrote:
Hi;
When using the LabVIEW insert subVI panel function, I performed a two-level subpanel insertion operation, that is, insert the display VI front panel in the main VI and insert the execution VI front panel in the display VI front panel. There is no problem when running in a programming environment. After the exe is generated, it will not run, and the front panel of the inserted subVI will not be displayed. Can LabVIEW only insert the front panel functions of a subVI?
If it works in the IDE it should work compiled. You've forgot to include the VI in the build or messed up the path. (that's why VI ref constants are handy, they are included automatically and know their own path)
12-22-2020 06:37 AM
I haven't looked at your code, but another option (other than the VI not being included or having a wrong path) is that by default LV removes the front panels from subVIs when it saves them into the EXE and without a front panel, you can't insert it into the subpanel.
There are a number of ways of getting LV to keep the FP, including creating a property node for a control on the FP and setting some of the FP properties (such as hiding the scrollbars).
Note that any subVI you want to insert will need to get this treatment.
12-29-2020 06:14 PM
Hi;
Thank you very much for your help, I have solved this problem in the project. It's a problem with the file path