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.

How to achieve the same functions as the button"pause", "start" on LCR GUI with visual studio c++?

I am doing the work of control the DLP Light Crafter 4500 projecting images with visual studio c++. For example, when I want DLP to project images, I could input a number "2" on the dialog, just like clicking the button "play" on the LCR GUI. When I want to stop, I could input a number "1", just like clicking the button "pause". I have found some files in the folder "GUI", like API.cpp, usb.cpp and so on. The function "int LCR_PatternDisplay" might be sueful. So I have done some work and tried some times, but it didn't work. I wish someone could give me some suggestions. Thanks!

  • Hi Levy,

    You have done the right thing and used the GUI source code to help in your development. The function you mentioned in APP.cpp is what is executed when a start/stop/pause button is pressed for pattern sequence mode. Could you provide more details on how you are implementing this in your code? Are you writing something from scratch or basing it off of our GUI code? Could you also provide an overview of your application?

    Thanks,
    Clinton

  • Hi Clinton,

    Thank you for your reply. My problem has been solved. Functions of LCR_PatternDisplay, LCR_PrepWriteCmd, LCR_SendMsg in APP.cpp are used. And functions of USB_Init, USB_open, USB_close in usb.cpp are used. But my origional idea is not realized that DLP can project images automatically based on the judgement whether any faces are in the field of vision. I am still working on that.

    Thanks,

    Levy