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 about API to run a “batchfile”

Hello,

I'm trying to write a program to control the DLP Light Commander with the API provided. I have learned than I can not set the frame rate with API, so I have to run a “bachfile” with the  API “RunBatchFile”. However, I have met some troubles while debugging the sample projects provided in the TI website.

When I was debugging the project " RunBatchfileDriverC ",it can not successfully run a “bachfile”,it has stopped and return 1 before debug the function “rc = RunBatchFile(file, stopOnError)”.The result is as the follow image:

I don't know what the reason is. Do you have any ideas? What should I do?

your sincere

yongjia

  • Hi Yongjia,

    Welcome to DLP&MEMS forum.

    The exe expects a mandatory input parameter you must provide that. Otherwise it will return error.

    I am assuming you are trying with _SampleApps solution from the web DLPR200APP component from http://www.ti.com/tool/DLPR200 this link.

    For example command should be like this:

    C:\Users\a0393219\Documents\Visual Studio 2008\Projects\__SampleApps\Release>RunBatchfileDriverC.exe -f ..\Batchfiles\status.bf
                             InitPortabilityLayer:  ret code = OK
    # returns 0 if comm is OK
    # Error: unable to execute "$L2.5 DLP_Status_CommunicationStatus"
                                     RunBatchFile:  ret code = ERROR

     note "-f" option is for batchfile name input.

    Regards,

    Sanjeev

     

  • thank you very much,i have got it.

    Best Regards,

    yongjia