04-06-2023 07:58 AM
So there seems to be an issue with sharing the DLL between the UI and LabVIEW in certain cases. at least that's my conclusion.
04-06-2023 08:04 AM
But the VI with the DLL is execution without problems in my UI when i configure in Teststand:
Configure -> Adapters -> LabView -> Development System.
I think it is a NI problem somewhere.
04-06-2023 08:08 AM
The issue might be related to https://www.ni.com/de-de/support/documentation/supplemental/13/how-teststand-interacts-with-labview-...
especially
I am no C# specialist at all, yet I have learned that LabVIEW also creates an own application instance for .net assemblies.
Maybe it is a combination.
It might be worth opening a service request at NI.
04-06-2023 08:15 AM
Thanks for the idea but this VI only conains one instance and is very simple inside. It only opens the dll and executes the function. Nothing special.
I think that the problem is that the DLL is not found when using the Runtimeadapter as the errorcode is the same also when i remove the DLL complete in the search path.
04-06-2023 09:44 AM
Another information: The problem is coming from the constructor.
When i delete all following calls using the constructor refererence then its still the same error.
When then also deleting the constructor then the Vi is executing.
So somehow there is the error in runtime-mode