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.

[参考译文] CCS/CCStudio:DSS 脚本:使用 DSS javascript 将数据写入文件。

Guru**** 1940910 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/841035/ccs-ccstudio-dss-scripting-write-data-to-a-file-using-dss-javascript

器件型号:CCStudio

工具/软件:Code Composer Studio

您好!

我创建了 DSS javascript、以自动执行调试过程、在该过程中我将运行一些回归测试用例。 DSS javascript 用于单次调试运行、我使用包装程序.cmd 脚本在循环中运行它。  

在该 DSS 脚本中、我运行一些 GEL 函数以获取 testcase 的状态。 现在、我要将该状态写入本地.txt 或.csv 文件。 请帮助我完成此输出文件写入。

我的.cmd 脚本:

[.

dss single_run.js 参数1  

]

我的 DSS 脚本:

[...

var status = debugSession.expression.evaluate ("poll_test_status()");

(笑声)

]

现在、我使用了 tracewrite 来验证变量'status'是否具有预期的数据。

我只想知道如何创建 output.txt 文件并通过 DSS javascript 在 outfile 中写入{parameter1 status \n}。

谢谢、

Saurabh

 

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    Saurabh、

    此主题包含有关如何执行此操作的更多信息:

    https://e2e.ti.com/support/tools/ccs/f/81/p/199640/710641#710641

    此致、

    John

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    谢谢 John。 这很有帮助。

    此致、

    Saurabh

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    没问题

x 出现错误。请重试或与管理员联系。