03-16-2010 08:56 AM
I need to be able to re-use a bunch of code that I wrote in LabWindows.
I read in the help files that I can create my own libraries by creating a dummy .fp file that linked to my code and adding that to the library list.
I can use this module by doing "load instrument" just fine.
However, when I put it into the library list (Library >> Customize) and reset the application, it comes up with the error "Cannot find program file for library..."
The .c .h and .fp files are all in the same directory.
I tried adding that directory to the include paths, to no effect.
I removed it from the library, reattatched the .c to the .fp, and returned it to the library several times to the same effect.
How do I get LabWindows to recognise my user-defined instrument as a library?
03-17-2010 05:20 PM
Hi S King,
When are you getting this error - right after adding your library, or upon relaunching CVI? Also, if you try this with a blank example for troubleshooting purposes, do you see the same behavior?
03-18-2010 07:07 AM - edited 03-18-2010 07:09 AM
The error appears right after launching LabWindows.
I was testing it with a very simple practice file that has a function that multiplies two numbers.
I tried again with a .fp that linked to a .c and .h that were completely blank inside and got the same result.
They all have the same name/filename: practiceLibrary(.fp/.c/.h) and are in the same directory.
If I remove it from the library aftewards, load it, edit+show_info, I still see a link to the .c file and a checkbox under "compiled".
Running version 9.0.1.