Re: tuning a parameter in xpc target with respect to time




"Kishore " <gudheart_ykk@xxxxxxxxx> wrote in message
news:gqiap9$t7j$1@xxxxxxxxxxxxxxxxxxxxx
Hi..
I?m trying to tune a parameter in the xpc target while the target is
running,I could tune it using the command setparam(tg,'parameter
number','parameter name')
but i wantt to vary the parameters with respect to time.when enter this
setparam command in matlab window,the parameter have a n intial value
changes suddenly to new value,but I donn?t want to change it suddenly it
should change with respect to time. from old value to new value.
For example a parameter constant is to changed from 30 to 40 with respect
to time from 0 to 100 secs.Please any can give me an example to solve it
Thanks & Regards,
Swetha

You could adopt a discretized approach, something like (note it's setparam,
not set_param):

param_values = linspace(30,40);
t_span = 100;
pause_time = t_span / length(param_values);
for k=1:length(param_values)
setparam(tg, <parameter_index>, param_values(k));
pause(pause_time);
end

This won't take exactly 100s because it ignores the communication overhead
between the host and the PC, but it shouldn't too different. You can stick
tic/toc commands to time it if you want. The issue is that although the
target operates in real-time, the host doesn't, so there is no way to
guarantee that a particular instruction on the host can be executed in
specified length of time.

HTH,

Arnaud




.



Relevant Pages

  • Re: Remote debugging
    ... msvcmon.exe -anyuseran error box pops up with:"Invalid command line ... saying:msvcmon.exe does not seem to be running on the target ... This works only when I copy the debugged application from host ... I want to debug from my notebook (XP Pro) as host to target ...
    (microsoft.public.windowsxp.embedded)
  • Re: Remote debugging
    ... that command. ... This works only when I copy the debugged application from host to ... 'password' to fill-in although I don't have any password login in the target. ... settings and made the settings to the project: ...
    (microsoft.public.windowsxp.embedded)
  • Problem with building PicoBSD with CURRENT tree
    ... build of PicoBSD when I attempt to build CURRENT on FreeBSD-4.8 ... make: no target to make. ... However, even if I use the new "make" to run the above command, I ...
    (freebsd-current)
  • Re: War Celebrations
    ... If the factories cannot be stopped any other way, I have no problem in the ... morality of blowing up estates full of factory workers who spend their ... are a legitimate target, but I suspect that usually the workers from diverse ... Command were not entirely those under the command of Adolf ...
    (uk.legal)
  • Re: War Celebrations
    ... are a legitimate target, but I suspect that usually the workers from diverse ... As the winter of 1943 approached, the forces aligned against Bomber ... Command were not entirely those under the command of Adolf ... Lindemann's minute on area bombing, ...
    (uk.legal)