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.

CODECOMPOSER: access project and workspace variables from DSS

Part Number: CODECOMPOSER

Tool/software:

Hello experts,

Is there any way to access project and workspace variables via DSS?

I have these variables in the 'Build Variables' and 'Enveronment' tab

As of now i am using absolute paths in my dss script like this:

Fullscreen
1
2
//Path to store the raw data
var filepath = "C:/git/master/proto1/Code/bufferData/data";
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Is it possible to get this path from a project variable? Could you please give me the correct syntax and usage.

Ex: var filepath = ${PROJECT_PATH} + "bufferData/data";

Thanks

  • Hello,

    You can access system environment variables as mentioned in the other thread you referenced. However, you cannot access project/workspace variables. Those are specific to the CCS IDE and DSS has no dependency with the CCS IDE.

    Thanks

    ki

  • Hi Ki,

    Oh i see, that's unfortunate..

    Thanks Anyway

  • Hi Ki,

    Another followup, How do we access 'local' environment variables (not 'system' environment variables)

    The following returns null on local user's environment variables:

    var myEnvVar= java.lang.System.getenv("DATALOG_ROOT");

    Could you kindly advise on this!

    Thanks!

  • Another followup, How do we access 'local' environment variables (not 'system' environment variables)

    Only system environment variables can be obtained.

    Thanks

    ki