root/applications/pmsm/Barcelona/Mz.m @ 1054

Revision 871, 1.0 kB (checked in by mido, 15 years ago)

adaptation of /applications to new version of LOG_LEVEL
also, a cosmetic change made in enumerations: logub -> logubound, loglb -> loglbound

  • Property svn:eol-style set to native
Line 
1% script for estimation of Mz
2addpath ~/work/git/mixpp/library/mex/
3addpath ~/work/git/mixpp/applications/pmsm/
4
5dQ=[0.017, 0.017, 0.00000004, 1e-14, 1e-3];
6dR=[0.025, 0.025];
7
8% experiment
9S.experiment.ndat = 32000;
10
11Orv.type  = 'rv';
12Orv.names = { 'X' };
13Orv.sizes = [ 4 ];
14
15Oekf.type = 'rv';
16
17S.system= struct('type', 'ITppFileDS',...
18    'filename','tec0013ALL.it',...
19    'varname','D',...
20    'rv', Orv);
21
22S.estimator = {struct('type','EKF',...
23         'IM', struct('type','pmsmIM',...
24                'params', struct('type', 'external', 'filename', '../cfg/zcu.cfg','path' ,'pmsm107'),...
25        'variant', 'Mz'),...
26         'OM', struct('type','pmsmOM'),...
27         'dQ',dQ,...
28         'dR',dR,...
29         'dP0',[1., 1., 1., 10., 1e-10],...
30    'drv', Orv,...
31    'rv', struct('type','rv', 'names', {{'EKFMz'}},'sizes',[5]),...
32         'log_level','logevidence,logbounds')};
33       
34%S.logger= struct(      'type','mexlog','maxlen',32000);
35S.logger= struct(       'type','dirfilelog','maxlen',32000,'dirname','t2');
36
37%pmsm_estim_mex(S)
Note: See TracBrowser for help on using the browser.