Skip to content

Commit

Permalink
For built exes, copy the entire containing directory for PPL UIs
Browse files Browse the repository at this point in the history
  • Loading branch information
pbirkhol-ni committed Aug 10, 2023
1 parent 479da6c commit 31f98bc
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
<Property Name="Destination[1].destName" Type="Str">Support Directory</Property>
<Property Name="Destination[1].path" Type="Path">../builds/NI_AB_PROJECTNAME/Keysight 34401A DMM Measurement/data</Property>
<Property Name="DestinationCount" Type="Int">2</Property>
<Property Name="Source[0].itemID" Type="Str">{E3E180ED-2C27-4B9C-8099-563ACB69EACD}</Property>
<Property Name="Source[0].itemID" Type="Str">{E8D797B9-F76F-4436-8721-BBAB7E4497B9}</Property>
<Property Name="Source[0].type" Type="Str">Container</Property>
<Property Name="Source[1].destinationIndex" Type="Int">0</Property>
<Property Name="Source[1].itemID" Type="Ref">/My Computer/Keysight 34401A DMM Measurement.lvlib/Get Measurement Details.vi</Property>
Expand Down Expand Up @@ -155,22 +155,22 @@
<Property Name="Bld_buildSpecName" Type="Str">Keysight 34401A DMM Measurement UI</Property>
<Property Name="Bld_excludeLibraryItems" Type="Bool">true</Property>
<Property Name="Bld_excludePolymorphicVIs" Type="Bool">true</Property>
<Property Name="Bld_localDestDir" Type="Path">../NI_AB_PROJECTNAME</Property>
<Property Name="Bld_localDestDir" Type="Path">../NI_AB_PROJECTNAME/BuiltUI</Property>
<Property Name="Bld_localDestDirType" Type="Str">relativeToProject</Property>
<Property Name="Bld_modifyLibraryFile" Type="Bool">true</Property>
<Property Name="Bld_previewCacheID" Type="Str">{34E58981-12FC-4B65-80DF-C32EC0A02763}</Property>
<Property Name="Bld_version.major" Type="Int">1</Property>
<Property Name="Destination[0].destName" Type="Str">Keysight 34401A DMM Measurement UI.lvlibp</Property>
<Property Name="Destination[0].path" Type="Path">../NI_AB_PROJECTNAME/Keysight 34401A DMM Measurement UI.lvlibp</Property>
<Property Name="Destination[0].path" Type="Path">../NI_AB_PROJECTNAME/BuiltUI/Keysight 34401A DMM Measurement UI.lvlibp</Property>
<Property Name="Destination[0].path.type" Type="Str">relativeToProject</Property>
<Property Name="Destination[0].preserveHierarchy" Type="Bool">true</Property>
<Property Name="Destination[0].type" Type="Str">App</Property>
<Property Name="Destination[1].destName" Type="Str">Support Directory</Property>
<Property Name="Destination[1].path" Type="Path">../NI_AB_PROJECTNAME</Property>
<Property Name="Destination[1].path" Type="Path">../NI_AB_PROJECTNAME/BuiltUI</Property>
<Property Name="Destination[1].path.type" Type="Str">relativeToProject</Property>
<Property Name="DestinationCount" Type="Int">2</Property>
<Property Name="PackedLib_callersAdapt" Type="Bool">true</Property>
<Property Name="Source[0].itemID" Type="Str">{E3E180ED-2C27-4B9C-8099-563ACB69EACD}</Property>
<Property Name="Source[0].itemID" Type="Str">{E8D797B9-F76F-4436-8721-BBAB7E4497B9}</Property>
<Property Name="Source[0].type" Type="Str">Container</Property>
<Property Name="Source[1].destinationIndex" Type="Int">0</Property>
<Property Name="Source[1].itemID" Type="Ref">/My Computer/Keysight 34401A DMM Measurement.lvlib</Property>
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ or a custom alias).
### Using a LabVIEW UI with External Dependencies
This example uses a LabVIEW UI with external dependencies. In order to display the
LabVIEW UI in InstrumentStudio, you must first build the `Keysight 34401A DMM Measurement UI`
packed library build specification. The packed library will contain all of the dependencies that
the UI needs to load in InstrumentStudio.
packed library build specification. The packed library and its containing directory will
have all of the dependencies that the UI needs to load in InstrumentStudio.

If you make changes to `Measurement UI.vi`, you must rebuild the packed library.

Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ The MeasurementLink Support for LabVIEW packages enable measurement developers t

7. Create the user interface in `Measurement UI.vi` under the `<MeasurementName>.lvlib`. The control and indicator names in the user interface should match the `Measurement Configuration` and `Measurement Results`. If the data type and name match, then the data from the controls will be sent to the `Measurement Logic.vi` and the results will be published to the indicators after the measurement is run. By default, the UI file consists of an 'Array In' control and 'Array Out' indicator.
<br/><br/>
If your user interface has dependencies that are not available in the LabVIEW runtime, you will have to build the UI into a packed library. For example, you will have to do this if your UI contains VIs from vi.lib or if your UI depends on user created subVIs or controls. The packed library needs to be located in the same directory as `Measurement Logic.vi`. The [Keysight 34401A DMM Measurement](../Source/Example%20Measurements/Keysight%2034401A%20DMM%20Measurement) example demonstrates how to use a packed library user interface.
If your user interface has dependencies that are not available in the LabVIEW runtime, you will have to build the UI into a packed library. For example, you will have to build a packed library if your UI contains VIs from vi.lib or if your UI depends on user created subVIs or controls. The packed library should be located in a directory at the same level as `Measurement Logic.vi`. The [Keysight 34401A DMM Measurement](../Source/Example%20Measurements/Keysight%2034401A%20DMM%20Measurement) example demonstrates how to use a packed library user interface.

![Measurement UI](images/Measurement%20UI.png)

Expand Down

0 comments on commit 31f98bc

Please sign in to comment.