11-06-2024 02:20 PM - edited 11-06-2024 02:22 PM
Hello everyone.
I am currently using TS 2023, I have a sequence that executes a BounderyScan with XJTAG.
So I just starts the execution of the test by just execution a function in the DLL(.NET), The problem is that I have 2 version of the software V3 and V11.
I need to choose based on the DUT model so, and it gives me an error every time I change from one model to the other.
I tried using the UnloadAllModules function but as the RootClass have the same name it does not works.
I try with using UnloadAllModules and if the RootClass is different it works but in this case as is a Software of XJTAG and the DLL is from the own program I cannot change that.
I also tried to use the "Load Dynamic" options and more but it doesn´t works.
So, Is there a way to Unload the RootClass or clean that?
The goal is to be able to use 2 dll with same name and the same RootClass
Currently the only way to change between one DLL and other is stopping the sequence and Run again
11-26-2024 10:19 AM
Create a wrapper class, with a method and/or method with parameter that indicates the DUT that is being tested. Call this new class method from Teststand. In the code when you know what type of DUT is running, dynamically load the DLL that is needed for that DUT, run the JTAG test and then unload the DLL. For the other DUT you would do the the same; dynamically load the DLL and unload it when finished.