Skip to content

fieldrndservices/alphabetize-cluster-elements

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alphabetize Cluster Elements (ACE): A LabVIEW add-on for automatically alphabetizing cluster elements

ACE is a Quick Drop Keyboard Shortcut (QDKS) and a Shortcut Menu Plugin (SMP) for the LabVIEW development environment published by National Instruments (NI)

Table of Contents

Dependencies

Installation

  • LabVIEW 2015 or newer

Development

The Caraya, JKI State Machine, OpenG Array Library, OpenG File Library, and VIPM API dependencies must be installed for all versions of LabVIEW (2015 and 2018) to avoid errors during automated builds.

Installation

A VI Package (VIP) is available on the National Instruments (NI) NI Tools Network. It is recommended to use the VI Package Manager published by JKI to install and update the library. Alternatively, the library can be installed by: (i) downloading the source code and building the VIP, (ii) downloading a VIP from the releases section of this project, (iii) manually copying the VIs from the source code into a project, or (iv) requesting a VIP from the authors.

Build

Each component in the ACE project has a Source Distribution build specification. The destination of each source distribution build is the builds folder relative to the project root, i.e. same folder as the Alphabetize Cluster Elements.lvproj file. Additionally, the output for the compiled help documentation is also the builds folder. The builds folder should not be included in the version control repository. A Build.vi script is available in the Scripts.lvlib project library that will build all of the components and the help documentation automatically (VIPM Pro is not needed, but the HTML Help Workshop is needed).

The VI Package Build (.vipb) specification, located in the configs folder relative to the project root, is configured for the package source to be the builds folder. Thus, the Source Distribution for each component must be built before opening the Alphabetize Cluster Elments.vipb file in the VIPM; otherwise, the package configuration will be lost.

Packaging using VIPM Pro (recommended)

Important, if creating a package for LabVIEW 2015 from LabVIEW 2018, the VI Server TCP/IP ports must be different for each version of LabVIEW and verified with the VIPM application before proceeding. An error will occur when the VIPM is started if both LabVIEW 2015 and 2018 are running at the same time. Basically, VIPM will not know which VI server to use if both versions of LabVIEW are using the same TCP/IP port.

If VIPM Pro is available, then open the Alphabetize Cluster Elements.lvproj file in any version of LabVIEW newer than 2015 and run the Package.vi located in the Scripts.lvlib project library of the Project Explorer window. Ensure all dependencies are installed before running the Package.vi script.

Note, the version number for the package is set in the configs\Alphabetize Cluster Elements.vipb file. The version number in the VIP build specification file should be modified and saved before running the Package.vi script.

Packaging using VIPM Free

If VIPM Pro is not available, then the following steps can be executed to do essentially the same thing as the Package.vi script. Ensure all dependencies, except VIPM Pro and the VIPM API, are installed before completing these steps.

  1. Start LabVIEW 2018 or newer and open the Alphabetize Cluster Elements.lvproj file.
  2. From the Project Explorer window, File>>Save for Previous Version..., a new dialog will appear.
  3. Select 15.0 from the drop down menu.
  4. Click Save.... A new dialog will open.
  5. Create the target\15.0 folder hierarchy in the project root, i.e. the same folder as the Alphabetize Cluster Elements.lvproj file, if it does not already exists.
  6. Click Save.
  7. Close LabVIEW 2018 or newer and the Alphabetize Cluster Elements.lvproj file.
  8. Navigate to <project root>\src.
  9. Copy the Help folder to <project root>\target\15.0\src.
  10. Start LabVIEW 2015.
  11. Open the <project root>\target\15.0\Alphabetize Cluster Elements.lvproj file. Do NOT open the project in any other version of LabVIEW.
  12. Run the Build.vi in the Scripts project library to build each Source Distribution under the "Build Specifications" tree item and the compiled help documentation file (Alphabetize Clsuter Elements.chm). The output of each build will be available in <project root>\target\15.0\builds.
  13. Open the <project root>\target\15.0\configs\Alphabetize Cluster Elements.vipb file in VIPM.
  14. Build the VI package with VIPM. The output will be available at <project root>\target\15.0\packages. Do NOT modify anything in the package build specification, but ensure the "2015" version of LabVIEW is selected in the upper, right-hand corner of the VIPM application window.
  15. Close VIPM.
  16. Close LabVIEW 2015 and the <project root>\target\15.0\Alphabetize Cluster Elements.lvproj file.

See the in-app LabVIEW Help system for more information and documentation about using the QDKS, SMP, and API after it has been installed, or visit the web-based documentation. Examples are also available within the LabVIEW development environment using the "Help->Find Examples..." menu item.

Tests

Tests are written in LabVIEW using the Caraya unit testing framework and included in the project via the various Tests.lvlib project libraries and the tests on-disk folder. To run the tests, open the Alphabetize Cluster Elements.lvproj file found in the project root in the LabVIEW Development Environment and run the Test.vi script located in the Scripts.lvlib project library. This will run all of the tests defined in all of the various Tests.lvlib project libraries located in the project.

License

The Alphabetize Cluster Elements project is licensed under either the BSD-3-Clause or the Apache-2.0 license. See the docs folder for more information about licensing and copyright.