LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

FTDI invalid handle on some computers


@dkim2 wrote:

Yes.

 

dkim2_2-1737668487604.pngdkim2_2-1737668487604.png

dkim2_1-1737668436154.pngdkim2_1-1737668436154.png

This is the real problem! FT_Close is defined as:

 

FT_STATUS FT_Close(FT_HANDLE ftHandle);

 

NOT

 

FT_STATUS FT_Close(FT_HANDLE *ftHandle); // WRONG

 

Change that Pass: Pointer to Value to Pass: Value, et voila! It works! And yes, for the FT_Open() it needs to remain as Pass: Pointer to Value.

 

When I install the driver, the file in syswow64 is the ftd2xx.dll not ftd2xx64.dll, although I am using the call library function on the ftd2xx64.dll from LabVIEW. Could this be an issue?


SysWOW64, despite its name, contains binary files for 32-bit applications! The 64-bit binaries are located in System32! And I have no idea what you are talking about with ftd2xx64.dll. They are both called ftd2xx.dll.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Message 11 of 16
(1,552 Views)

@rolfk wrote: I have no idea what you are talking about with ftd2xx64.dll. They are both called ftd2xx.dll.

Hmmm, on my PC the officially deployed from FTDI and signed library is also called ftd2xx64:

 

Screenshot 2025-01-24 12.56.11.pngScreenshot 2025-01-24 12.56.11.png

ftd2xx.dll is not exists in %WINDIR%\system32, at least not on my PC.

0 Kudos
Message 12 of 16
(1,542 Views)

@Andrey_Dmitriev wrote:

@rolfk wrote: I have no idea what you are talking about with ftd2xx64.dll. They are both called ftd2xx.dll.

Hmmm, on my PC the officially deployed from FTDI and signed library is also called ftd2xx64:

 

Screenshot 2025-01-24 12.56.11.pngScreenshot 2025-01-24 12.56.11.png

ftd2xx.dll is not exists in %WINDIR%\system32, at least not on my PC.


As the image shows in the other message for the device properties, it seems to have installed ftd2xx.dll in both SysWOW64 and System32. It's what I have observed in some systems too, but I'm not currently using any FTDI hardware.

rolfk_0-1737721236502.pngrolfk_0-1737721236502.png

 

The latest driver 2.12.36.4 from FTDI seems to indeed install the ftd2xx64.dll in system32. Go figure.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Message 13 of 16
(1,538 Views)

Thank you so much, this solved the issue.

0 Kudos
Message 14 of 16
(1,501 Views)

You absolute legend! I have been wrestling with this exact issue for several days now. I adjusted the OpenEx function handle to Unsigned Pointer-sized Integer and all subsequent handles to U64 values and it worked! Basically, make it 64-bit!

 

Thank you very much!

0 Kudos
Message 15 of 16
(173 Views)

Thank you, Rolfk!  This problem was bedeviling me!!

Regards,

Jeff Long, President
AutomationWorks, Inc.
http://www.automationworks.com
Message 16 of 16
(91 Views)