11-28-2012 02:10 PM
I am currently using LabView 2009 and TestStand 4.2. I am using a Omicron software package to control a device and I first access and create the object reference in TestStand. I then would like to run a VI in the sequence editor that would internally use this same software and would like to use the saved object reference from TestStand as the input reference to the VI, but I keep getting errors saying that the reference is null. Is there a solution to this issue?
11-29-2012 06:11 PM
Unfortunately, you cannot pass references to .NET objects you create outside of LabVIEW to VIs. You can store references to .NET objects you create in LabVIEW within TestStand properties and then pass them to other LabVIEW VIs. There is similar forum that also covers this issue.
The following example shows how this can be done using .NET Remoting, which allows you to share objects across different AppDomains.
http://zone.ni.com/devzone/cda/epd/p/id/6064