NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

how to declare teststand engine in visual studio 2008

Hello

I'm triying to declare the teststand Engine.

This is the code.

Public

Class Form1

   

Public ts As New NationalInstruments.TestStand.Interop.API.Engine

   

PrivateSub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) HandlesMyBase.Load

       

   

EndSub

End

 

and I get ...

'An error occurred creating the form. See Exception.InnerException for details.  The error is: Retrieving the COM class factory for component with CLSID {B2794EF6-C0B6-11D0-939C-0020AF68E893} failed due to the following error: 80040154.'

 

does anybody know how to initialize teststand API.Engine in visual studio 2008?

 

Thanks

0 Kudos
Message 1 of 3
(1,947 Views)

This error can happen in .NET projects if you have the platform set to "Any CPU" (which is the default) and you are trying to run on a 64-bit OS. You need to create an x86 platform configuration for your project and build that.

 

Hope this helps,

-Doug

0 Kudos
Message 2 of 3
(1,928 Views)

Thanks Doug

It fixed the problem .

0 Kudos
Message 3 of 3
(1,919 Views)