NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with external .dll

Solved!
Go to solution

TestStand 2010 (4.5.0.310)

Visual Studio 2010 Ultimate 10.0.30319.1

.NET Framework 2.0

Hi,

I'm currently trying out testStand to see if it suits our needs. I have created a .dll with .NET 2.0. I have a very simple class with 1 constructor and 1 method returning an integer (5).

Now, in TestStand, I created a step with the .NET adapter. I specified the assembly, the class and selected Create Remote Object in the .NET invocation box. As for the the parameter Name, I have tried a dozen things but no luck. At run-time, I'm getting the error message 17500 (see attached image). See also BackPlane_seq.jpg for the very simple sequence file I created.

Thanks

Mathieu Bazinet

 

 

 

 

 

Download All
0 Kudos
Message 1 of 8
(3,764 Views)

Hi Mathieu,

 

Just one question before why do you need a "Remote Object" ? 

 

Juergen

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 2 of 8
(3,744 Views)

Actually I didn't need it. Found out right after submiting this post....

 

However, I created a singleton and stored its reference into a local variable. This singleton has several methods (getters and setters). I used "Use existing Object...." in the .NET invocation text box and was never able to plug the return value into another local variable. How would you proceed?

 

Is there a web site or a document(s) that can provide us with examples? From what I have seen so far there is not a lot of informtion but very few examples. I'm thinking something comparable to MSDN...

 

thanks

 

Mathieu

 

 

 

 

0 Kudos
Message 3 of 8
(3,739 Views)

Another thing that I find annoying is the fact that I must either remove all assemblies in my sequence or shut down testStand when I want to rebuild my .dll in Visual Studio.  I'm sure there is a better way to do this....

 

Error 1 Unable to copy file "obj\Debug\ClassLibrary.dll" to "bin\Debug\ClassLibrary.dll". The process cannot access the file 'bin\Debug\ClassLibrary.dll' because it is being used by another process. ClassLibrary

0 Kudos
Message 4 of 8
(3,737 Views)
Solution
Accepted by topic author acheo

This is happening because the module is loaded in memory.  Go to File » Unload All Modules to unload it.

0 Kudos
Message 5 of 8
(3,730 Views)

thanks!

0 Kudos
Message 6 of 8
(3,722 Views)

Hi Mathieu,

 

For help using the .NET Adapter, I recommend reading the TestStand Reference Manual that installs with TestStand.  Specifically, the .NET Adapter section of Chapter 5 - Module Adapters.

 

-Jeff

0 Kudos
Message 7 of 8
(3,716 Views)

Are you still having trouble getting "Use Existing Object" to work in the .NET adapter? If so, please let us know in more detail what you are trying to do and what exactly is not working.

 

-Doug

0 Kudos
Message 8 of 8
(3,701 Views)