We are using TestStand 2012 to call a cvi dll with the CVI adapter step. We are getting an error that TestStand is unable to load the dll we are trying to call. We verified the dll is good by loading it in LabVIEW with no discrepancies. The error we are receiving is:
Message : Module for Step 'drv_fcx_Init' not Loadable. Could not load DLL or external library 'C:\DMT\CSCI_8026707_FCNS-24\Source\FCNS Fiber Channel\drv_fcx\drv_fcx.dll'.
File : C:\DMT\CSCI_8026707_FCNS-24\Sequences\FCNS_Fiber_Channel_Network_Analyzer.seq
Location : Seq["Open"].Main["drv_fcx_Init"].TS.SData
Rule : Code modules must be able to load
Description : TestStand must be able to load all code modules without error. TestStand reports errors at run time when it
cannot load a code module. Correct this problem by editing the step in the sequence editor.
We were able to get TestStand to load and properly execute the test sequence by switching the step adapter settings by changing the settings:
Execute Steps In-Process (CVI is NOT Required for This Mode) "this did not load the dll"
Execute Steps in an External instance of CVI "this loads the dll and executes the sequence"
Any suggestions on how to fix this discrepancy would be greatly appreciated.
Are you currently using TestStand 2012 with LabVIEW (64-bit)? If so please refer to the following document:
Using TestStand 2013 and Previous with LV 64Bit
Additionally, this error could be caused by a dll that is being called from your main dll that you've forgotten to move? Something to think about.
Hello and thank you for the reply.
This is a TestStand 2012 32bit and LabWindows/CVI dll issue. LabVIEW is not being called in this sequence file.
We are getting a TestStand error that the dll cannot be loaded. The dll is compiled as a 32bit assembly and has no errors. There is a problem with the CVI step adapter being configured to use the "Execute Steps In-Process (CVI is NOT Required for This Mode)" fails to load the dll. When we switch to "Execute Steps in an External instance of CVI" the dll loads and operates with no discrepancies.
I need troubleshooting steps for when a CVI step adapter fails to load a CVI dll when the TestStand step adapter setting is set to, "Execute Steps In-Process (CVI is NOT Required for This Mode)"
Thank you for the clarification. I'm thinking that it could be that you need to add the lib files to the your final DLL using the add files to Dll option in CVI --target settings.
Please refer to :
Let me know your thoughts on this.