mixmod install

39 views
Skip to first unread message

stefano....@gmail.com

unread,
Apr 5, 2009, 4:12:31 AM4/5/09
to mixmod
hi I report this message, after re-launch scilab 5.1

Startup execution:
loading initial environment
getf(mixmodDir+'/mixmodGraph.sci
!--error 31
Incorrect string.

at line 13 of exec file called by :
exec(SCIHOME+'/StartMixmod.sci');
line 1 of exec file called by :
exec(startup,-1);mclose(startup);
line 138 of exec file called by :
exec('SCI/etc/scilab.start',-1);;

I am not able install mixmod -2.1.1 in OS Vista 32 bit
regards
stefano

florent.l...@univ-fcomte.fr

unread,
Apr 6, 2009, 4:08:47 AM4/6/09
to mixmod
Hello Stefano,

On 5 avr, 10:12, stefano.zambe...@gmail.com wrote:
> hi I report this message, after re-launch scilab 5.1
>

Thank you for reporting this trouble.
This bugs appears with Mixmod 2.1 or Mixmod 2.1.1 ?
Because, the way we load mixmod functions on Scilab environment is
quite different in Mixmod 2.1.1.


> Startup execution:
>   loading initial environment
>  getf(mixmodDir+'/mixmodGraph.sci
>                  !--error 31
> Incorrect string.
>
> at line      13 of exec file called by :
> exec(SCIHOME+'/StartMixmod.sci');
> line     1 of exec file called by :
>     exec(startup,-1);mclose(startup);
> line   138 of exec file called by :
> exec('SCI/etc/scilab.start',-1);;
>
> I am not able install mixmod -2.1.1 in OS Vista 32 bit

What is the trouble ?

Florent

> regards
> stefano

si_ab...@nomade.fr

unread,
Apr 6, 2009, 5:00:46 AM4/6/09
to mixmod
Hi Stefano.
Could you tell us the result of mixmodDir in Scilab?
What is written at the first two lines in StartMixmod.sci?
Do you try an old Mixmod version with Scilab 5.1 in the past?

Regards.

Jean Francois

stefano....@gmail.com

unread,
May 2, 2009, 10:04:24 AM5/2/09
to mixmod
hi,
now installed scialb 5.1.1
now downloaded mixmod-2.1.1

in scilab file menu execute initmixmod
answer:
Execution done.

after in scilab file menu execute mixmod
answer:
Warning : redefining function: mixmod . Use funcprot(0) to avoid
this message
Execution done.

in scilab file menu execute mixmodgraph
answer:
Execution done.

now I am not able to see the MAIN MENU's mixmod

where is the error?

stefano

stefano....@gmail.com

unread,
May 3, 2009, 4:17:26 PM5/3/09
to mixmod
Hi
in mixmod directory I haven't startmixmod.sci
mixmod version 2.1.1

On 6 Apr, 11:00, si_abdal...@nomade.fr wrote:

Florent Langrognet

unread,
May 4, 2009, 4:42:17 AM5/4/09
to mix...@googlegroups.com
Hi,

In Mixmod 2.1.1 and Scilab, you have to launch :
exec(‘initMixmod.sci’); (and not 'startmixmod.sci')

See : http://www-math.univ-fcomte.fr/mixmod/userguide_2_1_1/node16.html
and tell me if the problem persist.

have you installed Mixmod_2.1.1 in a 'new' directory (not the same that
Mixmod2.1) ?

Florent



stefano....@gmail.com a écrit :
--
Florent Langrognet
Ingénieur de recherche CNRS
Laboratoire de Mathématiques de Besançon - UMR 6623
16, route de Gray
25030 Besançon
Tel : 03 81 66 63 19
web : http://www-math.univ-fcomte.fr/pp_Annu/FLANGROGNET/
Mixmod software : http://www-math.univ-fcomte.fr/mixmod

florent_langrognet.vcf

stefano....@gmail.com

unread,
May 4, 2009, 8:41:13 AM5/4/09
to mixmod
hi miss Florent

mixmod installed in new directory
I launched MIXMOD Graphical User Interfaces (GUI), but the Main Menu
window don't appears
I launched initmixmod

best regards
stefano



On 4 Mag, 11:42, Florent Langrognet <florent.langrog...@univ-
fcomte.fr> wrote:
> Hi,
>
> In Mixmod 2.1.1 and Scilab, you have to launch :
> exec(‘initMixmod.sci’);  (and not 'startmixmod.sci')
>
> See :http://www-math.univ-fcomte.fr/mixmod/userguide_2_1_1/node16.html
> and tell me if the problem persist.
>
> have you installed Mixmod_2.1.1 in a 'new' directory (not the same that
> Mixmod2.1) ?
>
> Florent
>
> stefano.zambe...@gmail.com a écrit :
>  florent_langrognet.vcf
> < 1KVisualizzaScarica

Florent Langrognet

unread,
May 4, 2009, 8:56:34 AM5/4/09
to mix...@googlegroups.com
stefano....@gmail.com a écrit :
> hi miss Florent
>
> mixmod installed in new directory
> I launched MIXMOD Graphical User Interfaces (GUI), but the Main Menu
> window don't appears
>
you launch "mixmodGraph()" ? What is the message ?


> I launched initmixmod
>

What is the message when launching this ?

What is your OS (linux or windows) ?

Florent
florent_langrognet.vcf

stefano....@gmail.com

unread,
May 5, 2009, 1:50:59 AM5/5/09
to mixmod
hi

I launch initmixmod
answer DONE

I exec mixmodgraph
answer DONE

my Os is VISTA 32 bit

regards
stefano



On 4 Mag, 15:56, Florent Langrognet <florent.langrog...@univ-
fcomte.fr> wrote:
> stefano.zambe...@gmail.com a écrit :> hi miss Florent
>  florent_langrognet.vcf
> < 1KVisualizzaScarica

Florent Langrognet

unread,
May 5, 2009, 4:17:21 AM5/5/09
to mix...@googlegroups.com
Hi,

You have to launch :
- exec('initMixmod.sci'); in Scilab command line (not using the File menu)
- mixmodGraph(); (without exec or using File menu)

Florent


stefano....@gmail.com a écrit :
florent_langrognet.vcf

stefa24

unread,
Jun 13, 2009, 11:26:24 AM6/13/09
to mixmod
hi mr Florent
to lunch mixmod I type:

in the message box I type YES after happens this:




exec('c:\program files\mixmod-2.1.1\initmixmod.sci')

--> if MSDOS then
--> separator='\';
--> else
--> separator='/';
--> end



-->if exists('mixmodDir')
--> versionScilab=evstr(part(getversion(),8));
--> minorVersion = evstr(part(getversion(),10));
--> if versionScilab<=4 | (versionScilab==5 & minorVersion<1)
--> r=x_message(['Are you sure want to change MIXMOD directory ?'],
['Yes','No']);
--> else
--> r=messagebox("Are you sure want to change MIXMOD
directory ?","MIXMOD directory", "question", ['Yes','No'], "modal");
--> end;
--> if ~isequal(r,1)
--> return;

-->initmixmod.sci
!--error 4
Undefined variable: initmixmod



-->exec ('initmixmod.sci')
!--error 241
File "initmixmod.sci" does not exist or read access denied.



-->exec('c:\program files\mixmod-2.1.1\initmixmod.sci')

--> if MSDOS then
--> separator='\';
--> else
--> separator='/';
--> end



-->if exists('mixmodDir')
--> versionScilab=evstr(part(getversion(),8));
--> minorVersion = evstr(part(getversion(),10));
--> if versionScilab<=4 | (versionScilab==5 & minorVersion<1)
--> r=x_message(['Are you sure want to change MIXMOD directory ?'],
['Yes','No']);
--> else
--> r=messagebox("Are you sure want to change MIXMOD
directory ?","MIXMOD directory", "question", ['Yes','No'], "modal");
--> end;
--> if ~isequal(r,1)
--> return;
--> end;
-->end;



-->mixmodDir=tk_getdir(Title="Enter mixmod directory location");





-->w=fileinfo(SCIHOME+separator+'.scilab');



-->/////ajout de la ligne à .scilab/////

-->if ~isempty(fileinfo(mixmodDir+'/mixmod.sci'))//mixmod.sci existe
--> if ~isempty(w)//.scilab existe
--> res=grep(mgetl(SCIHOME+separator+'.scilab'),["exec(SCIHOME+"'/
StartMixmod.sci"');"]);
--> if res==[]//ligne à ajouter non trouvée
--> //Dans le cas d'utilisation d'anciennes versions de mixmod,
on ramène dans une matrice de caractères "allFile"
--> //l'intégralité du .scilab. On change certaines conditions
pour que des anciennes instructions de mixmod
--> //ne perturbe pas les nouvelles. Ensuite on réinjecte le tout
de allFile dans le .scilab remis à neuf donc.
--> allFile=mgetl(SCIHOME+separator+'.scilab');
--> allFile=strsubst(allFile,'res=fileinfo(mixmodDir+"'/
mixmod.sci"')', 'res=[];');
--> allFile=strsubst(allFile,'grep(%helps(:,2),"'mixmod
help"')', '1');
--> allFile=strsubst(allFile,'%', '%%');//gestion des %
--> allFile=strsubst(allFile,'dirHelpMixmod=', '// ');
--> fd = mopen(SCIHOME+separator+'.scilab','w+');
--> for i=1:size(allFile,1)
--> mfprintf(fd,'\n'+allFile(i));
--> end;
--> mfprintf(fd,["\n exec(SCIHOME+"'/StartMixmod.sci"'); \n"]);
--> mclose(fd);
--> end;
--> else //.scilab n'existe pas
--> fd = mopen(SCIHOME+separator+'.scilab','a+');
--> mfprintf(fd,["exec(SCIHOME+"'/StartMixmod.sci"');"]);
--> mclose(fd);
--> end;
-->end;


-->/////fin ajout de la ligne/////




-->/////Création du fichier StartMixmod.sci/////

-->if fileinfo(mixmodDir+'/mixmod.sci')<>[]//si le fichier mixmod.sci
n'existe pas, rien n'est fait
--> if fileinfo(SCIHOME+'/StartMixmod.sci')<>[] //effacement du
fichier StartMixMod.sci
--> mdelete(SCIHOME+separator+'StartMixmod.sci');
--> end;
--> // fc=file('open', SCIHOME+'/StartMixmod.sci', 'new');//création
du fichier
-->// file('close'
--> fd = mopen(SCIHOME+separator+'StartMixmod.sci','w');
--> mfprintf(fd,'\n mixmodDir=');
--> mfprintf(fd,""'" );
--> if ~MSDOS then
--> mfprintf(fd,mixmodDir );
--> else
--> mfprintf(fd,mtlb_strrep(mixmodDir, '\', '\\'));
--> separator='\\';
--> end
--> mfprintf(fd,""';" );
--> mfprintf(fd,'\n res=fileinfo(mixmodDir+');
--> mfprintf(fd,""'" );
--> mfprintf(fd,'/mixmod.sci' );
--> mfprintf(fd,""'" );
--> mfprintf(fd,');' );
--> mfprintf(fd,'\n clear mixmod');
--> mfprintf(fd,'\n clear mixmodGraph');
--> mfprintf(fd,'\n clear mixmodInputModel');
--> mfprintf(fd,'\n clear mixmodInputStrategy');
--> mfprintf(fd,'\n clear mixmodInputCriterion');
--> mfprintf(fd,'\n clear mixmodView');
--> mfprintf(fd,'\n clear printMixmod');
--> mfprintf(fd,'\n if ~isempty(res)')
--> mfprintf(fd,' \n ');
--> mfprintf(fd,"getf(mixmodDir+");
--> mfprintf(fd,""'" );
--> mfprintf(fd,"/mixmod.sci");
--> mfprintf(fd,""'" );
--> mfprintf(fd,')');
--> mfprintf(fd,' \n ');
--> mfprintf(fd,"getf(mixmodDir+");
--> mfprintf(fd,""'" );
--> mfprintf(fd,"/mixmodGraph.sci");
--> mfprintf(fd,""'" );
--> mfprintf(fd,')');
--> mfprintf(fd,' \n ');
--> mfprintf(fd,"getf(mixmodDir+");
--> mfprintf(fd,""'" );
--> mfprintf(fd,"/mixmodInputCriterion.sci");
--> mfprintf(fd,""'" );
--> mfprintf(fd,')');
--> mfprintf(fd,' \n ');
--> mfprintf(fd,"getf(mixmodDir+");
--> mfprintf(fd,""'" );
--> mfprintf(fd,"/mixmodInputModel.sci");
--> mfprintf(fd,""'" );
--> mfprintf(fd,')');
--> mfprintf(fd,' \n ');
--> mfprintf(fd,"getf(mixmodDir+");
--> mfprintf(fd,""'" );
--> mfprintf(fd,"/mixmodInputStrategy.sci");
--> mfprintf(fd,""'" );
--> mfprintf(fd,')');
--> mfprintf(fd,' \n ');
--> mfprintf(fd,"getf(mixmodDir+");
--> mfprintf(fd,""'" );
--> mfprintf(fd,"/mixmodView.sci");
--> mfprintf(fd,""'" );
--> mfprintf(fd,')');
--> mfprintf(fd,' \n ');
--> mfprintf(fd,"getf(mixmodDir+");
--> mfprintf(fd,""'" );
--> mfprintf(fd,"/printMixmod.sci");
--> mfprintf(fd,""'" );
--> mfprintf(fd,')');
--> mfprintf(fd,'\n global mixmodWindowTitle ')
--> mfprintf(fd,'\n mixmodWindowTitle=');
--> mfprintf(fd,""'" );
--> mfprintf(fd,'MIXMOD 2.1.1 (2009)');
--> mfprintf(fd,""';" );
--> mfprintf(fd,'\n global mixmodGaussianDataType')
--> mfprintf(fd,'\n mixmodGaussianDataType = ');
--> mfprintf(fd,'1;');
--> mfprintf(fd,'\n global mixmodBinaryDataType')
--> mfprintf(fd,'\n mixmodBinaryDataType = ');
--> mfprintf(fd,'2;');
--> mfprintf(fd,'\n global scilab3');
--> mfprintf(fd,'\n scilab3=');
--> mfprintf(fd,'%%f;');
--> //mfprintf(fd,'\n global versionScilab');
--> mfprintf(fd,'\n versionScilab=part(getversion(),8);');
--> mfprintf(fd,'\n versionScilab=evstr(versionScilab);');
--> mfprintf(fd,'\n minorVersion = part(getversion(),10);'); //
recuperation du numero de scilab
--> mfprintf(fd,'\n minorVersion = evstr(minorVersion);'); //
transformation en entier
--> mfprintf(fd,'\n if versionScilab > 2 then');
--> mfprintf(fd,'\n set old_style off;');
--> mfprintf(fd,'\n scilab3 = %%t;');
--> mfprintf(fd,'\n end;');
--> mfprintf(fd, '\n dirHelpMixmod=mixmodDir+');
--> mfprintf(fd,""'" );
--> mfprintf(fd,"/UTIL/SCILAB/helpMixmod/" );
--> mfprintf(fd,""';" );
--> mfprintf(fd,'\n if versionScilab == 5 then');
--> mfprintf(fd,'\n add_help_chapter("'mixmod help"',dirHelpMixmod
+"'jar"');');
--> mfprintf(fd,'\n else');
--> mfprintf(fd,'\n add_help_chapter("'mixmod
help"',dirHelpMixmod );')
--> mfprintf(fd,'\n end;');
--> mfprintf(fd,'\n else');
--> mfprintf(fd,'\n warning("'Mixmod Path invalid"');');
--> mfprintf(fd,'\n end;');
--> mfprintf(fd,'graphicsMode=0;');
--> mclose(fd);
-->end;


-->/////Lancement de StartMixmod.sci/////

-->if ~isempty(fileinfo(SCIHOME+'/StartMixmod.sci'))
--> exec(SCIHOME+separator+'StartMixmod.sci');
-->else
--> warning('Mixmod Path invalid');
-->end;


On 5 Mag, 10:17, Florent Langrognet <florent.langrog...@univ-
fcomte.fr> wrote:
> Hi,
>
> You have to launch :
> - exec('initMixmod.sci'); in Scilab command line (not using the File menu)
> - mixmodGraph(); (without exec or using File menu)
>
> Florent
>
> stefano.zambe...@gmail.com a écrit :
>  florent_langrognet.vcf
> < 1KVisualizzaScarica

Florent Langrognet

unread,
Jun 15, 2009, 3:52:37 AM6/15/09
to mixmod
Hi,

You have to type :
1. exec('c:\program files\mixmod-2.1.1\initmixmod.sci')
So, you have to choose the mixmod directory.
This step initialize variables to launch Mixmod and must be done only
one time.
2. mixmodGraph()
To launch mixmod with the Graphical User Interface


After step 1, could you have the mixmodDir variable ? (type mixmodDir
on scilab console)

Florent
> ...
>
> plus de détails »

stefa24

unread,
Jun 26, 2009, 2:29:00 PM6/26/09
to mixmod
Hi
Now is all right Mixmod run properly
I am find the max density starting from three aggregate mixing
together with a gaussian distribution every

thank you very much
stefano

On 15 Giu, 09:52, Florent Langrognet <florent.langrog...@univ-
> > > >>> in mixmod directory I haven't...
>
> leggi tutto
Reply all
Reply to author
Forward
0 new messages