How can I plot the Logic Analyzer window into a png by using the matlab print function?

조회 수: 8 (최근 30일)
I use the Logic Analyzer by using the scope function. Now I want to plot this window into a png file, but get
>> print('C:\temp\logic.png', '-dpng')
Error using validateHandleToPrint
No figure to print.
Error in validate (line 17)
pj = validateHandleToPrint(pj);
Error in print (line 81)
pj = validate( pj );
Tested using matlab R2016b. There is also no print function in the UI directly.
Thanks, Thomas Nirmaier

채택된 답변

Ashok Charry
Ashok Charry 2019년 10월 17일
Hi Thomas,
The dsp.LogicAnalyzer is not a regular figure window so you cannot call print on the window. As of now there is no documented method to print the window unfortunately. As a workaround you may take a snap-shot of the window (using regular Windows applications like Snipping Tool.
Hope this helps and apologies for this dealyed response.
Ashok Charry
Engineer, MathWorks.

추가 답변 (2개)

Thomas Nirmaier
Thomas Nirmaier 2019년 8월 26일
Hello Ted, it is the logic analyzer from matlab: dsp.LogicAnalyzer
logicAnalyzer.png

Thomas Nirmaier
Thomas Nirmaier 2019년 8월 29일
No answer delivered by mathworks so far???

카테고리

Help CenterFile Exchange에서 Title에 대해 자세히 알아보기

제품


릴리스

R2016b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by