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.

DLP4500VC++二次开发问题

Other Parts Discussed in Thread: DLPC350

已经烧录了4张图片在flash,中,用VC++编程投射图片,代码如下:

unsigned int patMode;
int numLutEntries=0;
unsigned int status;
unsigned char splashLut[64];
int numSplashLutEntries = 0;
unsigned int numPatterns;
//unsigned long int exposure_time;

//---------------DLP初始化----------------------//
//串口初始化
DLPC350_USB_Init();
DLPC350_USB_Open();
if(true==DLPC350_USB_IsConnected())
{

UpdateData(true);
DLPC350_SetMode(true);
DLPC350_ClearPatLut();

numSplashLutEntries = 4;
numLutEntries = 4;

DLPC350_AddToPatLut(0,0,8,4,false,true,false,false);
DLPC350_AddToPatLut(0,1,8,4,false,true,false,false);
DLPC350_AddToPatLut(0,2,8,4,false,true,false,false);
DLPC350_AddToPatLut(0,3,8,4,false,true,false,false);


splashLut[0] = 0x0;
splashLut[1] = 0x1;
splashLut[2] = 0x2;
splashLut[3] = 0x3;

DLPC350_SetPatternDisplayMode(false);

numPatterns = 4;



//exposure_time = 1000000/m_Frequency;
//DLPC350_SetExposure_FramePeriod(exposure_time, exposure_time);


if(DLPC350_SetExposure_FramePeriod(40000, 40000) < 0)
{
MessageBox("Error Sending Exposure period");
return;
}

//设置触发输出延迟
// Send trigger 1 input delay
DLPC350_SetTrigIn1Delay(1);
// Send trigger 1 output delays
DLPC350_SetTrigOutConfig(1, false, 187, 187);
// Send trigger 2 output delay
DLPC350_SetTrigOutConfig(2, false, 187, 187);

//Configure Trigger Mode - 0 or 1
if(DLPC350_SetPatternTriggerMode(1) < 0)
{
MessageBox("Error Sending trigger Mode");
return;
}
g_PatLutIndex = 4;

if(DLPC350_SendPatLut() < 0)
{
MessageBox("Error Sending Pattern LUT");
return;
}

if(DLPC350_SendImageLut(&splashLut[0], numSplashLutEntries) < 0)
{
MessageBox("Error Sending Image LUT");
return;
}
DLPC350_PatternDisplay(0);

if(DLPC350_SetPatternConfig(numLutEntries, false , numPatterns, numSplashLutEntries) < 0)
{
MessageBox("Error Sending Pattern Config");
return;
}
DLPC350_ValidatePatLutData(&status);

DLPC350_SetLedEnables(true, false, false, false);
DLPC350_SetLEDPWMInvert(false);
DLPC350_SetLedCurrents(104, 135, 130);
DLPC350_SetLedEnables(true, true, true, true); //automatic

DLPC350_PatternDisplay(2); //Start pattern display

}
else
{
MessageBox(_T("Open USB Error"));
}

请问,为什么不可以投射图片?是哪一句有错误么