How can I make the settings that are available for the target scope in a mfile

The block target scope for xpc have the setting "Numerical format", were I write 'vx %6,3f'. But in a mfile I dont find were to change that. How to do that ?
I use
scs = addscope(tg,'target',2);
addsignal(scs,sig1);
set(scs,'DisplayMode','Numerical')
set(scs,'NumSamples',3)
set(scs,'TriggerMode','FreeRun')

답변 (1개)

For the 'xpclib/Misc./Scope (xPC) ' block, use the 'formatstr' property
set(scs,'formatstr','%15.6f')
also u can set more that one property in a single set statement

댓글 수: 1

Unfortunately was "formatstr" not an available property! I get:
"The name 'formatstr' is not an accessible property for an instance of class 'xpctarget.xpcsctg'."

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터 및 File Exchange에서 System Configuration에 대해 자세히 알아보기

태그

질문:

2012년 11월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by