LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to create function panel from existing header

I am trying to generate a function panel from a preexisting instrument header file.

I open the header in CVI (version 7.0), choose options>>Generate Function Tree and get syntax errors.

My header is very simple, consisting only of a few typedef enums, and function prologs using
VISA symbols - e.g., ViStatus myFunc(ViSession session, ViUInt16 ushort);

From experimenting, apparently the tool is not recognizing the VISA defined symbols and types
(e.g. ViStatus, ViUInt16, etc), even though the header has a #include "visa.h". When I switch
all the VISA symbols to their native C counterparts (e.g., ViStatus to long), then the file
is correctly processed without error.

Q1: How do I get the generate function tree tool to recognize non native C types defined in a different file?

Next issue: is there the way to generate a function tree from the command line (i.e., not from the CVI GUI)? In a different
posting (http://forums.ni.com/ni/board/message?board.id=180&message.id=14599&view=by_threading&page=1) there is
a reference to an example file (http://forums.ni.com/attachments/ni/180/14728/1/example.h) which has comments which
refer to a to a tool called FPgen, which looks like a command line front end to generating function panels.

Q2: How can I generate function trees from the command line? What is FPgen?

Thanks.
0 Kudos
Message 1 of 1
(2,893 Views)