How can I make the settings that are available for the target scope in a mfile
Show older comments
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')
Answers (1)
Vishal Rane
on 27 Nov 2012
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 Comment
hugo
on 3 Dec 2012
Categories
Find more on Target Computer Setup in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!