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.

Sample code for controlling DLP4100 with MATLAB

Other Parts Discussed in Thread: DLPC410

Hi

Can someone send me example MATLAB code for controlling the DLP4100 DMD using the DDC4100.ocx file?

Specifically I need MATLAB code that takes a 2D array (like a image) and displays it on the DMD.

We currently have access to the DDC4100.ocx file, but we have no experience handling such types of files in MATLAB.

We also have access to the Extranet for the Discovery Explorer software.

Thanks in advance.

-Phill

  • Hello Phillip,

    We do not have any MATLAB example code for the DLP4100. 

    There is some LabView 7.1 sample code that you can request from the design house that the kit was purchased from.  That code reaches directly into the D4100_usb.dll. 

    I recommend that you use MATLAB to access functions in the DLL directly rather than through the OCX file.  The Labview example will show how to put the functions together to display an image from an array.

    Fizix

  • Hi Fizix

    Thank you very much for the quick reply.

    Unfortunately we aren't very experienced with LabView at this time.  I'm hoping another user will read this and can contact me with some example code.

    I have a follow up question: Is the dll file, "D4100_usb.dll" the same one we should try loading into MATLAB?

    Respectfully

    Phillip

  • Hello Phillip,

    Yes, that is the file.  The OCX is simply a wrapper around the DLL file and some have had issues using MATLAB with this particular OCX implementation.

    Fizix

  • Hello Fizix,

    I'm wondering if you have updates on Matlab sample code to control DDC4100?

    Siqi

  • Hello Siqi,

    I think there is some confusion on this.  TI did not provide any MatLab sample code for the DLPC410 (Controller for the Discovery 4100). 

    Some have written their own and we had some feedback that using the OCX (ActiveX) interface caused issues.  Using the DLL directly seems to have worked better for them.

    You may want to ask the forum community if they have Matlab code that they would be willing to share.

    Fizix