DLPLCRC410EVM: Comunicate with the DLPLCRC410EVM through Matlab or Python
Part Number: DLPLCRC410EVM
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.
P.S.: This product was bought directly from TI e-store.
What version of windows are you using?
We are glad that we were able to resolve this issue, and will now proceed to close this thread.
If you have further questions related to this thread, you may click "Ask a related question" below. The newly created question will be automatically linked to this question.
In reply to Fizix:
I use the 64-bit version of Windows 10 Pro.
In reply to Karel Zidek:
any suggestion to resolve the problem?
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.
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?
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.
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.
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.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.