cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

TestStand CVI Step dll not Loadable. Could not load DLL or external dll

Highlighted

TestStand CVI Step dll not Loadable. Could not load DLL or external dll

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:

 

From:

Execute Steps In-Process (CVI is NOT Required for This Mode) "this did not load the dll"

To:

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.

0 Kudos
Message 1 of 4
(90 Views)

Re: TestStand CVI Step dll not Loadable. Could not load DLL or external dll

Hi JoeLV1992,

 

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

http://digital.ni.com/public.nsf/allkb/4AB63B9B0EFA23D28625761D0053B8B0

 

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.

Alex G.
Applications Engineering
National Instruments
0 Kudos
Message 2 of 4
(39 Views)

Re: TestStand CVI Step dll not Loadable. Could not load DLL or external dll

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)"

0 Kudos
Message 3 of 4
(36 Views)

Re: TestStand CVI Step dll not Loadable. Could not load DLL or external dll

Hi,

 

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 :

https://forums.ni.com/t5/NI-TestStand/Error-17004-only-when-using-CVI-RTE/td-p/2659855

 

Let me know your thoughts on this.

Alex G.
Applications Engineering
National Instruments
0 Kudos
Message 4 of 4
(17 Views)