LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Attribute Label/Value Pairs in .fp file

I have built an IVI-C driver with Lab Windows/CVI 6.0. This is used in conjunction with another (non-NI) application which extracts label/value pairs from the .fp file. While this works fine in general, there is a problem with the Get/Set/Check attribute functions. Although Lab Windows shows a valid set of label/value pairs in these function panels, the label/value pair information does not appear to be stored in the .fp file. You can see this if you copy the .fp file to a directory away from the IVI-C driver project and open it with Lab Windows. If I ask Lab Windows to store the .fp file in a different directory than the rest of the project files, I get a warning that the .c source file must be "detached" first. What does this mean?

What is going on here, and is there any way to automatically have the label/value pair information stored in the .fp file for the Get/Set/Check attribute calls?
0 Kudos
Message 1 of 3
(3,034 Views)
The .fp file should always be in the same directory as its associated .c file. This is described somewhat in the following KB:

http://digital.ni.com/public.nsf/websearch/62067E7C3BE5200786256D1800600E81?OpenDocument

As you can see from this KB, to reattach a .fp to the proper source code file, it must be in the same directory. I do not believe this is related to the problems you are having with locating the label/value pairs in the .fp file.

Attached to this post is a simple .fp I made with the following Label/Value Pairs:

Label Value
-----------
Label1 100
label2 200
label3 300

If you open this file by dragging it into notepad and then scrolling over about half way, the Label/Value pairs can be seen stored in the file as plain text.

Scott Y.
National Instruments
0 Kudos
Message 2 of 3
(3,003 Views)
Thanks for the reply. I agree this does not seem to be related to my problem. All the files are currently in the same directory and seem to be "attached". It is only when I try to save the .fp file to another directory that I get the warning about detaching the file.
0 Kudos
Message 3 of 3
(2,996 Views)