NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

error -17704, Build project failed in CVI

I'm using CVI7.0 with TS3.0.
When I configure the CVI adapter to be in debug mode, the TS uses tscvirun.prj to run an additional instance of the CVI code for debugging. As soon as TS finishes to load this project I get the run-time error:
Build project failed in CVI for the project c:\....\tscvirun.prj.
Error Code: -17704; CVI ActiveX automation server command failed.

Any idea where to start looking?

p.s. This entire project was copied from another pC where I don't have this problem. I did a lot of comparing between configurations of the two pCs but found nothing.

Thanks
0 Kudos
Message 1 of 7
(4,728 Views)
Rafi,

It is possible that you may have missed some component of the tscvirun project when you copied it over. As a first step in debugging, I would suggest manually recompiling tscvirun.prj. If there are any errors during compiling, try and resolve those. There shouldn't be any syntax errors. There are probably some missing files.

Let us know if you need any more help.

Regards,
Shannon R
Applications Engineer
National Instruments
0 Kudos
Message 2 of 7
(4,728 Views)
Thanks Shannon,

The compilation of tscvirun.prj is fine. I just did it and got tscvirun_dbg.exe successfully created.

Please note that the error shows up NOT when TS activates this file but as soon as you enter the code.

Just to make sure it is not MY PROJECT who make the error, I have tried it with one of the samples and got the same result.

Thanks
Rafi
0 Kudos
Message 3 of 7
(4,728 Views)
Rafi -
Do you have more than one version of TestStand installed on this system?

Does the original tscvirun project that TestStand installs work with the example on the failing system?

If you rerun the Start\Programs\National Instruments\TestStand 3.0\TestStand Version Selector application to reregister TestStand COM servers as if it was just installed, does the problem still occur?

Scott Richardson (NI)
Scott Richardson
https://testeract.com
0 Kudos
Message 4 of 7
(4,728 Views)
Hi again,
I have only one version of TS on this PC. Nevertheless, I activated the version selector but with same result.

Both program have not been activated yet. Could that be the source of the problem?

Thanks
Rafi
0 Kudos
Message 5 of 7
(4,728 Views)
Rafi2003 -
Does the original tscvirun project that TestStand installs work with the example on the failing system?

To validate this you may need to repair TestStand so that the tscvirun files are refreshed and try the examples to make sure things are working properly on the system before attempting to use the files from the second system.

If you rerun the insaller, one of the available options will be to perform a repair.

Scott Richardson (NI)
Scott Richardson
https://testeract.com
0 Kudos
Message 6 of 7
(4,728 Views)
I got it! Thank you very much.

I'd like to add for the benifit of others that the Repair option is reached from the Control Panel Add/Remove programs.
0 Kudos
Message 7 of 7
(4,728 Views)