ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

VI with DLL-call not executable in TestStand when using Runtime-adapter

Solved!
Go to solution

Hello,

i am using the latest versions of TestStand and LabVIEW.
In LabVIEW, i created a VI that calls a .NET 4.8 DLL.

Inside this DLL, there's a function that contains a Form which i am displaying using this.ShowDialog.

 

If I set the TestStand adapter to Development, everything works as expected.

But when I switch the adapter to Runtime, the VI suddenly becomes un-runnable.


If i remove the DLL-call in the VI then the VIs is executable with the Runtime-adaper.
The problem is with the use of the DLL

What can be the problem?

Thanks for help

0 Kudos
Message 1 of 6
(327 Views)

Guess the DLL is not in the GAC?

 

Path resolution is different in RTE compared to the Development Environment 

Message 2 of 6
(311 Views)

What is the path of the GAC?

 

(I tried to copy the DLL into C:\Windows\System32 and C:\Windows\SysWOW64 with no success.)

 

Why is it a different path? In Labview i selected the position of the DLL with the Browse-button and thought that is hardcoded after this.

0 Kudos
Message 3 of 6
(296 Views)
Solution
Accepted by OnlyOne

Assemblies have to be installed/ registered in the GAC

https://learn.microsoft.com/de-de/dotnet/framework/app-domains/install-assembly-into-gac

 


@OnlyOne wrote:

 

 

Why is it a different path? In Labview i selected the position of the DLL with the Browse-button and thought that is hardcoded after this.


Design decisions 😉

 

where is the DLL located referring to the VI? Is it within the SearchDirectories?

 

Message 4 of 6
(284 Views)

The DLL is in the darechpath in TestStand and Labview.

The DLL is in a subdirectory of the VI.

\mystep\myfile.vi

\mystep\support\myfile.dll

 

Thx for the tip with the GAC. I come back a soon as i test it.

0 Kudos
Message 5 of 6
(268 Views)