LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Any sample to create an object file then use it (CVI_AppCreateObjectFile)?

I have never created an object file before, but now someone want to use from my program. Can anyone help to show me waht to do? Then after that how other can use my object file. Are there any sample in CVI8.0 Development Suite?
 
Many thanks
0 Kudos
Message 1 of 4
(3,143 Views)
Do you really need to do it programmatically (using CVI_AppCreateObjectFile)? If not, then the easiest way is to open the .c file in the the CVI source code editor, and then select "Options>>Create Object File".

If you do need to do it programmatically, even though there is no example that explicitly uses CVI_AppCreateObjectFile, there are examples that show you how to use the CVI ActiveX interface. A pretty simple one is samples\activex\cvi\cvidemo.prj. Once you look at that example, you should have no difficulty using CVI_AppCreateObjectFile.

Luis
0 Kudos
Message 2 of 4
(3,135 Views)
I am verifying the sample, thank you for the explaination Smiley Happy
0 Kudos
Message 3 of 4
(3,114 Views)

Hi plit string,

I also wanted to mention that with LabWindows/CVI 7.1 and later, you can also use the LabWindows/CVI command-line compiler,
compile.exe, to compiler a source file into an object file.  The compiler is located in the <CVI>\ top-level directory.

Also, I would check out the Object Files and LabWindows/CVI KnowledgeBase for some more information about object files. 

Hope this helps!

Best Regards,

Jonathan N.
National Instruments
0 Kudos
Message 4 of 4
(3,102 Views)