Getting Unresolved Symbol Error After Creating an IVI Driver in Labwindows™/CVI™

Updated Apr 11, 2023

Reported In

Software

  • LabWindows/CVI

Issue Details

After creating an IVI driver using the IVI Instrument Driver Wizard in LabWindows™/CVI™ and trying to run one of the generated default front panels, "unresolved symbol" error shows up in the Build Output window.

Solution

In order to run the front panels from the default generated functions from the IVI Instrument Driver Wizard, you first have to build the functions into a dynamic-link library (.dll) and load it into the project. After this, you need to modify the Environment settings to include project files and loaded instrument drivers into the Interactive Window. To carry out those steps please complete the following steps:

1. If the instrument driver that includes the functions is not already loaded into LabWindows™/CVI™, you will need to load it by going to Instrument>>Load. In the dialog box that opens, navigate to the .fp file of interest and click Load.

2. Open the Function Tree Editor by going to File>>Open>>Function Tree (*.fp). In the dialog box that opens, navigate to the .fp file of interest and click Load.

3. Create a DLL project by going to Options>>Create DLL Project. Specify a path and name for your project and click Save. A message will pop up asking you if you want to load the DLL project now, click Yes.

4. Go to Options>>Environment and select the following checkboxes in the Interactive Window section

  • Include project files in Interactive Window
  • Include loaded instrument drivers in Interactive Window


5. Go to Build>>Target Settings and verify that the "Enable LoadExternalModule" option is checked. 

6. Run front panel