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.

GEL_TextOut() function in CCS 4

Other Parts Discussed in Thread: CCSTUDIO

Hi,

In CCS 4 version, each time I call GEL_TextOut() fuction, the desired text is printed on a new line. Is there any way in CCS 4, where I can append text to the same line when I am printing text using two different GEL_TextOut() functions. By default, I was able to do this in CCS 3.3 version but when I tried the same on CCS 4, I could not.

 

Thanks in advance,

Karthik.

  • Karthik,

    In v4, there is no way to do this with GEL_TextOut. The console window in v4 does not provide any position or formatting controls.

    Depending on what you need to do, you may be able to workaround this by using a DSS script. Javascript gives you a bit more flexibility for manipulating strings so you may be able to construct the string in JS and print it in one shot. JS does not provide a lot of formatting capabilities, but it does let you use string variables which are not available in GEL.

  • Hi Andy,

    Thank you for your response.

    I have another query regarding Gel_TextOut() function in CCS v4. In CCS v4 help, the following information is present for GEL_TextOut() function:

    if( self == top ){ window.location.replace( "../../../?topic=/com.ti.ccstudio.gelhelp.doc/html/cc_43hdg.htm");}

    Syntax

    GEL_TextOut( "text" [, "windowName"[, textColor[, lineNumber[, appendToEnd [, param1, param2, .. param4]]]] );


    if( self == top ){ window.location.replace( "../../../?topic=/com.ti.ccstudio.gelhelp.doc/html/cc_43hdg.htm" appendToEnd(optional) is a flag used only if you are printing to a non-scrolling window. If this flag is set to 1, the text is appended to the existing line. Otherwise, the existing line is erased, and the new line is placed in the output window.

    The arguments textColor, lineNumber and appendToEnd are ignored in this version of CCS.

    Do you know, if this feature is supported in any of the latest CCS v4 releases? or will this be supported in any future releases.

    Thanks,

    Karthik.