NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Third Party DLLs

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. 

0 Kudos
Message 1 of 6
(3,057 Views)

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....

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 6
(3,041 Views)

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

Download All
0 Kudos
Message 3 of 6
(3,033 Views)

This is no error, but a notice. It means that you have to manually fill the parameters according to your documentation.

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 4 of 6
(3,016 Views)

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.

0 Kudos
Message 5 of 6
(3,009 Views)

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.

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 6 of 6
(3,005 Views)