07-11-2017 09:16 AM
When trying to insert a ScanWorks function into TestStand, it is a third party DLL, i always get an argument warning popups. Is there any specific problem about third party DLLs which may cause this issue with TestStand? Any suggestions on setting of TestStand options that may be needed when accessing third party DLLs?
I contacted Asset which owns ScanWorks and they saying it has to be something with teststand.
07-11-2017 10:37 AM
Can you post a screenshot of such an error?
I assume that the dialog tells you that the prototype of the method cannot be read (or similar) which means that you have to populate the parameters manually....
07-11-2017 11:03 AM
It does not say to enter manually. But when I do i get an error response still. I can show you the function and its parameters and the controller is the RIC-1000.
Is there a correct way to enter it manually. I keep having troubles
07-12-2017 02:01 AM
This is no error, but a notice. It means that you have to manually fill the parameters according to your documentation.
07-12-2017 07:57 AM
I tried but that the notice does not go away. It would be sw_connectWithHardware(RIC_1000) correct? I provided the syntax of the code in the previous message.
07-12-2017 08:02 AM - edited 07-12-2017 08:03 AM
OK, then slowly:
The dialog NOTIFIES you that TestStand cannot retrieve the parameterset for the chosen function from the DLL. This dialog should only popup when you select a new method in the step.
If you confirm the dialog, you have to MANUALLY add appropriate parameters to the DLL call to match the parameters of the DLL function. In your example, you have to add a string parameter.
Each parameter must match in data type and passing convention (call by value, call by reference) as long as applicable. A string for instance is always call by reference, so no setting necessary for this part.
Once you got the parameters configured, you can assign constants or TS variables as required.
Executing the step will create runtime errors if you failed to manually create and adapt the appropriate parameters.