LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to programmatically launch a debuggable exe for CVI debugging.

I'm launching an executable from another CVI app. I want to debug the one I'm launching, AND pass arguments to it.

Using something like "cvi -run_then_exit myProcess.prj" doesn't provide for args unless they are hard coded into the project's CommandLine option.

Running 'cvi -p' is too late to catch initialization.

Are there options I haven't found yet?

(CVI 5.5.1 on NT)
0 Kudos
Message 1 of 2
(2,926 Views)
You should use CVI's ActiveX server. Go to the cvi\samples\activex\cvi\cvidemo.prj to see an example of how to use this. From here you can Launch CVI, Load Project, Compile and Run them, etc. There is also a function to SetCommandLine that will let you programmatically change the command line settings for the project.

Best Regards,

Chris Matthews
Measurement Studio Support Manager
0 Kudos
Message 2 of 2
(2,926 Views)