LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

cannot find program file for user library

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?

0 Kudos
Message 1 of 3
(3,116 Views)

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?

Al B.
Staff Software Engineer - TestStand
CTA/CLD
0 Kudos
Message 2 of 3
(3,082 Views)

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.

 

Message Edited by S King on 03-18-2010 07:09 AM
0 Kudos
Message 3 of 3
(3,065 Views)