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.

DSS Java Scripting to input CCS IO Console

I am using DSS Java Scripting to automate my Board testing. Where as my test code prompt for console input (file name to create a log) to proceed. I need a  way to feed this file name (string) to IO console from the Java scripting.

I looked into the relevant community page Interactive script with DSS. But  I could not make it work.

My Java Code:

// Load Program file
debugSession.memory.loadProgram("./Memory_test.out");

// Log all output to console window (e.g. printf)
debugSession.beginCIOLogging("./test/S01_Console_log".txt")

            try
            {
                debugSession.target.run();    // after this My test code Memory_test.out will promt for file name in IO colsole
            }
            catch(logException)
            {
                script.traceWrite("Program Ended");
            }

in the above code the test code waiting for the input file name till timeout. So I need the following string to be input to the IO console upon the promt

String:  S01_"+voltage+"_"+temp+"_".txt"

where the "voltage" & "temp" are variables used in the scripts.

Thanks in advance,

Regards,

Karthikeyan D

  • Hello,

    What you are asking is not currently supported by DSS. I believe there is already a request to implement this in a future version of DSS but so far there is no firm date on when this will happen. Sorry.

    Karthikeyan Dhalapathi said:
    I looked into the relevant community page Interactive script with DSS. But  I could not make it work.

    The page you refer to discusses how to have the DSS javascript itself take input from the console. What you want is to be able to have your executable program take input from the console.

    ki