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.

Switching between LED lights

Hello,

Is there anyway to switch between the LED lights? I want the LightCommander to switch between an all red image and an all blue image through an external trigger. I already have the external trigger set up, but I can't figure out how to switch between the LEDs. Does anyone know if this is possible?

  • Hello Eric,

    You can switch the LED's on and off through USB commands, but not through an external trigger.  You can build three solutions that each have one color and send a command to switch between solutions through software. 

     

    Fizix

  • Hi Fizix,

    Ok, that could work. In the past I've just been switching between solutions manually. Is it possible to switch between solutions without stopping the DLP? If so, how?

     

    Eric

  • Once you build the solutions you can load them into flash.  Once there you can switch them through API calls. 

    Open the log window and you can capture the output.  From it you can create and run a batch file from the Tool/Run Batch File.

    If you use the play button it recompiles and dowloads everything.  By looking at the log window you should be able to isolate just the command that switches to the solution you want.  Put it into a batch file and then you can run it to switch without recompiling and reloading memory.

  • Hello Eric,

    To add on Fizix.

    External triggers are only meant for pattern selection in Structured Light Mode. Sending triggers just displays the next image in the pattern order LUT.

    As Fizix said you should need to do the following -

    1) Create a new project.

    2) Create three solutions in the project with only Red, Green and Blue LED enabled in each project.

    3) Now locate the .xml file where the project is stored. i.e., ..\LightCommander Control\<project_name>\Flash\<project_name>.xml

    As an example the .xml file looks like this and you can notice there are two solutions <solution> tag

    You need to note down offset address:

    Solution 1 - offset address 131072

    Solution 2 - offset address 262144

    4) After noting down this; you need to simiply call this API with offset address and 'reset'  - for quicker loading you can set reset = 0

    DLP_RegIO_InitFromParallelFlashOffset (UINT32

     

    offset, UINT8 reset)

    if you want to run batchfile from LOGIC GUI you need to add this line "$L2.5 DLP_RegIO_InitFromParallelFlashOffset 131072,0"

    - <FlashImage>
    - <Records>
    - <Record>
      <Type>TIPowerUp</Type>
      <StartAddress>32768</StartAddress>
      <Length>512</Length>
      </Record>
    - <Record>
      <Type>ActiveSolution</Type>
      <StartAddress>98304</StartAddress>
      <Length>4</Length>
      </Record>
    - <Record>
      <Type>Solution</Type>
      <StartAddress>131072</StartAddress>
      <Length>15872</Length>
      <Name>Solution1_8bpp</Name>
      </Record>
    - <Record>
      <Type>Solution</Type>
      <StartAddress>262144</StartAddress>
      <Length>15360</Length>
      <Name>Solution2_1bpp</Name>
      </Record>
    - <Record>
      <Type>BitPlane</Type>
      <StartAddress>393216</StartAddress>
      <Length>98304</Length>
      </Record>
    - <Record>
      <Type>BitPlane</Type>
      <StartAddress>524288</StartAddress>
      <Length>98304</Length>
      </Record>
    - <Record>
      <Type>BitPlane</Type>
      <StartAddress>655360</StartAddress>
      <Length>98304</Length>
      </Record>
    - <Record>
      <Type>BitPlane</Type>
      <StartAddress>786432</StartAddress>
      <Length>98304</Length>
      </Record>
    - <Record>
      <Type>BitPlane</Type>
      <StartAddress>917504</StartAddress>
      <Length>98304</Length>
      </Record>
    - <Record>
      <Type>BitPlane</Type>
      <StartAddress>1048576</StartAddress>
      <Length>98304</Length>
      </Record>
    - <Record>
      <Type>BitPlane</Type>
      <StartAddress>1179648</StartAddress>
      <Length>98304</Length>
      </Record>
    - <Record>
      <Type>BitPlane</Type>
      <StartAddress>1310720</StartAddress>
      <Length>98304</Length>
      </Record>
    - <Record>
      <Type>BitPlane</Type>
      <StartAddress>1441792</StartAddress>
      <Length>98304</Length>
      </Record>
    - <Record>
      <Type>BitPlane</Type>
      <StartAddress>1572864</StartAddress>
      <Length>98304</Length>
      </Record>
    - <Record>
      <Type>BitPlane</Type>
      <StartAddress>1703936</StartAddress>
      <Length>98304</Length>
      </Record>
    - <Record>
      <Type>BitPlane</Type>
      <StartAddress>1835008</StartAddress>
      <Length>98304</Length>
      </Record>
    - <Record>
      <Type>BitPlane</Type>
      <StartAddress>1966080</StartAddress>
      <Length>98304</Length>
      </Record>
    - <Record>
      <Type>BitPlane</Type>
      <StartAddress>2097152</StartAddress>
      <Length>98304</Length>
      </Record>
    - <Record>
      <Type>BitPlane</Type>
      <StartAddress>2228224</StartAddress>
      <Length>98304</Length>
      </Record>
    - <Record>
      <Type>BitPlane</Type>
      <StartAddress>2359296</StartAddress>
      <Length>98304</Length>
      </Record>
    - <Record>
      <Type>BitPlane</Type>
      <StartAddress>2490368</StartAddress>
      <Length>98304</Length>
      </Record>
    - <Record>
      <Type>BitPlane</Type>
      <StartAddress>2621440</StartAddress>
      <Length>98304</Length>
      </Record>
    - <Record>
      <Type>BitPlane</Type>
      <StartAddress>2752512</StartAddress>
      <Length>98304</Length>
      </Record>
    - <Record>
      <Type>BitPlane</Type>
      <StartAddress>2883584</StartAddress>
      <Length>98304</Length>
      </Record>
    - <Record>
      <Type>BitPlane</Type>
      <StartAddress>3014656</StartAddress>
      <Length>98304</Length>
      </Record>
    - <Record>
      <Type>BitPlane</Type>
      <StartAddress>3145728</StartAddress>
      <Length>98304</Length>
      </Record>
    - <Record>
      <Type>BitPlane</Type>
      <StartAddress>3276800</StartAddress>
      <Length>98304</Length>
      </Record>
    - <Record>
      <Type>BitPlane</Type>
      <StartAddress>3407872</StartAddress>
      <Length>98304</Length>
      </Record>
    - <Record>
      <Type>BitPlane</Type>
      <StartAddress>3538944</StartAddress>
      <Length>98304</Length>
      </Record>
    - <Record>
      <Type>BitPlane</Type>
      <StartAddress>3670016</StartAddress>
      <Length>98304</Length>
      </Record>
    - <Record>
      <Type>BitPlane</Type>
      <StartAddress>3801088</StartAddress>
      <Length>98304</Length>
      </Record>
    - <Record>
      <Type>BitPlane</Type>
      <StartAddress>3932160</StartAddress>
      <Length>98304</Length>
      </Record>
    - <Record>
      <Type>BitPlane</Type>
      <StartAddress>4063232</StartAddress>
      <Length>98304</Length>
      </Record>
    - <Record>
      <Type>BitPlane</Type>
      <StartAddress>4194304</StartAddress>
      <Length>98304</Length>
      </Record>
    - <Record>
      <Type>BitPlane</Type>
      <StartAddress>4325376</StartAddress>
      <Length>98304</Length>
      </Record>
    - <Record>
      <Type>BitPlane</Type>
      <StartAddress>4456448</StartAddress>
      <Length>98304</Length>
      </Record>
    - <Record>
      <Type>BitPlane</Type>
      <StartAddress>4587520</StartAddress>
      <Length>98304</Length>
      </Record>
    - <Record>
      <Type>BitPlane</Type>
      <StartAddress>4718592</StartAddress>
      <Length>98304</Length>
      </Record>
    - <Record>
      <Type>BitPlane</Type>
      <StartAddress>4849664</StartAddress>
      <Length>98304</Length>
      </Record>
    - <Record>
      <Type>BitPlane</Type>
      <StartAddress>4980736</StartAddress>
      <Length>98304</Length>
      </Record>
    - <Record>
      <Type>BitPlane</Type>
      <StartAddress>5111808</StartAddress>
      <Length>98304</Length>
      </Record>
      </Records>
      <Version>1.0.86.509</Version>
      <Date>7/1/2011 12:02:32 PM</Date>
      <CRC16>EB-4D</CRC16>
      <RecordCount>41</RecordCount>
      </FlashImage>
  • Oh ok. Thank you both!