LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Compiler post-build actions

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?

0 Kudos
Message 1 of 4
(4,486 Views)

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 

0 Kudos
Message 2 of 4
(4,457 Views)

Is there any compiler command that would call this file automatically?

0 Kudos
Message 3 of 4
(4,444 Views)

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.

0 Kudos
Message 4 of 4
(4,425 Views)