Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Generate function prototype format

Is there a way to change the source code format before you select "Generate function prototype" in the function panel
0 Kudos
Message 1 of 5
(4,022 Views)
Hello,

I am a little unclear on what you mean by changing the code format.  Do you mean to edit the way the prototypes will be written in the header file? Or edit the entire format of the header file? Maybe something else entirely?  I presume you are using this function when generating the header files from the Function Tree so it is probably one of the first two options. If you could explain in a little more detail what changes you would like that would be helpful.
John B.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 5
(3,969 Views)
I want it to stop lower casing the first letter in the parameter declaration
0 Kudos
Message 3 of 5
(3,943 Views)
I have run some tests and it seems as though when we generate these prototypes it will automatically force the first letter of a parameter to be lowercase unless the first two letters are capitalized.  I tested various function names and it seems as though you have to capitalize the first two letters to prevent the automatic change, but the drawback is that you then have an extra capitalization.  This is peculiar behavior since it really should use the names as they are declared in the function panel.  After discussing this problem with our R&D department I will file a Corrective Action Request to evaluate this behavior since the default setting is not the most desirable behavior.  I will post the necessary information to track this request once it is filed and hopefully this behavior will be changed in future versions of CVI.
John B.
Applications Engineer
National Instruments
0 Kudos
Message 4 of 5
(3,908 Views)
Thanks for looking into the problem.
0 Kudos
Message 5 of 5
(3,896 Views)