• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » DLP & MEMS » DLP LightCrafter Development Platform » Lightcrafter's Sample Code is now Available
Share
DLP & MEMS
  • Forums
Options
  • Subscribe via RSS

Lightcrafter's Sample Code is now Available

Lightcrafter's Sample Code is now Available

This question has suggested answer(s)
Divya
Posted by Divya
on Dec 06 2012 22:45 PM
Expert3680 points

Sorry for the inconvenience caused due to delay in the code availability. Please find the below link to download sample code,

http://software-dl-1.ti.com/dsps/forms/self_cert_export.html?prod_no=DLPLIGHTCRAFTER_API_2012_06_21.zip&ref_url=http://software-dl-1.ti.com/analog/analog_public_sw/dlp/

The .zip file contains the source code which enables Lightcrafter control  through APIs via USB.

DLP LightCrafter Sample Code 1.0.zip :  Contains implementation of DM365 command interface definitions. This code initializes the Lightcrafter and allows sending/ receiving of the data packets and command line control.

DLP LightCrafter Sample Linux Application 1.0.zip : A linux application has been created with the above source code. This application demonstrates different display modes, current control of LEDs and creation of solutions.

Further details are provided in the Readme files.

Regards,

Divya

www.ti.com/mems

Linux
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Oline Olesen
    Posted by Oline Olesen
    on Jul 05 2012 05:54 AM
    Prodigy60 points

    Hi Divya,

    I have problems sending an image from either MATLAB or a compiled Visual Studio project to the LCR.

    I can do it from the GUI. However it seems like I cannot connect correctly to the LCR from the provided code examples (DLP LightCrafter Sample Code 1.0).

    MATLAB:

    I can open the object, but no images is projected

    C-code:

    I can compile the file, main.c but when I run the demos I get the error:  COMMAND PACKET ERROR: DM365 sent back command type as white = [0x02] or read = [0x04] command

    It is the same error no matter what demo I run or even turn down the Lightcrafter.

    Are there any settings in the provided code examle that I should change before compling (all header files and source files are included in the project except for either LCR_Cmd_Interface.c or main.c depending the one I am trying)? OR do you think some connection settings on my windows PC should be changed (the GUI works)?   

    I hope you can get me on track.

    Oline

    Matlab
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Colin Sullender
    Posted by Colin Sullender
    on Jul 19 2012 11:56 AM
    Prodigy30 points

    It looks like the tcp_client.c file in the DLP LightCrafter Sample Code 1.0 is incomplete. All of the functions appear to simply be returning 0 without actually performing any actions which means that nothing is actually being sent or received by the program when it runs. The errors are being thrown since the response is always "0" rather than the properly formatted responses from the LightCrafter. 

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Sanjeev
    Posted by Sanjeev
    on Jul 20 2012 00:23 AM
    Expert5585 points

    Hi Colin,

    The code is just a frame work. We intentionally left tcp_client.c; this is a place where you are expected add low level code for TCP communication. For example - You can use Windows Socket APIs.

    Regards,

    Sanjeev

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Cheung Ka Yan
    Posted by Cheung Ka Yan
    on Nov 08 2012 03:18 AM
    Prodigy180 points

    Hi,

    I don't know why the downloaded file is always incomplete, no matter I use Chrome or Firefox.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Divya
    Posted by Divya
    on Nov 09 2012 13:57 PM
    Expert3680 points

    Hi Cheung Ka Yan,

    You will have to complete the Export Approval form to download the files. Can you explain what you meant by incomplete download?

    Thanks,

    Divya

    www.ti.com/mems

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Cheung Ka Yan
    Posted by Cheung Ka Yan
    on Nov 10 2012 01:23 AM
    Prodigy180 points

    Hi Divya!

    The download can be started. But it can only download around 400kb data and then the browser shows the download is complete. And the downloaded zip file cannot be open. It said "the compressed folder is invalid or currupted"

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Jordanka Tasseva
    Posted by Jordanka Tasseva
    on Dec 06 2012 10:59 AM
    Intellectual325 points

    Hi,

    I downloaded the zipped file but don't know how to use it. Should it be installed or the files are to be called by the Control Software? I need to stream external video at 60 Hz and displaying in the high rate monochrome mode, i.e. 1440 Hz. Is that code necessary for or the option has already been integrated in the Control Software of Light Crafter?

    Thank you!

    Kind regards,

    Jordanka

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Sanjeev
    Posted by Sanjeev
    on Dec 06 2012 22:45 PM
    Expert5585 points

    Hi Jordanka,

    The sample code is just an example for developing your own control application.

    If you just want to configure LightCrafter to display 60Hz 1bit monochrome you should be able to do with LightCrafter GUI.

    Select Display Mode to - HDMI Video

    On the HDMI Video tab, select video mode setting to as follows,

    Bit-Depth = 1, Frame-rate = 60Hz and LED Select anything you are interested Red or Green or Blue.

    Regards,

    Sanjeev

     

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • RAJ M
    Posted by RAJ M
    on Mar 21 2013 07:46 AM
    Intellectual270 points

    Hi,

    I have DLP lightcrafter 2.0 and imaging source  DFK21BF04 fire ware camera.How to use the above sample code on my setup.and how to send command (as per document) through USB without lightcrafter GUI.

    Regards

      RAJ M

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Pascal DLP
    Posted by Pascal DLP
    on Mar 22 2013 16:16 PM
    Suggested Answer
    Expert7510 points

    RAJM,

    Are you having trouble building and executing the sample code in Linux? Are you asking about interfacing with the IS camera?

    Best regards,

    Pascal

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Jin He
    Posted by Jin He
    on Apr 08 2013 10:35 AM
    Prodigy185 points

    Hi Divya,

    How to use the sample code ? Should it be complied and replace the GUI ? I am developing my GUI  based on NI Labwindows/CVI, I can send internal pattern ID  to DLP LighterCrafter and it gets right. But when I download a BMP picture ,it goes wrong. The color of the projected pic differs from the original.

    Regards,

    Jin 

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

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. 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 respect to these materials. 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.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use