Skip to main content

Is it possible to run an external program from within TRACE32 PowerView? - Knowledgebase / PRACTICE - Lauterbach Support

Is it possible to run an external program from within TRACE32 PowerView?

Authors list

Yes. Depending on how the external program should be executed and where its output should be displayed, one of the following commands can be used to run an external program or batch file:

  • OS.Area <cmdline> — Executes the command and displays its output in the AREA window. The PRACTICE script waits until the command has completed.

  • OS.Window <cmdline> — Executes the command and displays its output in a new TRACE32 window. The PRACTICE script waits until the command has completed.

  • OS.screen <cmdline> — Opens a host shell and executes the command. The execution is non-blocking.

  • OS.Hidden <cmdline> — Executes the command without displaying its output. The PRACTICE script waits until the command has completed.

  • OS.Command <cmdline> — Executes the command using the host operating system's command mechanism. It can be used for shell features such as output redirection. On Windows, the PRACTICE script does not block; on other operating systems, use & to make the execution non-blocking.

For more information, refer to the PowerView Function Reference.


Helpful Unhelpful

0 of 1 people found this page helpful

Comments (2)

Hodor
I have tried the non blocking os.screen and command to run a python script which captures trace32 window and saves it in wordfile. but in the screenshot i am not able to see the breakpoint set on a function. in the script i am opening the breakpoint list window. here is my code BREAK.List WAIT 1.s BREAK.Set sieve1 RePeaT ( Go WAIT !STATE.RUN() os.hidden python D:\capture.py break.delete sieve1 go ) I can see there is option in file menu called window screenshot to file, but i am not able to find the command.
Khaled Jmal

Hello,

the command to take a screenshot of a TRACE32 window is SCreenShot

Example:

WinPOS ,,,,,,myWin

Break.List

SCreenShot "~~~/screenshot.png" PNG myWin

--

Refer fore more details to ide_ref.pdf


Add a comment

ID-0
To prove you are a human, please tell us the text you see in the CAPTCHA image