Note: The use of older versions of VirtualBench with newer LabVIEW versions is currently not supported. The following workaround cannot be guaranteed to provide a fully working solution.
Note: This adaptation steps are not needed when you install a version of NI-VirtualBench along with a version of LabVIEW it supports, e.g. NI-VirtualBench 16.x with LabVIEW 2016, NI-VirtualBench 17.x with LabVIEW 2017 etc.
Note: While this process may apply to multiple version combinations of NI-VirtualBench and LabVIEW, the following scenario will be described using NI-VirtualBench 2017 and LabVIEW 2018.Adaptations have to be made regarding the Functions Palette, Controls Palette, resource files, and help files. The following table gives a high-level overview, find detailed guidance for all adaptions below:
Files and folders to copyWhat? | From... | To... |
---|
VirtualBench VIs | [...]\LabVIEW 2017\vi.lib\VirtualBench | [...]\LabVIEW 2018\vi.lib\VirtualBench |
Functions Palette elements | [...]\LabVIEW 2017\menus\Categories\Measurement\lci2.mnu | [...]\LabVIEW 2018\menus\Categories\Measurement\lci2.mnu |
Controls Palette elements - Silver | [...]\LabVIEW 2017\vi.lib\userdefined\Silver\VirtualBench | [...]\LabVIEW 2018\vi.lib\userdefined\Silver\VirtualBench |
Controls Palette elements - Modern | [...]\LabVIEW 2017\vi.lib\userdefined\High Color\VirtualBench | [...]\LabVIEW 2018\vi.lib\userdefined\High Color\VirtualBench |
Controls Palette elements - Classic | [...]\LabVIEW 2017\vi.lib\userdefined\Low Color\VirtualBench | [...]\LabVIEW 2018\vi.lib\userdefined\Low Color\VirtualBench |
Resource Files | [...]\LabVIEW 2017\resource\objmgr\lci*.* | [...]\LabVIEW 2018\resource\objmgr\ |
Help Files | [...]\LabVIEW 2017\help\lciviref.* | [...]\LabVIEW 2018\help\ |
Help Files | [...]\LabVIEW 2017\help\index\lciviref.chmeng | [...]\LabVIEW 2018\help\index\lciviref.chmeng |
Additional Information
Note: The files that have to be copied are also attached to this article in a zip archive. Downloading the archive and extracting it to your LabVIEW 2018 folder might be easier than locating them manually. However, the attached files support only the English language version of VirtualBench 17 for LabVIEW 32bit.VirtualBench VIsFollow the guide
Integrate Support for NI-VirtualBench 17 in LabVIEW 2018 to manually make the VirtualBench elements available in LabVIEW 2018.
Functions PaletteFollow these steps to add the VirtualBench subpalette to the LabVIEW Functions Palette, and to include the VirtualBench elements in Quick Drop:
- Open LabVIEW 2017 and navigate to menu Tools » Advanced » Edit Palette Set...
- In the now-shown Functions Palette: click Measurement I/O, right-click VirtualBench, and click Display Path To Palette File...
- Note the path shown. For LabVIEW 2017 32bit, it typically is C:\Program Files (x86)\National Instruments\LabVIEW 2017\menus\Categories\Measurement\lci2.mnu
- Click Cancel in the Edit Controls and Functions Palette Set window.
- Close LabVIEW 2017.
- Navigate to the file from step 3 and copy it to the corresponding folder in your LabVIEW 2018 installation, typically C:\Program Files (x86)\National Instruments\LabVIEW 2018\menus\Categories\Measurement\
- Open LabVIEW 2018. It should automatically detect the new .mnu file and already show the VirtualBench subpalette as Functions Palette » Measurement I/O » VirtualBench. If not, perform step 9 while following along with the further steps.
- Navigate to menu Tools » Advanced » Edit Palette Set...
- Perform the following sub-steps if the VirtualBench subpalette was not added automatically to the Functions Palette:
- Click Measurement I/O in the now-shown Functions Palette, then right-click an empty space in this palette and select Insert » Subpalette...
- In the dialog window, select Link to an existing palette file (.mnu) and click OK.
- Navigate to the file from step 6.
- Right-Click the new VirtualBench subpalette and click Rename Subpalette...
- Change the name to e.g. VirtualBench2017, click OK.
- Click Save Changes in the Edit Controls and Functions Palette Set window, and confirm the changes in the Preview Palette Changes window by clicking Continue.
Controls PaletteThen, follow these steps to add the VirtualBench subpalette to the LabVIEW Controls Palette. This is compulsory, otherwise all Instrument Handles are broken.
- Open LabVIEW 2017 and navigate to menu Tools » Advanced » Edit Palette Set...
- In the now-shown Controls Palette: click Silver » I/O, right-click VirtualBench, and click Display Path To Palette File...
- Note the path shown. For LabVIEW 2017 32bit, it typically is C:\Program Files (x86)\National Instruments\LabVIEW 2017\vi.lib\userdefined\Silver\VirtualBench\dir.mnu. Notice that there are more files than dir.mnu in this folder.
- Repeat the last two steps for the Modern and Classic subpalette as well. The corresponding files are typically C:\Program Files (x86)\National Instruments\LabVIEW 2017\vi.lib\userdefined\High Color\VirtualBench\dir.mnu and C:\Program Files (x86)\National Instruments\LabVIEW 2017\vi.lib\userdefined\Low Color\VirtualBench\dir.mnu.
- Click Cancel in the Edit Controls and Functions Palette Set window.
- Close LabVIEW 2017.
- Navigate to the folders from step 3 and 4 containing dir.mnu among other files, and copy the whole folders to the corresponding paths in your LabVIEW 2018 installation, typically C:\Program Files (x86)\National Instruments\LabVIEW 2018\vi.lib\userdefined\Silver\, respectively \High Color\ and \Low Color\.
- Open LabVIEW 2018. It should automatically detect the new files and already show the VirtualBench subpalettes as Controls Palette » <Silver/Modern/Classic> » I/O » VirtualBench. If not, perform step 10 while following along with the further steps.
- Navigate to menu Tools » Advanced » Edit Palette Set...
- Perform the following sub-steps if the VirtualBench subpalettes were not added automatically to the Controls Palette:
- Click <Silver/Modern/Classic> » I/O in the now-shown Functions Palette, then right-click an empty space in this palette and select Insert » Subpalette...
- In the dialog window, select Link to an existing palette file (.mnu) and click OK.
- Navigate to the corresponding file from step 7.
- Right-Click the new VirtualBench subpalette and click Rename Subpalette...
- Change the name to e.g. VirtualBench2017, click OK.
- Click Save Changes in the Edit Controls and Functions Palette Set window, and confirm the changes in the Preview Palette Changes window by clicking Continue.
Resource FilesCopy the five files beginning with lci, and having one of the two file extensions .rc and .rch from C:\Program Files (x86)\National Instruments\LabVIEW 2017\resource\objmgr\ to C:\Program Files (x86)\National Instruments\LabVIEW 2018\resource\objmgr\, respective the corresponding folders of your LabVIEW installations.
Help FilesFollow these steps to add the VirtuelBench help files to LabVIEW 2018:
- Copy the files lciviref.chm and lciviref.txt from C:\Program Files (x86)\National Instruments\LabVIEW 2017\help to C:\Program Files (x86)\National Instruments\LabVIEW 2018\help.
- Copy the subfolder lcivrref.chmeng from C:\Program Files (x86)\National Instruments\LabVIEW 2017\help\index\ to C:\Program Files (x86)\National Instruments\LabVIEW 2018\help\index\.