From: Marc-André Dr. Beyer on
Hi,

I want my target application to output/refresh the numerical target scope display every sample. xpc tells me, that the minimum number of samples is 3.

is there a workaround?

thanks,
marc
From: Gordon Weast on
Marc,

> sc = tg.getscope(1);
> sc.stop;
> sc.NumSamples = 1;
> sc.start;

Given that tg is the object pointing to your target.
This will change the number of samples per update
for scope 1. Use getscope(2) for scope 2, etc.

You can also set the number of samples using xpcexplr.

Yes, the lower limit of 3 samples should only apply
to a graphical scope but that's the hard coded limit
applied to all scope types in the block mask.

Gordon Weast
xPC Target Development
The MathWorks

Marc-André Dr. Beyer wrote:
> Hi,
>
> I want my target application to output/refresh the numerical target
> scope display every sample. xpc tells me, that the minimum number of
> samples is 3.
>
> is there a workaround?
>
> thanks,
> marc
From: Marc-André Dr. Beyer on
Gordon,

thanks a lot for the help. this (simple) bug should get corrected in the next xpc version.

marc

Gordon Weast <gweast(a)mathworks.com> wrote in message <hjs8ia$rs6$1(a)fred.mathworks.com>...
> Marc,
>
> > sc = tg.getscope(1);
> > sc.stop;
> > sc.NumSamples = 1;
> > sc.start;
>
> Given that tg is the object pointing to your target.
> This will change the number of samples per update
> for scope 1. Use getscope(2) for scope 2, etc.
>
> You can also set the number of samples using xpcexplr.
>
> Yes, the lower limit of 3 samples should only apply
> to a graphical scope but that's the hard coded limit
> applied to all scope types in the block mask.
>
> Gordon Weast
> xPC Target Development
> The MathWorks
>
> Marc-André Dr. Beyer wrote:
> > Hi,
> >
> > I want my target application to output/refresh the numerical target
> > scope display every sample. xpc tells me, that the minimum number of
> > samples is 3.
> >
> > is there a workaround?
> >
> > thanks,
> > marc