04-06-2023 03:26 AM
Hello,
i am using Labview and testand version 2022.
I have a problem executing a sequencefile with a labview-teststep that calls a DLL-function.
Direct under Teststand the teststep executes normally with Labview-Adapter = Runtime (autoselect)
Running the same in my custom c# opui i get the attached error popup.
But when i switch to Adapter= Development, then it is working.
What can be the problem here?
Thanks for help
04-06-2023 05:15 AM
Hello,
attached the detailed log from the error message.
When i remove the DLL from the VI then the teststep is running.
When i call only the dll as Donet-step then the dll is also running
But the error appears when executing a sequence with the VI containing the dll and running in runtime-mode
Thanks
04-06-2023 07:13 AM
Does you C# OI happen to call the same DLL?
LabVIEW calling .net modules can be a PITA when using assemblies outside of the GlobalAssemblyCache (GAC).
Where is the dll located in respect to the calling VI?
04-06-2023 07:23 AM
Yes, this dll is only oe time on the computer
The DLL is in a subdirectory below the VI.
The DLL is found from the VI via the searchpath defined in labview at Tools->Options->Path->VI search path
Also in Teststand this path is defined.
04-06-2023 07:27 AM
Would you mind trying with the DLL in the same directory as the VI?
04-06-2023 07:34 AM
No difference 😞
(I moved the DLL to same location then opened the VI which notices the new location. Then saved the vi)
04-06-2023 07:38 AM - edited 04-06-2023 07:39 AM
Is the D Drive you are using a "real" drive or a mounted folder? If mounted... which method are you using for mounting?
04-06-2023 07:40 AM
It is a real drive.
04-06-2023 07:48 AM
Thanks for clarifiying!
So.... the sequence-editor is "just another" OI which is actually accessing the same API calls you C# OI is.
Have you tried using one of the example OIs that come with TestStand? Maybe we can get a hint where the difference lies
04-06-2023 07:51 AM
It is working with the this UI:
C:\Users\Public\Documents\National Instruments\TestStand 2022 (32-bit)\UserInterfaces\Simple\CSharp\TestStand 2022 (32-bit) C# Simple UI