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.

Problem with command LCR_SendSplashLut(unsigned char *lutEntries, unsigned int numEntries)

Hello,


I have used the standard API library along wiht other source and header files from theGUI. I've tested out the commands for turning off LEDs or changing patterns and everything works great.


I am having issues getting the patterndisplay mode to work properly. I've used the following code:

LCR_SetMode(TRUE);

    LCR_LoadSplash(1);

    LCR_AddToPatLut(0, 1, 8, 1, false, false, false, true);

    LCR_SetPatternConfig(1, 1, 50, 1);

    LCR_SetExposure_FramePeriod(10000, 10000);

    LCR_SetPatternTriggerMode(0); //change to 1 if it doesn't work

    LCR_SendPatLut(void);

    LCR_SendSplashLut();  <----- ISSUE HERE

    LCR_ValidatePatLutData();  <----- ISSUE HERE

The issue I encounter is SendSplashLut requires two entries..... (unsigned char *lutEntries, unsigned int numEntries).

The pointer is causing issues! What do I substitute for *lutEntries?

Thanks for your help!

-Evan

  • Hello Evan,

    Are you using v2.0 firmware? If so, please make sure, before sending any commands, make sure the video signal is connected to the hardware. And the EVM is able to lock and display the signal. Only after this proceed with running your commands.


    There are other threads you can refer to

    e2e.ti.com/.../1442280

    e2e.ti.com/.../1388604

    Regards,
    Sanjeev
  • Thank you for your reply. I just realized I forgot to add USB_Open();

    here's my updated code:

    #include "stdafx.h"
    #include <iostream>
    #include "API.h"
    #include "Common.h"
    #include "targetver.h"
    #include "usb.h"
    #include "hidapi.h"
    #include <stdlib.h>
    #include <stdio.h>
    #include <wchar.h>



    using namespace std;

    int main(){
    USB_Open();

    LCR_SetInputSource(0, 1);

    LCR_SetMode(TRUE);

    LCR_AddToPatLut(0, 1, 8, 4, false, false, false, false);
    unsigned int pStatus[] = { BIT0, BIT1, BIT2, BIT3, BIT4 };
    LCR_ValidatePatLutData(pStatus);

    LCR_SetPatternConfig(1, 1, 256, 1);

    LCR_SetExposure_FramePeriod(10000, 10000);

    LCR_SetPatternTriggerMode(1);

    LCR_SendPatLut();


    cout << "Press Enter to end process safely";
    cin.get();
    LCR_SoftwareReset();
    USB_Close();
    }
  • Sanjeev,

    given my updated code, it appears all that happens is the DLP will go blank until the program ends. What could I do to remedy this?

    -Evan

  • Sanjeev,

    However, this updated code just seems to turn off the projector during operation until the program ends. How can I remedy this?

    -Evan
  • Evan,

    You must issue LCR_ValidatePatLutData(); LCR_SendPatLut(); command

    so add this additional step
    LCR_SendPatLut();

    LCR_ValidatePatLutData();
    //You can either query for validation status query, whether complete or not, or just wait for 1.0 second

    LCR_PatternDisplay(2) // 0 - Stop, 1 - Pause, 2 - start

    Regards,
    Sanjeev