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.

Project Patterns by using API (C/C++)

Other Parts Discussed in Thread: DLPC350

Hi All,

         I am working on Light Crafter 4500. I want to project one bit 18 patterns by using API of Light Cafter in C/C++. I can project 18 patterns by using GUI of Light Crafter. But I want to do it by using API. Can anyone guide which function will be used to project those. I have stored the patterns in the memory of light crafter as following way.

Note: One bit Patterns

Pattern-0  At Seq8 -B0

Pattern-1  At Seq8 -B1

...............................

Pattern-7  At Seq8 -B7

Pattern-8  At Seq8 -G0

...............................

Pattern-15  At Seq8 -B7

Pattern-16  At Seq8 -R0

Pattern-17  At Seq8 -R1

please guide me how to project these by using API. Which function API will be used to project these patterns

Thanks in advance...

Regards,

Muhammad Atif

  • Hello Muhammad,

    We have released the LightCrafter 4500 GUI source code, the source code is contains low level interfaces which you can use and compile into a separate application. 

    Here is how you can do...

    1. Extract USB.C/.h file and also API.C/API.h GUI source code 

    2. Copy hidapi-master folder

    3. You can add main.c file calling the APIs.

    We are also planning to put API Sample code SDK later but it will take some time like 3-4 months. Until then I think working from the GUI Source files is the best available option.

    Regards,

    Sanjeev

  • Hi,

          Thanks Sanjeev for such a nice and quick reply. i was looking for the same. Can you please tell me which function i should use to run these patterns or Is there any sample code for this purpose which could run the patterns which are already saved in the light crafter. Because there are so many functions. it really hard to find out the required one. I hope u can understand my question.

    Thanks once again.

    Regards,

    Atif

     

  • Thanks Atif for proceeding with minimal suggestion, I am copying your another thread here

    http://e2e.ti.com/support/dlp__mems_micro-electro-mechanical_systems/f/924/p/365607/1285011.aspx#1285011

    Regards,

    Sanjeev

  • Hi Sanjeev,

    I really appreciate all the support you provide on this forum. I have recently purchased the 4500 and I'm now trying to use it in my LabView code. Is there any hope for the SDK in the near future? Unfortunately I am not very fluent in C and cannot figure out how to build DLLs from  the GUI source code. Perhaps you (or someone in the community?) would have a QT project that does it and which I could use?

    Thanks a lot!!!

    Maciej 

  • Hello Maciej,

    Actually the GUI source code, that is put on the TI website contain the full source code the GUI, it is basically built using the QT project frame-work. First, install QT on the PC, just open the project and build it should work. For example - the latest GUI 2.0 build using Qt 5.2.x frame-work.

    Let us know if you face any problem.

    Regards,

    Sanjeev

  • Hey Sanjeev,


    I was going through this post and I have a question about it. Are you talking about dlpc350_api.cpp/h and  dlpc350_usb.cpp/h? Because I have cpp files and not c files. Also, Do I have to copy these files inside the hidapi-master folder?

    Do I have to write the main function in C? Or I can write it in C++ as well?

    I am a newbie in this world of C/C++ so if you can walk me through this whole process then it will be a great help.

    Thanks,

    Aamir

  • Hi Amir,

    yes, I was referring the dlpc350_api.cpp/h and usb.cpp/h. Actually the code inside is C code, you can rename them to .c and you should be able to compile on C compiler.

    You can chose either .

    I think it would be difficult to explain the C/C++ stuff in this forum. You may want to contact your friends/colleagues familiar with coding; they should be able help you quickly.

    Regards,
    Sanjeev