How can I make the settings that are available for the target scope in a mfile
1 次查看(过去 30 天)
显示 更早的评论
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')
0 个评论
回答(1 个)
Vishal Rane
2012-11-27
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
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Target Computer Setup 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!