TI中文支持网
TI专业的中文技术问题搜集分享网站

DLP4500: SDK调用sdk不能投图

Part Number:DLP4500Other Parts Discussed in Thread:DLPC350

调用sdk程序能正常运行,但是没有投出图像。我用软件烧录了12张图像,通过软件能正常控制投图,但是通过自己写的sdk不能控制投出图像,以下是程序,麻烦帮忙看看程序哪里有问题

int main()
{
DLPC350_USB_Init();
DLPC350_USB_Open();
if (!DLPC350_USB_IsConnected()) {
return -1;
}
//DLPC350_SetPowerMode(true);
DLPC350_SetMode(true);
unsigned int iexp = 8000;
unsigned int iPerid = 10000;
DLPC350_ClearPatLut();

if (DLPC350_SetPatternDisplayMode(0) < 0)
{
printf("error set from flash");
}

for (int i = 0; i < 12; i++)
{
if (DLPC350_AddToPatLut(0, i, 8, 7, 0, 1, 0, 0) < 0)
{
printf("error Updating LUT");

}
}

if (DLPC350_SetPatternConfig(12, 0, 12, 12) < 0)
{
printf("error Sending Pattern Config");

}
if (DLPC350_SetExposure_FramePeriod(iexp, iPerid) < 0)
{
printf("error Sending Exposure period");

}

//Configure Trigger Mode – 0(External) or 1(internal)
if (DLPC350_SetPatternTriggerMode(1) < 0)
{
printf("error Sending trigger Mode");

}
if (DLPC350_SendPatLut() < 0)
{

printf("error Sending Pattern LUT");

}
unsigned char splashLut[12];
splashLut[0] = 0x00;
splashLut[1] = 0x01;
splashLut[2] = 0x02;
splashLut[3] = 0x03;
splashLut[4] = 0x04;
splashLut[5] = 0x05;
splashLut[6] = 0x06;
splashLut[7] = 0x07;
splashLut[8] = 0x08;
splashLut[9] = 0x09;
splashLut[10] = 0x0A;
splashLut[11] = 0x0B;

if (DLPC350_SendImageLut(&splashLut[0], 12) < 0)
{

printf("error Sending Image LUT");

}

/************************开始投影**********************************/
if (DLPC350_StartPatLutValidate() < 0)
{
printf("error check LUT data");

}

unsigned int status;
bool ready;

do
{
if (DLPC350_CheckPatLutValidate(&ready, &status) < 0)
{
printf("error validating LUT data");
}

if (ready)
{
break;
}
else
{
Sleep(10);
}

} while (1);

if (DLPC350_PatternDisplay(2) < 0)
{
printf("error play");
}

return 0;
}

Susan Ji:

你可以用i2c 查看一下没有图像时Input source已经设置为Splash, Splash index等设置是否正确

赞(0)
未经允许不得转载:TI中文支持网 » DLP4500: SDK调用sdk不能投图
分享到: 更多 (0)

© 2024 TI中文支持网   网站地图 鲁ICP备2022002796号-1