This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DLPLCRC410EVM: Loading DLL into MATLAB (32bit).

Part Number: DLPLCRC410EVM

Hi,

I am working on loading the DLL file into MATLAB. Since the DLL is 32 bit, I also used the 32 bit MATLAB and installed vcredist x86 and x64 on a 64bit Windows 10 computer. I also downloaded 8055.D4100_usb.h, RegisterDefines.h, CyAPI.h, and 6562.D4100_usb.lib from anther post.

The DLL file I use is: SysWOW64\D4100_usb.dll. Then when I use loadlibrary to open it in the 32 bit MATLAB, I found that MATLAB reports that this library is successfully loaded, with no function found however. 

(Error message: Warning: No functions found in library.)

Has anyone experienced the same issue and do not mind sharing your solution? Thank you very much.

In addition, I have a quick question for TI development team: It seems like you have a win10 x64 driver, would it be very hard to generate a 64bit dll in that case?

Warm regards,

Ke

  • Hello again Ke,

    I think that our driver is 32-bit with a co-installer helper that allows it to work.  There is a Cypress EZ driver that the D4100_usb.dll interfaces with and I believe it is also 32-bit.  I believe that to move to a 64-bit driver would require a complete rewrite of the dll that interfaces with a newer 64-bit Cypress interface.

    I wish it was as simple as just flipping a flag in the software to make a 64-bit driver and DLL.

    The only other option I could think of would be to virtualize a 32-bit guest OS in your 64-bit host.

    I have run the D4100 from VMware virtual machine running XP 32-bit (in Win 7-64).

    As to why Matlab shows no external functions in the DLL is a bit of a mystery, unless the 64-bit OS is impeding it.

    Fizix