• Resolved

DLPLCRC410EVM: Matlab control

Prodigy 60 points

Replies: 8

Views: 203

Part Number: DLPLCRC410EVM

Hello,

I'm having hard time trying to control DLP4100 from Matlab (2016b and 2019). I have adopted a DLL wrapper posted in a different thread (h-file posted here: https://e2e.ti.com/support/dlp/f/94/t/812675 to work with my C compiler (MinGW64). But when I try loading the DLL library, I get this error meassage: "'C:\Windows\SysWOW64\D4100_usb.dll' has different architecture than the host." 

Is there any avialable solution to this issue? Any reports on successful control of DLP4100 from the recent Matlab versions?

Thank you for your help.

Karel

P.S.: This product was bought directly from TI e-store. 

  • Hello Karel,

    What version of windows are you using?

    Fizix

  • In reply to Fizix:

    Hello Fizix,

    I use the 64-bit version of Windows 10 Pro.

    K.

  • In reply to Karel Zidek:

    Hello Fizix,

    any suggestion to resolve the problem?

    K.

  • In reply to Karel Zidek:

    Karel,


    TI has not developed Matlab example code for the DLPC410. Are you able to control it using the TI GUI?  

    You will need to first get the "number of devices" which opens a handle to the EVM.  Then 0 will be the device number after that.

    I have not seen this particular error, but it sounds like there are some MicroSoft components missing that allow 32-bit programs to run correctly.

    I know that it does require Microsoft Visual C++ 2008 Redistributable Package (x86)  which on some Windows 10 systems is not installed.  You will need to go to https://www.microsoft.com/en-us/download/details.aspx?id=29 which has the download and installation instructions.

    We are unable to guarantee that this will work, but it is a start.

    Fizix

  • In reply to Fizix:

    Hi Fizix,

    thank you for your reply.

    The TI GUI works fine.

    As for the Matlab - you probably pointed out the problem. If the DLL library is 32-bit, the 64-bit Matlab will not be able to handle it. Only the old version (R2015b) an old 32-bit C++ compiler, which will not be able, for change, to operate our other devices.

    When do you plan to come up with the 64-bit version of the DLL?

    Do you have any feedback from other users, that would be able to operate the DLP with a 64-bit C++ compiler?

    Karel

  • In reply to Karel Zidek:

    Hello Karel,

    We do not currently have plans to make an updated DLL for this platform.  The software is primarily for demonstration and verification that the EVM is working.

    The software that it works with is from 2008 and TI has no current plans to redo it.

    Fizix

  • In reply to Fizix:

    Hello Fizix,

    thank you for the information, which is, nevertheless, a bit surprising. From many devices purchased in last years for my lab, your DLP is the first one, which has no 64-bit library/.Net component. And from the documents provided online by TI it is not obvious, that there is no 64-bit DLL support.

    I would strongly suggest that you should clearly state in your "DLP® Discovery™ 4100 Development Platform API Programmer’s Guide" that your DLL is 32-bit and cannot be used with some 64-bit development platforms, such as Matlab.

    In any case, thank you for your help. I will try resolving the problem by establihing a communication channel between the Visual Studio and Matlab.

  • In reply to Karel Zidek:

    Karel,

    Please also make sure that you have vcredist_x86.exe (and vcredist_x64.exe) installed on your system.  

    Thank you for marking it complete.  The GUI was updated in appearance arround 2016 or so, but the DLLs and OCX were not.

    Fizix