LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Viewing Source Code of a Function Panel

Hi, I am fairly new to LabWindows/CVI. Can anyone help with how to the function definition/source file of a Library Function for which I can view the function panel?

 

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

Hello,

Many don't have associated source code, just compiled object or lib files. But some, such as toolbox.fp do have source code which can be found in the C:\Program Files\NI\LabWindows directories... It's just the same filename with a .c extension instead of .fp

0 Kudos
Message 2 of 3
(1,072 Views)

For instruments whose source code is distributed you should be able to load the code in an editor window by operating this way:

  • Load the instrument in Instrument menu
  • Execute Instrument >> Edit...menu function
  • Select the instrument in  the list on the left of the window
  • Press Attach and edit source...

The code will be loaded into an editor window and if you run the program in debug mode you can place breakpoint into the code and run it step-by-step to understand how it work and modify/correct it.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 3 of 3
(1,065 Views)