LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Passing a .NET (Dot NET) refrence to Teststand programmatically

I am trying to pass a .NET refrence from a labview VI into a global variable in Teststand programmatically but it dose not work. but when I do this manually (I mean to pass the .NET reference inside teststand) then it works.
passing any other  data types programmatically works good also ActiveX refrence works. so I have a problem only in Passing the .NET refrences.
Is it possible to do this at all? if yes PLEASE write me a tip or idea to do it.
I am using LV 8.20 and Teststand 3.5

any posting will be thankful.
0 Kudos
Message 1 of 2
(2,414 Views)
Amro,
 
There is no way to share .NET references between LabVIEW and TestStand. You can pass a .NET reference from one to the other as a handle, for the sole purpose of passing it back later, but you can't use it in the other environment.
 
The reason this is true for .NET, but not things like ActiveX, is that .NET creates it's own universe to live in - it's managed code (C#, VB.NET, etc), unlike LabVIEW, TestStand or ActiveX, which are unmanaged (C++, VB, etc). Thus both LV and TS have their own ".NET universe", and the references don't map between them.
Message 2 of 2
(2,398 Views)