03-27-2014 09:58 PM
Hi,
I've created a post-build action in my project.
If I compile the project in LabWindows/CVI environment than everything is ok, project compiles and post-build action executes.
But if I start compilation from a command in a batch file stange thing happens:
the project compiles as it should but post-build action is not executed.
(the post-build action copies project's output to onother directory)
Does anyone know how to make compiler execute a post-build action when it started from a command in a batch file?
03-28-2014 11:03 AM
Eddie
CVI generates a *.bat file when it compiles. This batch file includes the pre and post steps that you configure in CVI. You can call CVI generated batch file from your batch file that way it will include all of the pre and post steps. CVI puts its batch file in the cvibuild.projectname folder next to your project.
I hope this helps.
ConnorM
03-30-2014 06:38 PM
Is there any compiler command that would call this file automatically?
03-31-2014 11:13 AM
The proper way to compile from the command line can be summed up as follows:
1: Create a configuration in CVI (Build » Configurations » Manage Configurations)
2: Click Add…
3: Enter a name (myConfig)
4: Add your build steps
5: Save
6: Use the command compile <project filename> –config=myConfig
I tested this and it runs the post steps just fine. Let us know if there are errors.