LabWindows/CVI Gives Errors Compiling Instrument Driver Source When Using .lib Files

Updated Oct 29, 2024

Reported In

Software

  • LabWindows/CVI

Issue Details

I am using Instrument Driver .fp files in LabWindows/CVI with a compiled .lib file. However, when I open my LabWindows/CVI project, I receive errors that the instrument .c file cannot be compiled. Why is LabWindows/CVI trying to compile the .c source rather than use the .lib file of the instrument?

Solution

This is occurring because LabWindows/CVI is failing to find the .lib file for the instrument driver. LabWindows/CVI loads instrument drivers with set precedence rules , but these can fail if the .lib file is named differently than the .fp file, for instance "InstrumentDriver.fp" and "InstrumentDriver_x64.lib". 

To solve this, rename the .lib or the .fp file to ensure that the file names match.