Hello,
in C# i created a DLL for an instrument with functions like Initialize, SetVoltage, Close.
In the Initialize function i create the object for this session with:
RM = new ResourceManager();
Instrument = new FormattedIO488();
Now i put the Initialize function in TestStand 2014SP1 as a .Net-Module-NumericLimitTest.
When opening the properties of my new step in the Type-Editor then there is a button "Default Module" where i can select the function of the C#-DLL.
All paramaters are shown (like VISA-Address) and also an additional parameter "Return Value" Object Reference" OUT which was added by TestStand.
-> I save this value in a StationGlobal.
Question is now:
If i have more than one instrument of the same type (means two or more Initialize-calls) how can i pass the saved references to the next function (SetVoltage) so that is executed on the correct instrument?
Thanks for help