Solution
You can access the object as an Object Reference data type in TestStand by using the .NET Adapter Action Step to call the DLL. To access the variables inside the object, you can do either of the following:
- Communicate with the object by calling different methods to Get/Set its variables.
- To do this, create a function/method in the .NET assembly that takes the object as an input and inputs/outputs the variables you need to access. Then, call this function/method in the Action Step.
- Use another Action Step that references the same assembly.
- Enable the Use Existing Object option and set the returned object reference from the first Action Step as your existing object.
- With this option enabled, this Action Step will refer to the same object/instance as before, instead of creating a new object/instance.
- The .NET assembly will still need to have methods to Get/Set each value.
- See the attached sequence file for a basic example of how to do this.