Teststand issue with WATS
This might be a TestStand only issue, but since it involves WATS I thought I'd ask it here.
When I open a TestStand sequence that has the "Set Operation Type" step I usually get an error if I attempt to run it:
Module for Step 'WATS_SetOpType' not Loadable. An exception occurred inside the call to .NET member 'WATS_SetOpType':
If I navigate to the step and click the "Edit Operation Type" on the "Set Operation Type" tab of the Step Settings the regular window opens without issue and subsequent runs of the sequence to not present with this error.
It is as if the adapter has not been loaded correctly before the sequence analyzer runs. Is this a known issue? It is an issue with TestStand or with WATS?
Please see this article:
Thanks for the quick reply. I've already encountered that issues and dealt with it. This error does not claim there is an evaluation issue. This one claims the module cannot be loaded.
The full error message:
Message : Module for Step 'WATS_SetOpType' not Loadable. An exception occurred inside the call to .NET member 'WATS_SetOpType':
System.Threading.ThreadStateException: ActiveX control 'a5bf99d8-9325-4168-8c33-0d80bff39ad8' cannot be instantiated because the current thread is not in a single-threaded apartment. at System.Windows.Forms.AxHost..ctor(String clsid, Int32 flags) at NationalInstruments.TestStand.Interop.UI.Ax.AxExpressionEdit..ctor() at WATS_Teststand_Support.WATS_SetOpType.InitializeComponent() at WATS_Teststand_Support.WATS_SetOpType..ctor()
Location : WATS_SetOpType.Substeps["Edit"].TS.SData
Rule : Code modules must be able to load
Description : TestStand must be able to load all code modules without error. TestStand reports errors at run time when it
cannot load a code module. Correct this problem by editing the step in the sequence editor.
I've removed the file entry since it isn't important.
Please sign in to leave a comment.