LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to create function panels for my own C functions?

I've been searching for a way to create my own function panels. CVI documentation seems to suggest that this can be done but the explanation inevitably turns to instrument drivers, not C functions.

 

I don't yet know what an instrument driver is. So far I've never needed one. I just want to know how to put plain old C functions that I've created into the library tree for coworkers to use. Is that practically possible?

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

The facility is couched in terms of "instrument driver" but it can be used for an arbitrary CVI function you've created.

 

First make a function tree from File pull down menu   new ... Function Tree

 

Then right click in blank function tree panel and create instrument or use Create pulldown menu, enter name as prompted, use help button.  You need to choose a "prefix" for your function names.

 

The tricky part is when you want to add a function to your "instrument" you right click on the <create class or function panel window> token the first time, thereafter when adding a function you right click on one of the functions you've already added.  In either case you want to "create function panel window" which brings up the function panel window editor whcih allows you to place input controls that match the function signature.

 

There's a learning curve but keep at it.  The help is good, use it.

 

Menchar

0 Kudos
Message 2 of 2
(3,057 Views)