LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a non-instrument instrument driver

Hi
 
For the first time I'm looking to produce an instrument driver. This driver is to contain a group of generic functions that have absolutely nothing to do with a physical instrument. The labwindws/CVI help files state this can be acheived but not how.
 
I have already created the *.c and *.h file and can produce an *.obj or *.dll file but want to produce the *.fp and use the whole package as an instrument driver. Not too worried whether it is IVI compliant as it will only be used for Labwindows/CVI.
 
I could use the wizard but I do not want to create a file for an instrument containing "init", "IDQ" type commands and I do not have an exisiting driver to copy. And anyway the *.fp will have to be manually edited.
 
Since I have already created the *.c and *.h files is my only option to manually create the *.fp or is there a way of creating the *.fp from the already generated *.c and *.h file.
 
Also, what do I have to alter in the *.c and *.h files in order for them to work as an instrument driver, the help file mentions things like tags that are removed when using the wizard. Functionas are at the moment defined as "void CLASS_functionname(int, struct *)"
 
Many thanks and any help appreciated.
0 Kudos
Message 1 of 3
(2,988 Views)
Open your header file and select Options/Generate function tree. It should be exactly what you are looking for. It creates an fp file from a header.  Look under help for the syntax that allows you to add comments in the header file that will help format the .fp file the way you need it.  This option is available in cvi 7 or later 
0 Kudos
Message 2 of 3
(2,979 Views)
0 Kudos
Message 3 of 3
(2,973 Views)