Re: [Scilab-users] Scilab with Mac OSX El Capitan

2015-10-06 Thread Arvid Rosén
Hi!

I run Scilab 5.5.2 on OS X 10.11, and it works fine on several machines. You 
might try to reinstall Scilab and that old java version that is needed. I think 
I had to do that on one of the machines for whatever reason.

Cheers,
Arvid


On 06 Oct 2015, at 18:24, Peter Q. 
mailto:btove...@gmail.com>> wrote:


Virtualbox || VMware fusion player && Windows 8 || GNU/Linux

On Oct 6, 2015 4:09 AM, "Gérard BOBILLOT" 
mailto:gerard.bobil...@onera.fr>> wrote:
Hello,

I recently upgrade my MacPro with the new OSX El Capitan (OSX 10.11). 
One result is that I cannot run Scilab any more. I have tried Scilab 5.5.2 ans 
Scilab 6.0.0 alpha. I get the following message:
«  This version of Scilab will probably fail on this system (10.11): Scilab 
requires 10.6.5 (Snow Leopard) or newer system. » with two buttons « Try anyway 
» and « Quit ». Using the buttons, nothing happens.

Any solution ?

Regards

Gérard Bobillot
gerard.bobil...@onera.fr
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] How to produce a filled staircase plot

2015-10-06 Thread Rafael Guera
Hello Antoine,
 
An attempt below, not particularly clean but I hope not too dirty either:
 
//INPUT
t = [ 0  2  5 10 12 17 20 30 35 45 60]'*0.1;
N = [20 18 15 14 12  9  6  4  3  2  1]';
 
t2=[];N2=[];
ns= length(t);
t2(1:2:2*ns) = t;  
t2(2:2:2*ns) = [t(2:$)-%eps; t($)];
N2(1:2:2*ns-1) = N;
N2(2:2:2*ns) = N;
clf;
xfpoly([t2(1)-%eps;t2;t2($)+%eps],[0;N2;0]);
h = gce();
h.line_mode = "off";
h.background = color('gray');
plot(t2,N2,'black', t2,21*exp(-t2/2),'red');
 
 
Regards,
 
Rafael
 
-Original Message-
From: users [mailto:users-boun...@lists.scilab.org] On Behalf Of Antoine 
Monmayrant
Sent: Tuesday, October 06, 2015 10:57 AM
To: Users mailing list for Scilab 
Subject: Re: [Scilab-users] How to produce a filled staircase plot
 
Thank you Serge for this solution, but it does not work for me: the "bars" in 
my case are not regular.
I am simulating an exponential random decay: starting from a number N0, my 
population decreases by jumps of N0->N0-1 that occur at random times, following 
an exponential law (see the attached plot).
For the moment, I just build my polygon by hand, but it adds quite a lot of 
"noise" on top of the code that I intent to show to my students.
I was hoping for a cleaner solution.
 
Thanks anyway,
 
Cheers,
 
Antoine
 
Le Mardi 6 Octobre 2015 11:42 CEST, Serge Steer <  
serge.st...@inria.fr> a écrit: 
 
> Le 06/10/2015 00:01, Antoine Monmayrant a écrit :
> > Hi everyone,
> >
> > I'm trying to do a filled staircase plot (ie a staircase where the area 
> > between the staircase and the x axis is filled with a solid color).
> > Is there a given combination of polyline_style and fill_mode, etc ... that 
> > can do this?
> > Or should I resort to building a polygon by hand?
> >
> > Thanks in advance,
> >
> > Antoine
> >
> > ___
> > users mailing list
> >   users@lists.scilab.org
> >   
> > http://lists.scilab.org/mailman/listinfo/users
> >
> May be the bar mode can help you
> x=linspace(0,%pi,10);y=sin(x);
> clf;plot(x,y);e=gce();e=e.children;
> e.polyline_style=6;e.bar_width=0.5;
> e.background=2;
> e.line_mode="off";
> ___
> users mailing list
>   users@lists.scilab.org
>   
> http://lists.scilab.org/mailman/listinfo/users
> 
 
 
 
 
 
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Compiling an MBLOCK

2015-10-06 Thread Nicolas Fezans
Hi Umut,

well unfortunately I was not able to reproduce your issue on any of
the following combinations:

A) Windows 7 Enterprise x64 (German) - Scilab 5.5.2 32bit
B) Windows 7 Enterprise x64 (German) - Scilab 5.5.2 64bit
C) Windows 7 Enterprise x64 (German) - Scilab 5.5.0 32bit
D) Windows 7 Home x86 (English) - Scilab 5.5.2 32bit

In all cases with Visual Studio 2010 (English version).

My guess is that something is not configured "properly" on your
machine (e.g. Path, Environment variable, ...) leading to things like
not calling the right version of NMAKE or something like that happened
earlier leading to generate commands that are not adequate for use
with nmake. Maybe that helps but it seems that the NMAKE is
complaining about being passed an option beginning with "--" or "/-"
so I think somehow the call to NMAKE must be erroneous by itself and I
see two main possibilities for that (but I know too little about the
Xcos/Modelica compilation under Scilab to pretend that there are no
other obvious possibilities):

1) you have another make system (e.g. gnu make or cmake) on your
computer that was detected at some point during the process and the
options passed to nmake where actually intended/generated for the
other detected make system (which indeed can take options like
--always-make , --ignore-errors , --trace etc.)

2) somehow compiler or linker flags were included in the nmake call
(even though I can't think of any flags/options for cl or link
beginning like the one that apparently causes your issue)

If I had to bet on that I'll my money on number 1)


Hope that helps,
Nicolas



On Tue, Oct 6, 2015 at 5:30 PM, Dr.Umut Durak
 wrote:
> Thanks Clement,
> the model you will find attached and the log with verbose level 2 is as
> follows:
>
>  \
>  Main Modelica :
> C:\Users\dura_um\AppData\Local\Temp\SCI_TMP_6816_\loop1_im.mo
>
>  Flat Modelica :
> C:\Users\dura_um\AppData\Local\Temp\SCI_TMP_6816_\loop1_imf.mo
>  Simulation C code
> :C:\Users\dura_um\AppData\Local\Temp\SCI_TMP_6816_\loop1_im.c
>erzeuge eine Laderdatei
>  !// This file is released under the 3-clause BSD license. Se!
> ! e COPYING-BSD.!
> !   !
> !// Generated by builder.sce : Please, do not edit this file!
> !   !
> !// !
> !   !
> !   !
> !// !
> !   !
> !if ~win64() then   !
> !   !
> !  warning(_("This module requires a Windows x64 platform.")!
> ! );!
> !   !
> !  return   !
> !   !
> !end!
> !   !
> !// !
> !   !
> !loop1_im_path = get_absolute_file_path('loader.sce');  !
> !   !
> !// !
> !   !
> !// ulink previous function with same name  !
> !   !
> ![bOK, ilib] = c_link('loop1_im');  !
> !   !
> !if bOK then!
> !   !
> !  ulink(ilib); !
> !   !
> !end!
> !   !
> !// !
> !   !
> !link(loop1_im_path + 'libloop1_im' + getdynlibext(), ['loop!
> ! 1_im'],'c');  !
> !   !
> !// remove temp. variables on stack !
> !   !
> !clear loop1_im_path;   !
> !   !
> !clear bOK; !
> !  

Re: [Scilab-users] Scilab with Mac OSX El Capitan

2015-10-06 Thread Peter Q.
Virtualbox || VMware fusion player && Windows 8 || GNU/Linux
On Oct 6, 2015 4:09 AM, "Gérard BOBILLOT"  wrote:

> Hello,
>
> I recently upgrade my MacPro with the new OSX El Capitan (OSX
> 10.11). One result is that I cannot run Scilab any more. I have tried
> Scilab 5.5.2 ans Scilab 6.0.0 alpha. I get the following message:
> «  This version of Scilab will probably fail on this system (10.11):
> Scilab requires 10.6.5 (Snow Leopard) or newer system. » with two buttons «
> Try anyway » and « Quit ». Using the buttons, nothing happens.
>
> Any solution ?
>
> Regards
>
> Gérard Bobillot
> gerard.bobil...@onera.fr
> ___
> users mailing list
> users@lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Compiling an MBLOCK

2015-10-06 Thread Dr.Umut Durak

Thanks Clement,
the model you will find attached and the log with verbose level 2 is as 
follows:


 \
 Main Modelica : 
C:\Users\dura_um\AppData\Local\Temp\SCI_TMP_6816_\loop1_im.mo


 Flat Modelica : 
C:\Users\dura_um\AppData\Local\Temp\SCI_TMP_6816_\loop1_imf.mo
 Simulation C code 
:C:\Users\dura_um\AppData\Local\Temp\SCI_TMP_6816_\loop1_im.c

   erzeuge eine Laderdatei
 
!// This file is released under the 3-clause BSD license. Se!

! e COPYING-BSD.!
!   !
!// Generated by builder.sce : Please, do not edit this file!
!   !
!// !
!   !
!   !
!// !
!   !
!if ~win64() then   !
!   !
!  warning(_("This module requires a Windows x64 platform.")!
! );!
!   !
!  return   !
!   !
!end!
!   !
!// !
!   !
!loop1_im_path = get_absolute_file_path('loader.sce');  !
!   !
!// !
!   !
!// ulink previous function with same name  !
!   !
![bOK, ilib] = c_link('loop1_im');  !
!   !
!if bOK then!
!   !
!  ulink(ilib); !
!   !
!end!
!   !
!// !
!   !
!link(loop1_im_path + 'libloop1_im' + getdynlibext(), ['loop!
! 1_im'],'c');  !
!   !
!// remove temp. variables on stack !
!   !
!clear loop1_im_path;   !
!   !
!clear bOK; !
!   !
!clear ilib;!
!   !
!// !
!   !
   erzeuge ein Makefile
 
!# --   !

!   !
!# generated by builder.sce : Please do not edit this file  !
!   !
!# see TEMPLATE makefile for Visual Studio  !
!   !
!# see SCI/modules/dynamic_link/src/scripts/TEMPLATE_MAKEFIL!
! E.VC  !
!   !
!# --   !
!   !
!SCIDIR = C:/PROGRA~1/SCILAB~1.2!
!   !
!# --   !
!   !
!# default include options  !
!   !
!INCLUDES = -I"$(SCIDIR)/libs/MALLOC/includes" \
-I"$(SCIDIR!
! )/libs/f2c" \
-I"$(SCIDIR)/libs/hashtable" \
-I"$(SCID!
! IR)/libs/intl" \
-I"$(SCIDIR)/modules/core/includes" \!
!
-I"$(SCIDIR)/modules/api_scilab/includes" \
-I"$(SCID!
! IR)/modules/call_scilab/includes" \
-I"$(SCIDIR)/modul!
! es/output_stream/includes" \
-I"$(SCIDIR)/modules/jvm/!
! includes" \
-I"$(SCID

Re: [Scilab-users] Compiling an MBLOCK

2015-10-06 Thread Clément David
Hello Umut,

This error seems to be an NMAKE issue. Can you provide us more
information please ? Did you try logging the makefile using
`ilib_verbose(2)` ?

If possible, can you attach the MBLOCK content or the schema ?

Regards,

--
Clément

Le mardi 06 octobre 2015 à 14:57 +0200, Dr.Umut Durak a écrit :
> Folks,
> I am trying to run a simple model that has a MBLOCK inside using
> Scilab 
> 5.5.2. During compiling the modelica, everything works quite well
> until 
> "Building shared library (be patient)", then it fails with "NMAKE :
> fatal 
> error U1065". Haveacompiler returns true and findmsvccompiler returns
> msvc100pro. Any suggestions?
> Bests,
> 
> 
> 
> Dr.Umut Durak
> 
> Adjunct Lecturer
> TU Clausthal Institute of Informatics
> Model-based Systems Analysis and Simulation Department
> https://www.in.tu-clausthal.de/en/divisions/model-based-systems-analy
> sis-and-simulation/members/drumut-durak/
> 
> Research Scientist
> DLR e.V. Institute of Flight Systems
> Flight Dynamics and Simulation Department
> Phone +49 531 295-2907 | umut.du...@dlr.de
> www.DLR.de/ft | de.linkedin.com/in/umutdurak
> 
> Come to: SpringSim'16
> Submit to:
> 6th International Workshop on Model-driven Approaches for Simulation 
> Engineering (MOD4SIM’16)
> Ontologies in Simulation Special Interest Track of Annual Simulation 
> Symposium (ANSS)
> ___
> users mailing list
> users@lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] Compiling an MBLOCK

2015-10-06 Thread Dr.Umut Durak

Folks,
I am trying to run a simple model that has a MBLOCK inside using Scilab 
5.5.2. During compiling the modelica, everything works quite well until 
"Building shared library (be patient)", then it fails with "NMAKE : fatal 
error U1065". Haveacompiler returns true and findmsvccompiler returns 
msvc100pro. Any suggestions?

Bests,



Dr.Umut Durak

Adjunct Lecturer
TU Clausthal Institute of Informatics
Model-based Systems Analysis and Simulation Department
https://www.in.tu-clausthal.de/en/divisions/model-based-systems-analysis-and-simulation/members/drumut-durak/

Research Scientist
DLR e.V. Institute of Flight Systems
Flight Dynamics and Simulation Department
Phone +49 531 295-2907 | umut.du...@dlr.de
www.DLR.de/ft | de.linkedin.com/in/umutdurak

Come to: SpringSim'16
Submit to:
6th International Workshop on Model-driven Approaches for Simulation 
Engineering (MOD4SIM’16)
Ontologies in Simulation Special Interest Track of Annual Simulation 
Symposium (ANSS)

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] EOF too early in a .txt file using read

2015-10-06 Thread Flopi
Dear all, 
I am facing a problem during the exploitation of my simulation results. I
feed the code I am using with a 476x475 matrix and the code gives me back as
many elements but with in 10 columns and 22610 lines. I am then using the
read function read('file.txt',-1,475); in scilab to get it back to a matrix
of 476x475 elements. But Scilab gives me a matrix of size 471x475. 
When I was using the code with a 330x330 matrix it always worked correctly.
Do you have any idea of why I cannot get all my data as a result ?

Thanks



--
View this message in context: 
http://mailinglists.scilab.org/EOF-too-early-in-a-txt-file-using-read-tp4032965.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] How to produce a filled staircase plot

2015-10-06 Thread Antoine Monmayrant
Thank you Serge for this solution, but it does not work for me: the "bars" in 
my case are not regular.
I am simulating an exponential random decay: starting from a number N0, my 
population decreases by jumps of N0->N0-1 that occure at random times, 
following an exponential law (see the attached plot).
For the moment, I just build my polygon by hand, but it adds quite a lot of 
"noise" on top of the code that I intent to show to my students.
I was hoping for a cleaner solution.

Thanks anyway,

Cheers,

Antoine


Le Mardi 6 Octobre 2015 11:42 CEST, Serge Steer  a écrit:

> Le 06/10/2015 00:01, Antoine Monmayrant a écrit :
> > Hi everyone,
> >
> > I'm trying to do a filled staircase plot (ie a staircase where the area 
> > between the staircase and the x axis is filled with a solid color).
> > Is there a given combination of polyline_style and fill_mode, etc ... that 
> > can do this?
> > Or should I resort to building a polygon by hand?
> >
> > Thanks in advance,
> >
> > Antoine
> >
> > ___
> > users mailing list
> > users@lists.scilab.org
> > http://lists.scilab.org/mailman/listinfo/users
> >
> May be the bar mode can help you
> x=linspace(0,%pi,10);y=sin(x);
> clf;plot(x,y);e=gce();e=e.children;
> e.polyline_style=6;e.bar_width=0.5;
> e.background=2;
> e.line_mode="off";
> ___
> users mailing list
> users@lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>





___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] How to produce a filled staircase plot

2015-10-06 Thread Serge Steer
Le 06/10/2015 00:01, Antoine Monmayrant a écrit :
> Hi everyone,
>
> I'm trying to do a filled staircase plot (ie a staircase where the area 
> between the staircase and the x axis is filled with a solid color).
> Is there a given combination of polyline_style and fill_mode, etc ... that 
> can do this?
> Or should I resort to building a polygon by hand?
>
> Thanks in advance,
>
> Antoine
>
> ___
> users mailing list
> users@lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>
May be the bar mode can help you
x=linspace(0,%pi,10);y=sin(x);
clf;plot(x,y);e=gce();e=e.children;
e.polyline_style=6;e.bar_width=0.5;
e.background=2;
e.line_mode="off";
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] Scilab with Mac OSX El Capitan

2015-10-06 Thread Gérard BOBILLOT
Hello,

I recently upgrade my MacPro with the new OSX El Capitan (OSX 10.11). 
One result is that I cannot run Scilab any more. I have tried Scilab 5.5.2 ans 
Scilab 6.0.0 alpha. I get the following message:
«  This version of Scilab will probably fail on this system (10.11): Scilab 
requires 10.6.5 (Snow Leopard) or newer system. » with two buttons « Try anyway 
» and « Quit ». Using the buttons, nothing happens.

Any solution ?

Regards

Gérard Bobillot
gerard.bobil...@onera.fr
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] How to produce a filled staircase plot

2015-10-06 Thread Dang, Christophe
Hello,

> De : Antoine Monmayrant
> Envoyé : mardi 6 octobre 2015 00:01
>
> I'm trying to do a filled staircase plot
> (ie a staircase where the area between the staircase and the x axis is filled 
> with a solid color).
> Is there a given combination of polyline_style and fill_mode, etc ... that 
> can do this?

I tried polt2d2 (or plot2d and polyline_style=2)
With fill_mode="on" and background=2 (or whatever)
And get some weird result: only the caption is filled, not the polyline.

This is not what I expect when I read the help page
http://help.scilab.org/docs/5.5.2/en_US/polyline_properties.html

Did I misunderstand something or should I fill a bug report (is there already a 
bug report)?

--
Christophe Dang Ngoc Chan
Mechanical calculation engineer
This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient (or have received this e-mail in error), please 
notify the sender immediately and destroy this e-mail. Any unauthorized 
copying, disclosure or distribution of the material in this e-mail is strictly 
forbidden.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users