Error 1172 - LabVIEW Constructor node not working for okCFrontPanel 5.3.4

Hi All,

I’ve followed all of the configuration notes but I’m stymied. I’m hoping someone has come across this issue and figured out a solution.

Error:
Error 1172 occurred at Constructor Node Error creating instance of okCFrontPanel in assembly OpalKelly.FrontPanel.okCFrontPanel, libFrontPanel-csharp, Version=5.3.4.0, Culture=neutral, PublicKeyToken=null, (System.TypeInitializationException: The type initializer for ‘OpalKelly.FrontPanel.libFrontPanelPINVOKE’ threw an exception.
Inner Exception: System.TypeInitializationException: The type initializer for ‘SWIGExceptionHelper’ threw an exception.
Inner Exception: System.DllNotFoundException: Unable to load DLL ‘libFrontPanel-pinv’: The specified module could not be found. (Exception from HRESULT: 0x8007007E))

Environment:

  • LabVIEW 2025 Q3 32-bit
  • FrontPanel 5.3.4 installed and using the API/Csharp/Win32 dlls
  • libFrontPanel-csharp.dll and libFrontPanel-pinv.dll copied to the same folder as the .lvproj file
    • The csharp dll automatically was added to the dependencies
    • The pinv dll was not, but I did copy it over into the project just in case
  • Created a short test program:
    • The constructor node is pointed at the libFrontPanel-Csharp.dll in the Project folder - Using the okCFrontPanel() constructor.
    • Following methods are then used: GetDeviceID(), OpenBySerial(), IsOpen(), Close(), Dispose() - I can see ALL methods!! Should be a slam dunk!
  • In searching for answers, I found that minimum I need the VS2010 Redistribution package - those are there as are following versions since I have VS 2008, 2010, 2013, 2015 & 2017 installed…
  • I’ve tried running LabVIEW as an admin and user.

On paper, this configuration should work with no issues. In reality as soon as I run the VI (in development mode), the error comes right away out of the Constructor Node.

Any ideas or suggestions would be greatly appreciated. I must be missing something simple….

Oh yeah, hardware is from a fairly old project that we’re updating. It’s target device is a XEM3010. Hence the reason for the older version of FrontPanel.

I can connect to the XEM3010 with no problem using the FrontPanel 5.3.4, so the issue has to be how LabVIEW is interpreting the dlls.

Thanks,

Dan

Update…. 5.1.0 works with no problems. Will try advancing until it breaks.

I tried a few more version of FrontPanel and the most recent one that works with this configuration is 5.1.3

If anyone has any ideas on how to get later versions of the API to work, I’d love to hear it.

Dan