Re: [Scilab-users] Scilab + neural Networks (CNN / FCNN)

2019-08-30 Thread Tan Chin Luh

Hi Philipp,

Currently the only module which could deal with the CNN directly is 
IPCV, but it is just for inferencing, means we load the pre-trained 
model into Scilab thought IPCV and use it for forward pass (prediction). 
Currently the module could import models from caffe, tensorflow, and 
onnx (some bugs detected on important ONNX, will fix it).


The link you sent was our initial approach to try using the caffe-python 
binding and use the scilab-python (PIMS) module to import the model for 
inferencing as well. While PIMS is good for importing the python modules 
and use in Scilab, however, the syntax would be very similar to the 
Python, and some datatype are not compatible between 2. In this case, 
might as well we just use the python for training?


We also used caffe framework for CNN training before (using the binary) 
and using the Scilab to control the setting, since their binary is 
reading some external files for hyperparameters, and the google prototxt 
to design the CNN, which make the design much easier. This went quite 
well but the I could not see the future of caffe and seems that the 
attention was shifted to caffe2 which is now merge into pytorch.


This, infact is a good news, as pytorch does have a C++ interface, 
libtorch, which could be much easier to be integrated into Scilab, and 
we have done some testing on the integration and it seems working well, 
but to make this happened, I would call upon more developers for Scilab 
to contribute ideas and their experiences especially in C++ so the 
project could move fast.


In a few weeks time, I will create a git project, if any Scilab + C++ 
experts are interested, please continue this conversation, I believe we 
could make something up.


Thanks.

Regards,
Chin Luh



On 23/8/2019 4:24 PM, P M wrote:

Dear experts,

I am investigating if Scilab is capable to build a CNN or FCNN.

So far I understood the ANN-Toolbox is not able to build these neural 
network types.

Also the Neural-Network-Module does not seem to support CNN's or FCNN's.

However it seems to be possible by using caffee together with scilab's 
python toolbox.
see: 
http://scilabipcv.tritytech.com/2017/08/21/deep-learning-cnn-with-scilab-using-caffe-model/



Question:
Is there work ongoing to implement CNN's and / or FCNN's into the 
Scilab modules mentioned above?


Best regards,
Philipp

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



--
Tan Chin Luh
Trity Technologies Sdn Bhd
Tel : +603 80637737
HP : +6013 3691728

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


Re: [Scilab-users] Converting a figure to a SciCV Mat

2019-07-27 Thread Tan Chin Luh

Hi,

While I think to create animation to animated gif is the most effective 
way to share the animation, another alternative you could look at is 
using the IPCV to create a movie from it.


Please find below for the sample codes:

_
tic();

// open a file for write
n = avifile('test.avi', [640;480], 30,'xvid');

// Initiate plot and get the handle
plot(rand(100,1));
e = gce();

scf(0)

// run 100 frame random data
for cnt = 1:100
    new_data = rand(100,1); // new data
    e.children.data(:,2) = new_data;   // replace new data onto current 
plot

    im = xs2im(0);  // get the plot into a matrix
    addframe(n, im);    // add the matrix/frame into the file
end
aviclose(n);

disp(toc());


Still, the function "xs2im" will still create the intermediate file in 
the temp folder as like animaGIF. The above 100 frames took about 6s in 
i5 computer.


In this case, you could control the resolution of the video, and also 
the frame rate of the video.


Thanks.

Chin Luh

On 27/7/2019 1:52 AM, Samuel Gougeon wrote:

Hello,

Le 26/07/2019 à 19:22, stevenrjarrett a écrit :

Is there a way to convert a Scilab figure to a SciCV Mat? I had thought the
simplest way would be to convert the figure to a matrix and use the matrix
data to create the SciCV Mat, but I have not been successful finding a way
to do either.

The reason I want to convert between them is so that I can create a video
that shows data being plotted in real time. I have done this successfully by
creating the figures, writing a series of image files, and converting the
images to a video using the SciCV toolbox. As you can imagine, it is time
consuming to write that many images to the disk as only an intermediate
step, and I have been trying to find a cleaner/faster way to do it within
Scilab.


If you are really in a hurry, i am afraid that you will have to find 
an external solution, because anyway exporting figures within Scilab 
is quite slow, even in bitmap encodings. This has been reported here 
 and is still the case.


Otherwise, you can use animaGIF(), that can avoid storing all 
intermediate images, but that does not avoid creating them. So, it 
saves disk space, but not time as you request. It does not really aim 
to make video with a "normal" frame rate, although it can mimik it.


Samuel




___
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] {EXT} How to count pixels

2019-06-09 Thread Tan Chin Luh

Hi,

sorry to interrupt, the following lines should work in IPCV to count the 
white and black pixels:


1. after imread, the image return as boolean as the image is an binary 
image.


2. assume that you have previous code and imread the image and the 
scilab variable for the image is "img"


--> sum(img==%t)   // total white pixels
 ans  =
   273370.
--> sum(img==%f) // total black pixels
 ans  =
   7230.

hope this helps.

rgds,
Chin Luh

On 7/6/2019 7:03 PM, P M wrote:
... the code should work under win7 if you have the *scicv*-module 
installed via atoms.

Note that you have to "activate" scicv to use its functionshence the:
scicv_Init();
at the beginning of the code.

I wrote the code at win10, but I doubt that this has an influence.

Good luck,
Philipp


Am Fr., 7. Juni 2019 um 12:16 Uhr schrieb Jean-Philippe Grivet 
<mailto:jean-philippe.gri...@wanadoo.fr>>:


Hello Philipp,

Thank you for your program, it looks like it would do exactly what I
wanted. However (as I should have stressed before) I work under
win7. In
this environment, the only image processing toolbox is IPCV in which
several functions are lacking, namely

 scicv_Init(); matplot(); Mat_cols_get(); Mat_rows_get()

Further, in my case, img appears as a matrix of booleans (?).

I will try to download SIVP and determine the role of these functions.

Thank you,again

Jean-Philippe


---
L'absence de virus dans ce courrier électronique a été vérifiée
par le logiciel antivirus Avast.
https://www.avast.com/antivirus

___
users mailing list
users@lists.scilab.org <mailto: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



--
Tan Chin Luh
Trity Technologies Sdn Bhd
Tel : +603 80637737
HP : +6013 3691728

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


Re: [Scilab-users] IPCV - imrotate

2019-05-02 Thread Tan Chin Luh

Hi,

noted the issue.

this is due to some floating point error while computing the 
transformation matrix. Will fix in IPCV 4.1, in cooking. :)


rgds,
CL

On 30/4/2019 4:04 PM, P M wrote:

One has to enter the angle in degrees.

P.

Am Di., 30. Apr. 2019 um 08:44 Uhr schrieb Stéphane Mottelet 
mailto:stephane.motte...@utc.fr>>:


Le 29/04/2019 à 10:06, P M a écrit :

Dear developers of IPCV,
using the function   imrotate()   seems to increse the image size.
Please see following code:

img  =  zeros(10,10);
imshow(img);
size(img)
img  =  imrotate(img,90);
imshow(img);
size(img)
I could imagine that the image size changes, when one uses
rotation angles <> 90°.
But for exactly 90° this is a strange behaviour.

Best regards,
Philipp

___
users mailing list
users@lists.scilab.org  <mailto:users@lists.scilab.org>

https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users


Is the angle in degrees or radians ?

S.

-- 
Stéphane Mottelet

Ingénieur de recherche
EA 4297 Transformations Intégrées de la Matière Renouvelable
Département Génie des Procédés Industriels
Sorbonne Universités - Université de Technologie de Compiègne
CS 60319, 60203 Compiègne cedex
Tel : +33(0)344234688
http://www.utc.fr/~mottelet

___
users mailing list
users@lists.scilab.org <mailto: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



--
Tan Chin Luh
Trity Technologies Sdn Bhd
Tel : +603 80637737
HP : +6013 3691728

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


Re: [Scilab-users] IPCV - missing: imfinfo()

2019-04-26 Thread Tan Chin Luh

Hi,

Please wait for a couple of weeks for IPCV 4.x (we are skipping the 
version number to match the OPENCV lib used version number to have 
better align for both SW)


More features in IPCV 4.x going to be released soon.

Thanks.

Regards,
Chin Luh
linkedin.com/in/tanchinluh <https://www.linkedin.com/in/tanchinluh>


On 25/4/2019 5:31 PM, P M wrote:

Dear all,

I just wanted to use the imfinfo-function from the IPCV Toolbox.


The function is indicated to exist, when one opens the imread - help 
page...

...there is a link to imfinfo at the bottom of the imread help function.

However:

- help imfinfo directs to  imread help page
- using the link mentioned above results in:   Error the requested 
page could not be found.


Using imfinfo itself should be straight forward.
I guess it is something like:

info = imfinfo(filename)

or

info = imfinfo(img);   //   img = imread(filename);

But both time I get following eror message:

   at line 3 of function imfinfo
   Undefined Variable: int_imfinfo


Found with:
 - Scilab 6.0.2
 - IPCV 2.0


Any idea?
Thank you,
Philipp

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



--
Tan Chin Luh
Trity Technologies Sdn Bhd
Tel : +603 80637737
HP : +6013 3691728

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


Re: [Scilab-users] extract pixel values along a profile

2019-03-14 Thread Tan Chin Luh

Hi,

Try to replace the attached 2 files into your IPCV macros folder to 
patch the existing one and restart scilab, and the syntax should be:


improfile(S,[xc1,yc2;xc2,yc2]);

it it does not works, try to exec the sci file and run again.

hope this helps.

rgds,
CL

On 14/3/2019 10:27 PM, P M wrote:

Hi,

From an image I want to extract the pixel values along a profile.

The profile coordinates are set automatically, so that I do not have 
to click in the image.


How do I get the pixel values for that profile?

In IPCV()  I find the function:   improfile() which would do the very 
thing I want.


But this function waits for mouse clicks.

Is there somehow a way to give this function a fake mouse click?

Thanks,
Philipp

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



--
Tan Chin Luh
Trity Technologies Sdn Bhd
Tel : +603 80637737
HP : +6013 3691728



improfile.bin
Description: Binary data
//=
// IPCV - Scilab Image Processing and Computer Vision toolbox
// Copyright (C) 2017  Tan Chin Luh
//=
function [xc,yc,pixval] = improfile(S,points)
// Return profiles for the selected 2 points
//
// Syntax
// [xc,yc,pixval] = improfile(S)
//
// Parameters
// S : Image matrix in Scilab
// xc : x-coordinates for the selected points
// yc : y-coordinates for the selected points
// pixval : Correspond pixels' values along the selected points
//
// Description
//This function provides interactive way to select 2 points on an image 
//and returned with the line profile. Use left mouse click to select 2 
//points and the image profile would be computed and ploted on a new 
graph.
//
// Examples
//S = imread(fullpath(getIPCVpath() + "/images/balloons.png"));
//improfile(S);
//
// See also
//impixel
//
// Authors
    //     Tan Chin Luh
//

rhs=argn(2);
// Error Checking 
if rhs < 1; error("At least 1 arguments expected, model file and the 
prototext."); end
if rhs < 2; 

imshow(S);

[b,xc,yc]=xclick();
plot2d(xc,yc,style = -1, strf = '082');

cnt = 2;

while b ~=5 & cnt <=2
[b(cnt),xc(cnt),yc(cnt)]=xclick();
plot2d(xc(cnt),yc(cnt),style = -1,strf = '082');
plot2d([xc(cnt-1),xc(cnt)],[yc(cnt-1),yc(cnt)],style = 1,strf = 
'082');
cnt = cnt + 1;
end

else
xc = points(:,1); yc = points(:,2); cnt=3;
end

[r,c] = size(S);
//pixval = cell(cnt-1,1);
yc = r+1-yc;

for cnt2 = 2:cnt-1
//yc(cnt2) = r+1-yc(cnt2);

[mv,mi] = max(length(xc(cnt2-1):xc(cnt2)),length(yc(cnt2-1):yc(cnt2)));
if mi ==1
xcnew = xc(cnt2-1):xc(cnt2);
ycnew = linspace(yc(cnt2-1),yc(cnt2),mv)
else
ycnew = yc(cnt2-1):yc(cnt2);
xcnew = linspace(xc(cnt2-1),xc(cnt2),mv)

end
end

pixval = cell(length(xcnew),1);

for cnt3 = 1:length(xcnew)

pixtemp = S(ycnew(cnt3),xcnew(cnt3),:);
pixval{cnt3} = double(matrix(pixtemp,length(pixtemp)));
//mprintf('[x,y] = [%i,%i] \t RGB = %s 
\n',xcnew(cnt3),ycnew(cnt3),string(pixval(cnt3)));
end


if length(pixval{1}) == 3
pixvalmat = cell2mat(pixval);

pixvalmat = matrix(pixvalmat,3,double(max(size(pixval;
figure();newaxes();

plot(1:length(xcnew),pixvalmat(1,:),'r',1:length(xcnew),pixvalmat(2,:),'g',1:length(xcnew),pixvalmat(3,:),'b');
else
pixvalmat = cell2mat(pixval);
pixvalmat = matrix(pixvalmat,1,double(max(size(pixval;

figure();newaxes();
plot(1:length(xcnew),pixvalmat);

end


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


Re: [Scilab-users] atomsRemove('IPCV')

2019-03-08 Thread Tan Chin Luh

Hi,

if it is under windows, have you tried to launch the Scilab as 
Administrator? (right click on the icon, and choose run as administrator)


thanks.

rgds,
CL

On 8/3/2019 3:50 PM, P M wrote:

to make myself clearer:

- atomsRemove('IPCV')
- close Scilab
- restart Scilab
 did not remove the Toolbox.

Instead it was still on autoload

Philipp



Am Do., 7. März 2019 um 19:33 Uhr schrieb Samuel Gougeon 
mailto:sgoug...@free.fr>>:


Hello,

Le 07/03/2019 à 18:01, P M a écrit :

Mh...

atomsRemove('IPCV')  did not remove the Toolbox.


When the module is already loaded, its actual removal is done only
when restarting a next session.
If in the meanwhile you remove the folder by hand, indeed this
then yields some issues.
To cure them, either the folder can be restore, or the SCI/.atoms
files or/and SCIHOME/.atoms
ones can be cleaned (removed).

The removal procedure is safer in Scilab 6.0.2
<http://bugzilla.scilab.org/12477>. May be still not enough.

Samuel

___
users mailing list
users@lists.scilab.org <mailto: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



--
Tan Chin Luh
Trity Technologies Sdn Bhd
Tel : +603 80637737
HP : +6013 3691728

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


Re: [Scilab-users] Frequency response

2018-09-19 Thread Tan Chin Luh

Hi Claus,

If I understand you correctly (as mentioned by Rafael "I do not see how 
you can “close the loop”, other that testing your theoretical model 
against experimental data?"


1. you have a system which you have theoretical result (reference model)
2. you have another set of data which you want to compare with the 
reference model


As you're the subject expert in your own code, I will leave it to you as 
it will take time to look into them. :)


Instead, I illustrate something similar (I think) which you might be 
able to adopt into your own code.


Codes below perform following steps:
1. Create a linear model in s domain.
2. Convert the model to z domain.
3. Get the impulse response from the z model.
4. From the impulse response data, find the frequency response (in your 
case, it should be the data H that you obtained somewhere?)

5. Compare the response in 4 with the model response.

rgds,
CL

// Linear System in Time Domain
s=%s;
G  =  syslin('c',  10*s^2  ,  3*s^2  +  s  +  2);

// Discreate Model
Ts  =  0.05;   // Sampling time for discrete model
SS_z  =  cls2dls(tf2ss(G),Ts);
tz  =  [0:Ts  :50]';
u=ones(tz);
y2_step=dsimul(SS_z,u');   //Step response
u=zeros(tz);u(1)=1;
y2_imp=dsimul(SS_z,u');//Impulse response

// Compute Bode plot from Impulse Response
tau_step  =  Ts;
H  =  y2_imp;
fs  =  1/tau_step;

// Following part is the same code as earlier
b  =  poly(H($:-1:1),"z","coeff");
a  =  %z^(length(H)-1);
Gz  =  syslin('d',b,a);
Gz.dt  =  1/fs;
[F,M]=repfreq(Gz,0.001,fs/2,0.01);

// Comparison
bode(G);  // Ideal frequency response
plot(F(2:10:$),20*log10(M(2:10:$)),'r.');  // generated frequency response with 
repfreq




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


Re: [Scilab-users] Frequency response

2018-09-17 Thread Tan Chin Luh

On 18/9/2018 5:15 AM, Rafael Guerra wrote:

Chin Luh:  good to know but how does that solve Claus Futtrup specific problem?
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users

just notice that the answer similar as the one Tim provided, just a bit 
confused on Claus' comment on the "random" data:


On 17/9/2018 1:13 AM, Claus Futtrup wrote:
What I like about the Matlab example is that random data is generated 
to represent the impulse response, so this represents "any data" ... I 
need that. If Scilab cannot do it, it's OK. 


Do you refer this "random" data to the example provided?

h = rand(1,64); % impulse response <-- This?
fs  =  1000;
Nfft  =  128;
[H,F]  =  freqz(h,1,Nfft,fs);
plot(F,H);  grid  on;

If so, the equivalent scilab code would be as below:

h  =  rand(1,64);
fs  =  1000;
b  =  poly(h($:-1:1),"z","coeff");
a  =  %z^(length(h)-1);
Gz  =  syslin('d',b,a);
Gz.dt  =  1/fs;
[F,H]=repfreq(Gz,0,500,0.01);
plot(F,H); Do note that I replace the last part of semilogx plot and 
replace with plot for more simple codes.


--
Tan Chin Luh
Trity Technologies Sdn Bhd
Tel : +603 80637737
HP : +6013 3691728

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


Re: [Scilab-users] Frequency response

2018-09-17 Thread Tan Chin Luh

Hi,

I was facing similar issue sometime ago while trying to translate from 
matlab to scilab, as both of them have diff way of representation.


In Matlab/Octave, when we are using polynomial, we are defining them in 
vector/matrix form such as : num = [1 2 3 4]. The catch is here: when we 
use the s-domain, it represent 1*s^3 + 2*s^2+3*s+4, while if it is used 
in the function in z-domain, it will become 1 + 2*z^-1 + 3*z^-2 + 4*z^-3.


while in Scilab, the polynomial is represented in polynomial datatype.

So, consider following simple example:
h = [1 2 3 4];   % this is coefficient in 1 + 2*z^-1 + 3*z^-2 + 4*z^-3
fs = 1000;
Nfft = 128;
[H,F] = freqz(h,1,Nfft,fs);
plot(F,H);

In Scilab

h = [1 2 3 4];
fs = 1000;
b = poly(h($:-1:1),"z","coeff");
a = %z^(length(h)-1);
Gz = syslin('d',b,a);
Gz.dt = 1/fs;
[F,H]=repfreq(Gz,0,500,0.01);
plot(F,H);

in line 3 - b = poly(h($:-1:1),"z","coeff");  we create b in poly using 
the coefficients, we have to take note that:

--> order of h must be reversed, as poly take the coeff in ascending order
--> this line will create b as 4 +3*z +2*z^2  +z^3

To match the z-domain format, our a would not be 1 anymore, but z^3 as 
in line 4 of the code above

--> (4 +3*z +2*z^2  +z^3) / z^3  --> 1 + 2*z^-1 + 3*z^-2 + 4*z^-3

After this, the remaining codes should be straight forward.

Hope this helps.

p/s: help zpk will help u on the definition i guess.

Thanks.

rgds,
Chin Luh
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Win10.Scilab601.IPCV2.Not Loading

2018-08-24 Thread Tan Chin Luh

Hi Mike,
sorry for the details, just want to make sure the root of the issue.
the problem is most likely due to some prerequisites not installed, if 
you would like to try it again, try to install Microsoft Visual C++ 
Redistributable for Visual Studio 2015 from following link, and it 
should be able to load the lib smoothly.


https://www.microsoft.com/en-US/download/details.aspx?id=48145

hope this helps.

rgds,
CL

On 23/8/2018 7:51 PM, Michael J. McCann wrote:

Re: [Scilab-users] Win10.Scilab601.IPCV2.Not Loading CL,
Thank you for going to all this trouble. I think this is beyond my 
skills. I do mathematical engineering and business modelling and rely 
on the tools like Matlab and Scilab. If they don't come as working 
software, I'm a bit out of my depth.  I still have trouble with 
Scilab   when getting functions, which  I've written,  to be 
recognized in scripts so you can see I'm not understanding the 
interior working of these tools. I haven't tried to set up 'paths' 
since I last used DOS.


Indeed your first suggestion:
"Can u try to load the 3rd party lib and the gateway manually and 
check the output?"
poses questions: What is '3rd party lib" ? What are the commands for 
loading these things?
I have trouble understanding the other ideas because of my ignorance 
of modern compilers etc.


 So  since I have a working version of IPCV1.2 with Scilab6.0.1, which 
meets my needs so far, I'm going to stick with it and maybe try again 
with later versions  if necessary  and I'll save your suggestions for 
reference and study if then needed.

Thank you for all your efforts,
Mike.
www.mccannscience.com
==

On 23/08/2018 03:11, Tan Chin Luh wrote:

Hi Mike,



1. Try to link the ipcv dll, the file is either located in your SCI 
or SCIHOME folder:


SCIHOME + '\atoms\x64\IPCV\2.0\sci_gateway\cpp\'
or
SCI + '\contrib\IPCV\2.0\sci_gateway\cpp\'
change in to the folder which contains the dll and exec following 
command in the console.

*--> link gw_ipcv.dll*

2. Similar to the 3rd party opencv lib:

SCIHOME + '\atoms\x64\IPCV\2.0\thirdparty\opencv\windows\x64\bin\'
or
SCI + '\contrib\IPCV\2.0\thirdparty\opencv\windows\x64\bin\'

change in to the folder which contains the dll and exec following 
command in the console.

*--> link opencv_world341.dll*

let me know the output in the console.

rgds,
CL



On 21/8/2018 10:09 PM, Michael J. McCann wrote:

TanChin,
Thank you. As the only person who ever uses this personal computer I 
never thought of using a program ' as administrator'  BUT did find 
the option to do that (I never tried rt-click on a shortcut 
before!). My impression was that Scilab couldn't find the 
pathways/gateways(?) which it needed to load the installed module.


However, I removed the IPCV2.0 and installed IPCV1.2 but only after 
discovering that

atomsInstall(["IPCV" "1.2"])  did not work BUT
atomsInstall(["IPCV", "1.2"]) worked fine.
I added the comma after something flagged that it was looking for a 
string as the first variable. So now I have a version working  as 
used on the other machine and have also been able to share the work.

Thank you for the advice and the IPCV work you do.
Mike.
=

On 21/08/2018 02:10, Tan Chin Luh wrote:
Did you try to run the scilab with admin right? Do this by 
right-click on the scilab, run as administrator.



On 20/8/2018 7:29 PM, Michael J. McCann wrote:
I have Scilab6.01 on a Windows 10 machine. I have recently 
installed "IPCV" via Atoms. That went in OK but when I restart 
Scilab, the loading process only gets as far as  reporting, in the 
console,   ' load gateways'    and nothing more.
The IPCV functions don't work.   I can see that  [" IPCV,"2.0"] is 
installed.


I have IPCV working on a different Windows10machine with 
Scilab6.01 BUT I suspect it is an earlier version of IPCV


Is this a bug with IPCV2 or have I missed something?
MikeMcC.
--
Note: Email address is now 'mjmcc...@ieee.org' not 'iee.org'


___
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


--
Note: Email address is now 'mjmcc...@ieee.org' not 'iee.org'


___
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


--
Note: Email address is now 'mjmcc...@ieee.org' not 'iee.org'



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


Re: [Scilab-users] Win10.Scilab601.IPCV2.Not Loading

2018-08-22 Thread Tan Chin Luh

Hi Mike,

Can u try to load the 3rd party lib and the gateway manually and check 
the output?


1. Try to link the ipcv dll, the file is either located in your SCI or 
SCIHOME folder:


SCIHOME + '\atoms\x64\IPCV\2.0\sci_gateway\cpp\'
or
SCI + '\contrib\IPCV\2.0\sci_gateway\cpp\'
change in to the folder which contains the dll and exec following 
command in the console.

*--> link gw_ipcv.dll*

2. Similar to the 3rd party opencv lib:

SCIHOME + '\atoms\x64\IPCV\2.0\thirdparty\opencv\windows\x64\bin\'
or
SCI + '\contrib\IPCV\2.0\thirdparty\opencv\windows\x64\bin\'

change in to the folder which contains the dll and exec following 
command in the console.

*--> link opencv_world341.dll*

let me know the output in the console.

rgds,
CL



On 21/8/2018 10:09 PM, Michael J. McCann wrote:

TanChin,
Thank you. As the only person who ever uses this personal computer I 
never thought of using a program ' as administrator' BUT did find the 
option to do that (I never tried rt-click on a shortcut before!). My 
impression was that Scilab couldn't find the pathways/gateways(?) 
which it needed to load the installed module.


However, I removed the IPCV2.0 and installed IPCV1.2 but only after 
discovering that

atomsInstall(["IPCV" "1.2"])  did not work BUT
atomsInstall(["IPCV", "1.2"]) worked fine.
I added the comma after something flagged that it was looking for a 
string as the first variable. So now I have a version working  as used 
on the other machine and have also been able to share the work.

Thank you for the advice and the IPCV work you do.
Mike.
=========

On 21/08/2018 02:10, Tan Chin Luh wrote:
Did you try to run the scilab with admin right? Do this by 
right-click on the scilab, run as administrator.



On 20/8/2018 7:29 PM, Michael J. McCann wrote:
I have Scilab6.01 on a Windows 10 machine. I have recently installed 
"IPCV" via Atoms. That went in OK but when I restart Scilab, the 
loading process only gets as far as  reporting, in the console,   ' 
load gateways'    and nothing more.
The IPCV functions don't work.   I can see that  [" IPCV,"2.0"] is 
installed.


I have IPCV working on a different Windows10machine with Scilab6.01 
BUT I suspect it is an earlier version of IPCV


Is this a bug with IPCV2 or have I missed something?
MikeMcC.
--
Note: Email address is now 'mjmcc...@ieee.org' not 'iee.org'


___
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


--
Note: Email address is now 'mjmcc...@ieee.org' not 'iee.org'


___
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] Win10.Scilab601.IPCV2.Not Loading

2018-08-20 Thread Tan Chin Luh
Did you try to run the scilab with admin right? Do this by right-click 
on the scilab, run as administrator.



On 20/8/2018 7:29 PM, Michael J. McCann wrote:
I have Scilab6.01 on a Windows 10 machine. I have recently installed 
"IPCV" via Atoms. That went in OK but when I restart Scilab, the 
loading process only gets as far as reporting, in the console,   ' 
load gateways'    and nothing more.
The IPCV functions don't work.   I can see that  [" IPCV,"2.0"] is 
installed.


I have IPCV working on a different Windows10machine with Scilab6.01 
BUT I suspect it is an earlier version of IPCV


Is this a bug with IPCV2 or have I missed something?
MikeMcC.
--
Note: Email address is now 'mjmcc...@ieee.org' not 'iee.org'


___
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] Gsoc 2018 toolbox in scilab

2018-02-17 Thread Tan Chin Luh

Hi  Amit,

Greeting. I am Chin Luh, the author for Neural Network module in atoms 
portal (https://atoms.scilab.org/toolboxes/neuralnetwork/2.0). Thlde 
module is base on the book "Neural Network Design" by Hagan Martin (1st 
version) and the codes are following the pseudo code given in the book.


If you are interested, you could look into this module and implement the 
"Regularization" into the algorithms for all the FFBP  in the module, 
which is highlighted in one of the session in Andrew Ng's  machine 
learning course.


One thing you might need to be careful: In Machine Learning Course you 
attended, Prof Andrew using the notation where the training dataset 
arranged in rows, and the features arranged in columns. This is the 
reverse with this module, the book this module referred to, as well as 
the standard way python used. However, In Prof Andrew first course in 
Deep Learning specialization, he used the same notation with this module.


As this module is totally in Scilab code, I personally believe that it 
is easy to start.


Just my 2 cents, hope this helps.

Thanks.

Regards,
Chin Luh

On 16/2/2018 11:50 PM, Clément David wrote:

Hello Amit,

It would be nice to have a machine learning however you could start by taking a 
look at what's
already exists in http://atoms.scilab.org and on 
http://scilab.io/category/machine-learning . Could
you try to improve what's already existing ?

Thanks,

--
Clément

Le vendredi 16 février 2018 à 04:57 -0700, amit2rockon a écrit :

Hello everyone, Myself Amit Kumar, new to this community, I have completed
machine learning course by Andrew Ng and completed my assignment with
Matlab. I think I could have done with Scilab. I want to contribute to this
organization and also want to participate in GSoC 2018. So can anybody here
help me from where i can start? i want to implement machine learning
functions in toolboxes.



--
Sent from: 
http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
___
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] GUI programming

2018-01-24 Thread Tan Chin Luh

Hi,

You might want to look into the video tutorials:

https://www.youtube.com/watch?v=A6bMURCVfb0=PL1G9eUG4bZaJ7pvUOS568320w8GVHtGRs

Hope this helps.

Regards,
Chin Luh



On 25/1/2018 4:09 AM, Nikolay Strelkov wrote:

Dear Claus!

It seems that Scilab GUI programming is not fully described nowadays.

When I programmed my Mathieu Functions Toolbox version 4 with GUI 
 I gathered information 
from whole internet.
You can learn GUI programming by analyzing and breaking its main GUI 
file 
 
(see it's page on Forge 
 ; demo is 
available from Scilab: /? -> Scilab Demonstrations -> Mathieu 
functions -> GUI for Mathieu Function Toolbox/ ) :)


I have bookmarked some pages:

  * http://atoms.scilab.org/categories/GUI
 - you can download and
read source code of available ATOMS
  * https://wiki.scilab.org/howto/guicontrol

  * 
http://cgit.scilab.org/scilab/tree/scilab/modules/gui/demos/uicontrol.dem.sce


- uicontrols demo 1 (available from Scilab: /? -> Scilab
Demonstrations -> GUI -> Uicontrols 1/ ; locally as
/usr/share/scilab/modules/gui/demos/uicontrol.dem.sce)
  * 
http://cgit.scilab.org/scilab/tree/scilab/modules/gui/demos/cb_uicontrol_plot3d.dem.sci


- uicontrols demo 2 (available from Scilab: /? -> Scilab
Demonstrations -> GUI -> Uicontrols 2/ ; locally as
/usr/share/scilab/modules/gui/demos/cb_uicontrol_plot3d.dem.sci )
- *it's recommended starting point, I think*
  * 
http://cgit.scilab.org/scilab/tree/scilab/modules/signal_processing/macros/wfir_gui.sci


- wfir_gui() example (locally as
/usr/share/scilab/modules/signal_processing/macros/wfir_gui.sci )
  * http://www.openeering.com/sites/default/files/LHY_Tutorial_Gui.pdf

- you already know it
  * http://scilab.io/products/scilab/application-development/

  * http://scilab.ninja/scilab-recipe-4-gui-basics/
 - now offline,
but cached on Google


  * 
http://tritytech.com/courses/scilab-courses/32-creating-innovative-gui-using-scilab.html


- TrityTech present course "Creating Innovative GUI using Scilab"
you can try to contact them for materials


I have never seen comprehensive book 
 about 
programming GUI in Scilab (in any language).
So If I remember correctly I read some books about MATLAB's GUI 
(uicontrol) function and extrapolated this material to Scilab.



--
/With best regards,
Ph.D., //associate professor at MPEI 
,

IEEE member,
maintainer of Mathieu functions toolbox for Scilab 
,

Nikolay Strelkov./

2018-01-24 21:49 GMT+03:00 Claus Futtrup >:


Hi Scilabers

Is there a comprehensive manual or book (in English, or alt
German) about programming GUI in Scilab? (or a comprehensive web-page)

I've found the Openeering one (18 pages):
http://www.openeering.com/sites/default/files/LHY_Tutorial_Gui.pdf

... and I've looked at the help pages for uicontrol + run some of
the GUI demos in Scilab.

I have almost no background in GUI programming, nothing successful
anyway, but it could be nice if I could at least get some basic
GUI up running (e.g. a figure where one can manage some controls
on the left side + see the polar plot etc on the right side).

I think that what I need is not just examples. I need
explanations, and preferably something coherent that I can combine
and work with, into something that works.

I've installed GUI builder from ATOMS. In the past I've never been
happy with programming on a high level. I prefer to understand
what goes on under the hood... so GUI builder is a bit of a
desperate grasp on my part.

Best regards,
Claus

___
users mailing list
users@lists.scilab.org 

Re: [Scilab-users] Atoms login

2018-01-09 Thread Tan Chin Luh

Hi Simon,

Great to hear that. Thanks.

rgds,
Chin Luh

On 9/1/2018 5:35 PM, simon.marche...@scilab-enterprises.com wrote:

Hello,

The ATOMS toolbox cache is once again automatically refreshed every 5 
minutes, as before.


Regards,

Simon



Yes, after atomsSystemUpdates now seems like the modules are updated.


On the ATOMS page of one of your modules, change say the Description, 
and save.

Then run
--> atomsSystemUpdate() // in your session. Then
--> atomsShow yourModuleName

The displayed description is not updated. Same thing if you push new
binaries for the same version.
Things are not automatically updated as they were in last spring.

Samuel

___
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] Atoms login

2018-01-05 Thread Tan Chin Luh

Yes, after atomsSystemUpdates now seems like the modules are updated.

Thanks

rgds,
Chin Luh

On 4/1/2018 9:46 PM, Samuel Gougeon wrote:

Le 04/01/2018 à 02:54, Tan Chin Luh a écrit :

Hi Samuel,

Thanks for your details explanation.

The microdaq 1.2 seems to be listed, does it means that it has been 
manually added ?


It is very likely.
I just updated plotplots 1.0 binaries for 5.4 and 5.5 10 minutes ago 
(because of the missing macros/names file),
and reinstalling plotplots on 5.5.2 downloads the previous binaries... 
(i removed the former plotplots zip from the archives dir before 
processing).


I could somewhat understand that there is some delay beween pushing 
files and actually making them public (then this delay should be 
documented). But if we have to wait for some manual 
check/approval/operation done time to time, IMO this way is not 
workable. Or at least, also, it should be clearly documented, not 
letting thinking that things are automatic, not expecting anything 
before a documented calendar of review/check/approval...


Samuel

___
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] Atoms login

2018-01-03 Thread Tan Chin Luh

Hi Samuel,

Thanks for your details explanation.

The microdaq 1.2 seems to be listed, does it means that it has been 
manually added ?


Thanks.

Regards,
Chin Luh

On 4/1/2018 8:54 AM, Samuel Gougeon wrote:

Hello,

After this fix https://codereview.scilab.org/#/c/19273/ and up to the 
break of ATOMS at the end of July 2017, the whole ATOMS system on both 
server and client GUI sides behaved exactly as expected (for the first 
time since ATOMS exists): any online modification of a module on the 
server was immediately visible in the ATOMS GUI (after updating it).


But indeed, this normal behavior was of short duration: During the 
short access periods to ATOMS without LDAP or other logging issues, it 
is no longer working.
The issue is clearly on the server side: The file listing all modules 
available for the querying Scilab client and exported by the server is 
no longer updated. For instance, for Win64, 
http://atoms.scilab.org/6.0/TOOLBOXES/64/windows.gz unzipped and text 
edited does not include IPCV 1.2, nor plotplots 1.0 created yesterday 
with binaries also available for Scilab 6.0.


Regards
Samuel

Le 29/12/2017 à 13:47, Tan Chin Luh a écrit :

Hi,

I am facing the similar issue with Scilab IPCV 1.2 
(https://atoms.scilab.org/toolboxes/IPCV/1.2), after uploading the 
module with binaries for quite some times, the atomsGUI still showing 
the older version, which is 1.1, and atomsInstall will then install 
the old version as well. atomsSystemUpdate() does not help as well.


Any advice on what extra steps to make the updates available ?

Thanks.

Regards,
Chin Luh

On 18/11/2017 12:35 AM, Grzegorz Skiba wrote:

Dear Simon,

it seems that there is still some problem with ATOMS, after 
uploading new version of MicroDAQ toolbox isn't isn't visible in 
Module manage in Scilab - the uploaded 1.2 version and previous 
versions are not available.


The 1.2v can be accessed via web:

https://atoms.scilab.org/toolboxes/microdaq/1.2.0

but it is not possible to install it from Scilab with 
atomsInstall("microdaq");


The toolbox should be available immediately or server needs to do 
some indexing etc and will be available later?


Regards Grzegorz

2017-11-17 11:22 GMT+01:00 <simon.marche...@scilab-enterprises.com 
<mailto:simon.marche...@scilab-enterprises.com>>:


Hello,

The login issue has been fixed. There were two problems with
LDAP configuration (due to migration), and session management.

There is still a problem about email sending, probably due to a
bad configuration on the new server, we are working on it.
But it does not prevent toolbox or file (fileexchange) updates.

Sorry for the delay.

Simon Marchetto

Le 2017-11-14 20:53, Samuel Gougeon a écrit :

Hello,

 Le 26/09/2017 à 22:49, Samuel Gougeon a écrit :

Le 25/09/2017 à 23:07, Shamika Mohanan a écrit :

Hello,

Is anyone having trouble logging into their ATOMS
account? I'm
unable to log in or create a new account.


Neither are we. Please have a look at


http://mailinglists.scilab.org/Scilab-users-Cannot-access-module-at-atom-scilab-tt4036831.html

<http://mailinglists.scilab.org/Scilab-users-Cannot-access-module-at-atom-scilab-tt4036831.html>

[1]


 There are some slight changes on this side, despite it is still
impossible to update existing modules and filesets and to
create new
ones:
 When login, we no longer get neither a blank page without
actually
being logged, nor -- more recently -- getting any red
messages about
internal errors (likely addressed to debuggers).

 But there is now a kind of status inversion:
 Let's logging. Then, we are directed back to the ATOMS
portal with

 displayed on the top right corner, and still without any admin
rights. The strange thing is that
 when we then click on "create an account" while we have
already one
and we just tried to logging,
 we get on the top right corner

 So, we have been actually acknowledged by the loggin process!
 Unfortunately, clicking  on Preferences does not lead to the
dedicated personal page.
 No actual page uses the user profile and the SESSION_ID.

 This stands also after having removed all old cookies, that
could
prevent a sane ATOMS session after the migration of the
ATOMS server.

 Regards
 Samuel Gougeon



Links:
--
[1]

http://mailinglists.scilab.org/Scilab-users-Cannot-access-module-at-atom-scilab-tt4036831.html

<http://mailinglists.scilab.org/Scilab-users-Cannot-access-module-at-atom-scilab-tt4036831.html>

___
users mailing list

Re: [Scilab-users] Atoms login

2017-12-29 Thread Tan Chin Luh

Hi,

I am facing the similar issue with Scilab IPCV 1.2 
(https://atoms.scilab.org/toolboxes/IPCV/1.2), after uploading the 
module with binaries for quite some times, the atomsGUI still showing 
the older version, which is 1.1, and atomsInstall will then install the 
old version as well. atomsSystemUpdate() does not help as well.


Any advice on what extra steps to make the updates available ?

Thanks.

Regards,
Chin Luh

On 18/11/2017 12:35 AM, Grzegorz Skiba wrote:

Dear Simon,

it seems that there is still some problem with ATOMS, after uploading 
new version of MicroDAQ toolbox isn't isn't visible in Module manage 
in Scilab - the uploaded 1.2 version and previous versions are not 
available.


The 1.2v can be accessed via web:

https://atoms.scilab.org/toolboxes/microdaq/1.2.0

but it is not possible to install it from Scilab with 
atomsInstall("microdaq");


The toolbox should be available immediately or server needs to do some 
indexing etc and will be available later?


Regards Grzegorz

2017-11-17 11:22 GMT+01:00 >:


Hello,

The login issue has been fixed. There were two problems with LDAP
configuration (due to migration), and session management.

There is still a problem about email sending, probably due to a
bad configuration on the new server, we are working on it.
But it does not prevent toolbox or file (fileexchange) updates.

Sorry for the delay.

Simon Marchetto

Le 2017-11-14 20:53, Samuel Gougeon a écrit :

Hello,

 Le 26/09/2017 à 22:49, Samuel Gougeon a écrit :

Le 25/09/2017 à 23:07, Shamika Mohanan a écrit :

Hello,

Is anyone having trouble logging into their ATOMS
account? I'm
unable to log in or create a new account.


Neither are we. Please have a look at


http://mailinglists.scilab.org/Scilab-users-Cannot-access-module-at-atom-scilab-tt4036831.html



[1]


 There are some slight changes on this side, despite it is still
impossible to update existing modules and filesets and to
create new
ones:
 When login, we no longer get neither a blank page without
actually
being logged, nor -- more recently -- getting any red messages
about
internal errors (likely addressed to debuggers).

 But there is now a kind of status inversion:
 Let's logging. Then, we are directed back to the ATOMS portal
with

 displayed on the top right corner, and still without any admin
rights. The strange thing is that
 when we then click on "create an account" while we have
already one
and we just tried to logging,
 we get on the top right corner

 So, we have been actually acknowledged by the loggin process!
 Unfortunately, clicking  on Preferences does not lead to the
dedicated personal page.
 No actual page uses the user profile and the SESSION_ID.

 This stands also after having removed all old cookies, that could
prevent a sane ATOMS session after the migration of the ATOMS
server.

 Regards
 Samuel Gougeon



Links:
--
[1]

http://mailinglists.scilab.org/Scilab-users-Cannot-access-module-at-atom-scilab-tt4036831.html



___
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



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


Re: [Scilab-users] guibuilder 4.1/4.0.1 reload problem

2017-12-02 Thread Tan Chin Luh
Thanks for reporting the bug, and also thanks Samuel for helping in 
debugging this issue.


rgds,
CL

On 2/12/2017 1:33 AM, Blaise wrote:

Yes! Now it works perfectly!
Thank you for helping me guys.




--
Sent from: 
http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
___
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] guibuilder 4.1/4.0.1 reload problem

2017-12-01 Thread Tan Chin Luh

please try the latest 4.2.1.
thanks

rgds,
CL

On 1/12/2017 10:22 PM, Blaise wrote:

Hello,


It will be great if you could record the video on what is happening,
then i should give me some clues on what is happening.

This is the record of the issue:
https://drive.google.com/open?id=14rL8UsC3pdSM7dBV1StkDVSRVwIW3qE3

Cheers



--
Sent from: 
http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
___
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] guibuilder 4.1/4.0.1 reload problem

2017-12-01 Thread Tan Chin Luh

Hi,

I tried your gui-test.sce by guibuilder('gui-test.sce'), and it seems to 
be alright. In fact the previous warning does not harm this as well. The 
4.2 is just to update the version number shown and get rid of the 
annoying but un-harmful warning.


It will be great if you could record the video on what is happening, 
then i should give me some clues on what is happening.


Thanks.

rgds,
Chin Luh


On 1/12/2017 7:32 PM, Blaise wrote:

hello,


could you try to look into the guibuilder module folder, and check the
following:
1. the subfolder of the guibuilder, is it 4.0.1 or 4.1?
2. going into the folder, and click on the readme.txt, check whether it
looks like following:

1. 4.1.
2. It shows what you wrote.

In the meantime I saw your new guibuilder 4.2 release, so I downloaded it
and put it in the contrib folder manually due to the fact, that
atomsInstall('guibuilder') installs the 4.1 version.
The new guibuilder pallete window is named 4.2 now.
When I try to open a gui file, the warnings actually do not show, but the
loaded gui window either. Just the objects are loaded, but it was also
happening on the 4.1 version.

I do not suppose it is a problem with my computer, since I tried to reload a
gui file on another one too (but on the 4.1 guibuilder version) and the
result was the same.



--
Sent from: 
http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
___
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] guibuilder 4.1/4.0.1 reload problem

2017-11-30 Thread Tan Chin Luh

hi,

could you try to look into the guibuilder module folder, and check the 
following:

1. the subfolder of the guibuilder, is it 4.0.1 or 4.1?
2. going into the folder, and click on the readme.txt, check whether it 
looks like following:


*
GUI Builder is a Graphic User Interface Builder  under Scilab.

The program allows you to build your GUI quickly, and the code for the 
gui would be generated automatically.


*Version 4.1 (5 May 2017) by Tan CL*
1. Bug Fix : Fix the issue of error during reloading the generated GUI

Version 4.0.1 (21 Feb 2017) by Tan CL
1. Bug Fix : Fix the issue of axes not shown on generated GUI
2. Bug Fix : Changes on folder version name and some descriptions updates
*

Thanks.

rgds,
Chin Luh (Tan CL)

On 1/12/2017 5:07 AM, Blaise wrote:

The warning occurs no matter what gui file i try to open. I can create a new
gui, I can save it, I can run it, but I cannot open it to add changes.


It is hard to reproduce and help debugging without the actual GUI's file.

This is an example of a gui file I created with my guibuilder:
https://drive.google.com/open?id=1c8OoHmNSgC8-lNkBkkITUnC99EPj44hV
There should be only a button called "Test" which displays in the console a
message 'test'.



--
Sent from: 
http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
___
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] Radon transform

2017-11-15 Thread Tan Chin Luh

Hi,

If you are using the Scilab 6, you can consider using IPCV "imradon" 
function.


another implementation in scilab code attached in this email, radon.sci. 
This is pretty slow as it is using a for loop if you were to plot from 
0:179 degree.  this function will need nan toolbox.


hope this helps.

rgds,
CL





On 15/11/2017 8:01 PM, Jean-Philippe Grivet wrote:

Hello,

Does an implementation of the Radon transform exist in Scilab, similar 
to the Matlab

"radon" function ? Would anybody be willing to share a homemade version ?

Thank you for your input
JP Grivet


---
L'absence de virus dans ce courrier électronique a été vérifiée par le 
logiciel antivirus Avast.

https://www.avast.com/antivirus

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



function [RT,Xp] = radon(I,theta)
 [m, n] = size (I);
//pause
// center of image
xc = floor ((m+1)/2);
yc = floor ((n+1)/2);

// divide each pixel into 2x2 subpixels

d = matrix (I,[1 m 1 n]);
d = d([1 1],:,[1 1],:);
d = matrix (d,[2*m 2*n])/4;

b = ceil (sqrt (sum (size (I).^2))/2 + 1);
xp = [-b:b]';
sz = size(xp);

[X,Y] = ndgrid (0.75 - xc + [0:2*m-1]/2,0.75 - yc + [0:2*n-1]/2);

X = X(:)';
Y = Y(:)';
d = d(:)';

th = theta*%pi/180;

for l=1:length (theta)
// project each pixel to vector (-sin(th),cos(th))
Xp = -sin (th(l)) * X + cos (th(l)) * Y;

ip = Xp + b + 1;

k = floor (ip);
frac = ip-k;

RT(:,l) = nan_accumarray (k',d .* (1-frac),sz) + nan_accumarray (k'+1,d 
.* frac,sz);
end
endfunction
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Google Static Maps using IPCV imread function - help

2017-10-29 Thread Tan Chin Luh

Hi Dave,

it is possible, try this:
url = 
"https://maps.googleapis.com/maps/api/staticmap?center=40.714%2c%20-73.998=12=400x400=your_API_key;

fn = getURL(url);
S imread(fn);
imshow(S);


Hope this helps.

p/s: imread suppose to be able to read in the image direct from the web 
link, but due to a stupid mistake, it only works for http but not https 
for now, will fixed it.


rgds,
CL




On 30/10/2017 6:36 AM, David Brant wrote:


Hi

Is it possible to access and plot google static maps in scilab using 
the IMREAD function in IPCV?


The scilab examples I have come across require the path and filename.

This can be done in matlab but I can’t manage to convert the code to 
scilab.


https://uk.mathworks.com/matlabcentral/fileexchange/27627-zoharby-plot-google-map

I would just like to display something simple and build from there.

Regards, Dave


___
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] ?==?utf-8?q? Changes in command "abort"

2017-06-06 Thread Tan Chin Luh
I noticed similar behavior under windows randomly. When it happened, the 
cursor will stay close together w/o line break and I could not continue 
using the session.


I will try to see whether I could reproduce this behavior.

CL


On 6/6/2017 10:37 PM, Adelson Oliveira wrote:
Looking for a simple example, I realize there must be some more 
complex reason for the observed behaviour with command "abort". 
Attempts with very simple scripts did not reproduce the problem. As 
soon as I have more information I'll post it here (plus examples).


Thanks in advance,



2017-06-06 11:12 GMT-03:00 Antoine Monmayrant >:


Hello,

Could you provide us with a minimum working example of this behavior?
Because on my setups (Win7 or Ubuntu 16.04->17.04), the abort
command of scilab 6.0 seems to work like it used to on scilab 5.x.

Cheers,

Antoine


Le Mardi, Juin 06, 2017 15:30 CEST, Adelson Oliveira
> a
écrit:

> In Scilab 6.0.0, the command "abort" seems to have changed its
action. Now,
> "abort" interrupts a script but do not return to level 0, that
is, it does
> not return the prompt to the user to take other actions...
>
> Is this a bug?
>
> Here RHEL 6.5, Linux. Using the binary downloaded from scilab's
home page.
>
> Thanks

___
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] {EXT} Handling of special characters like °

2017-05-29 Thread Tan Chin Luh
I think this is the utf-8 encoding, which 194 is the starting byte for 2 
bytes sequence to represent a character.


rgd,
CL

On 29/5/2017 4:15 PM, Dang Ngoc Chan, Christophe wrote:

Hello,


De : users [mailto:users-boun...@lists.scilab.org] De la part de JLan
Envoyé : samedi 27 mai 2017 10:21

Is there a good explanation for this behavior? [...]

--> d=ascii('°')
  d  =
  194.   176.

I've got the same behaviour here and I think this deserves a bug report.

Regards

--
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



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


Re: [Scilab-users] GUI Builder 4.0.1 for Scilab 6.0

2017-05-05 Thread Tan Chin Luh

Hi,

The issue was caused by the changes in code generation for a better 
visualization during the GUI start up. If you notice carefully, your 
Simulation_v1.1.sce will be shown up with all components ready while 
Simulation_v2.6.sce will show the figure first, and the components would 
be loaded one by one.


I had overlooked the reloading the generated GUI file in new format. 
Fixed in ver 4.1.


Currently GUI generated in Scilab 6 is not backward compatible yet, I 
will find some time to update the version 3 for Scilab 5.5.2.


Thanks.

Regards,
Tan Chin Luh

On 4/5/2017 6:32 PM, Frieder Nikolaisen wrote:


Dear Antoine,

yes. I stick to Scilab 5.5. I will copy this message to the report.

Cheers

Frieder

Am 2017-05-04 11:55, schrieb amonm...@laas.fr:


Dear Frieder,

In Scilab 6.0 a breaking change was introduced: adding an empty 
matrix to a constant now gives an empty matrix, not a constant.
This causes a lot of issues with existing codes that relied on the 
old behaviour.
Apparently, this is the case for GUI Builder that was not properly 
refactored for Scilab 6.0.

I think you should report this to the maintainer of the module.

Hope it helps,

Antoine


Le 04/05/2017 à 09:13, Frieder Nikolaisen a écrit :


Dear Community,

I am using the GUI Builder again (last time Oktobre 2016), now with 
Scilab 6.0.0.


I started to Design the interface, generated the GUI. Had the GUI 
run and wanted to reload it. But:



--> guibuilder
operation -: Warning adding a matrix with the empty matrix will give 
an empty matrix result.
operation +: Warning adding a matrix with the empty matrix will give 
an empty matrix result.

at line60 of function guigetfile
at line 4 of function openfile
at line 9 of function open_existing_gui

':': Wrong type for argument 1: Real scalar expected.

And with the old version I am used to (but its still desigend with 
Scilab 6):


START GUI Builder 3.0 for Scilab 5.5
Load macros
Load help
Type "guibuilder" to start the GUI


-->guibuilder
  !--error 21
ungültiger Index.
at line   8 of function openfile called by :
at line   9 of function open_existing_gui called by :
= gcbo; end;gcbo = 
getcallbackobject(118);open_existing_gui(handles);if 
exists("%oldgcbo") then gcbo = %oldgcbo; else clear gcbo; end

while executing a callback

The file is attached.

Scilab 5.5 and 6 open the programm with save and run. But not with 
the Builder.


*Whats wrong?*

Best regards

Frieder



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


--
+++

  Antoine Monmayrant LAAS - CNRS
  7 avenue du Colonel Roche
  BP 54200
  31031 TOULOUSE Cedex 4
  FRANCE

  Tel:+33 5 61 33 64 59
  
  email :antoine.monmayr...@laas.fr

  permanent email :antoine.monmayr...@polytechnique.org

+++




___
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] IPCV & sciCV

2017-04-25 Thread Tan Chin Luh

Hi Philipp,

I believe all the developers (not just image and vision) are working on 
their topics for weeks, months or even years before the release of a 
module to public. It is good that we have atoms portal so that we could 
know who else working on the same fields and exchange ideas from there.


As for the aim for the modules, I believe all the modules should have 
the same ultimate aim: to make a good image processing and computer 
vision tools for Scilab, and possibly, replace Matlab. :)


From my opinion, the crash of the function name are quite common, for 
example, imshow in sip using scilab graphic, using tcl/tk in sivp, using 
both in IPCV, and using OpenCV highgui in sciCV. It depends on how the 
developers want it to be. For the moment, I disable the atomsAutoload 
for both modules and load it manually whenever I need to avoid this 
problem.


As for the combine effort, what I could say is everything is possible 
with OpenSource. Someday, somehow, Scilab image processing and computer 
vision shall be taking over Matlab for this. :)


Regards,
Chin Luh



On 25/4/2017 9:44 PM, Philipp Mühlmann wrote:

Hi developers,

am I to wrong to ask if the aim for IPCV and sciCV is the same?

Both toolboxes are quite welcome, but some confusion might occur if 
both toolboxes are installed.


In fact, some functions are already named the same...e.g.: imread, imwrite

imread in sciCV can have flags, in IPCV it can not.

...just to mention.

I am about to ask, if it wouldn't make sence to combine the efforts, 
and create only one powerful toolbox enabling openCV functionality to 
Scilab.

but...maybe there are good reasons for not doing so...


Best Regards,
Philipp


___
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] Scilab Computer Vision Module

2017-04-25 Thread Tan Chin Luh

Hi Simon,

Thanks for your comments. Just to add, IPCV is modified from SIVP, with 
extra features. 1-2 functions were taken from IPD and SIP quite some 
time ago.


From my opinion, the common issues of all the module above are :
1. Distributing the binary cross platform, which always give the issue 
of lib version.
2. Functions from the OPENCV are "link" to Scilab with individual 
gateway, which lead to the limited functions depending on the developer.

3. Data passing and sharing between Scilab and OpenCV

From the look of it, the scicv seems to have solved the first 2 issues, 
and near to 1k functions in OPENCV seems to have included in the dll, 
which I believe it break the bottle neck of which others (including me) 
facing. I wonder was it hand-coded? As for number 3, I believe everyone 
might have different opinion.


Yes you're right, for the moment there should be more modules, as OpenCV 
functions are being used in different functions to perform a high level 
task in Scilab, which I believe all developers would have their own way 
to do so. Eventually I believe once the framework/basic have setup, we 
could move towards it.


Just my 2 cents, sorry if any of my statements sound wrong.

Thanks.

Regards,
Chin Luh



On 25/4/2017 4:35 PM, simon.marche...@scilab-enterprises.com wrote:

Hello,

Thanks very much for your support.

I was also very impressed about the new IPCV module, the number and 
quality of available functions ! Particularly those related to GUI 
manipulation, that we really missed, in comparison with Matlab.

We really appreciate your work.

For years we have been wanting to provide and support an image 
processing toolbox, because this kind of toolboxes is among the most 
used, at least downloaded, by the Scilab community.


Yes indeed there are some image processing toolboxes now, especially 
based on OpenCV, but no so much, if you compare with the huge number 
available for Python.
For me several (good) toolboxes is definitely better than one at this 
moment. And they can have all different purposes, and follow different 
choices in design.


About hidden functions in sciCV, they will be more and more 
documented, version after version.


Regards,

Simon Marchetto


Le 2017-04-25 05:52, Tan Chin Luh a écrit :

Hi,

It is great to have the new computer vision released on atoms,
especially a module which is created by Scilab Enterprises.

After so long there are many image processing and computer vision
modules in atoms, which have their pros and cons, and this new module
finally allows the call of almost all functions (if not all :) ) to
the OpenCV 2.4.13 through its gateway function although not all are
documented. I believe it will be coming very soon.
 To make it better I think we could share some of our finding of the
"hidden" functions" while waiting for the module update, the following
code perform the image inpaint algo:

scicv_Init();

S = imread(getSampleImage("blobs.jpg"));

// Creating mask to remove the object at 2nd row, 2nd col. This would
be easier after the support of the insertion for Mat implemented as
stated in help file
m1 = uint8(zeros(Mat_rows_get(S),Mat_cols_get(S)));
m1(110:200,150:250) = 255;
imwrite('mymask.jpg',m1);

mask = imread('mymask.jpg',CV_LOAD_IMAGE_GRAYSCALE);

S2 = inpaint(S,mask,3,INPAINT_NS);
matplot(S2)

 Regards,
 Chin Luh


___
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] Scilab Computer Vision Module

2017-04-24 Thread Tan Chin Luh

Hi,

It is great to have the new computer vision released on atoms, 
especially a module which is created by Scilab Enterprises.


After so long there are many image processing and computer vision 
modules in atoms, which have their pros and cons, and this new module 
finally allows the call of almost all functions (if not all :) ) to the 
OpenCV 2.4.13 through its gateway function although not all are 
documented. I believe it will be coming very soon.


To make it better I think we could share some of our finding of the 
"hidden" functions" while waiting for the module update, the following 
code perform the image inpaint algo:


scicv_Init();

S  =  imread(getSampleImage("blobs.jpg"));

// Creating mask to remove the object at 2nd row, 2nd col. This would be 
easier after the support of the insertion for Mat implemented as stated 
in help file

m1  =  uint8(zeros(Mat_rows_get(S),Mat_cols_get(S)));
m1(110:200,150:250)  =  255;
imwrite('mymask.jpg',m1);

mask  =  imread('mymask.jpg',CV_LOAD_IMAGE_GRAYSCALE);

S2  =  inpaint(S,mask,3,INPAINT_NS);
matplot(S2)


Regards,
Chin Luh







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


[Scilab-users] Image Processing and Computer Vision Toolbox

2017-04-05 Thread Tan Chin Luh

Hi all,

Just uploaded IPCV 1.1 (Image Processing and Computer Vision Toolbox for 
Scilab 6.0) to atoms portal, with some new features such as Feature 
Detection, Description and Matching.


Feedback are welcome.

Regards,
Chin Luh

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


Re: [Scilab-users] Define numerator and denominator of transfer function as variables in Xcos (DLR block)

2017-04-02 Thread Tan Chin Luh

you're welcome.
anyway it should be a better way to construct the denominator, do let me 
know if you find a better way. :)


rgds,
CL


On 2/4/2017 12:22 AM, Nikolay Strelkov wrote:

Dear Tan Chin Luh!

Thank you very much.
It works as expected!
The problem is solved.

--
/With best regards,
Ph.D., //associate professor at MPEI 
<http://mpei.ru/lang/en/Pages/default.aspx>,

IEEE member,
maintainer of Mathieu functions toolbox for Scilab 
<http://atoms.scilab.org/toolboxes/Mathieu/>,

Nikolay Strelkov./

2017-04-01 17:23 GMT+03:00 Tan Chin Luh <chin...@tritytech.com 
<mailto:chin...@tritytech.com>>:


Hi,

If I understand correctly, you would like to create the filter in
Scilab, and directly access from Xcos?
if so, u could use the syslin object to do so.

1. Create the syslin obj
h1 = wfir("lp",2,[.2 0],"re",[0 0])
h2 = wfir("hp",3,[.1 0],"re",[0 0])
num1 = poly(h1,'z','coeff')
d = ones(1,size(h1,2)+1)
d(1:$-1) = 0
den1 = poly(d,'z','coeff')
H1 = syslin('d',num1,den1)
num2 = poly(h2,'z','coeff')
d = ones(1,size(h2,2)+1)
d(1:$-1) = 0
den2 = poly(d,'z','coeff')
H2 = syslin('d',num2,den2)

2. In Xcos
use H1.num in the numerator block for LPF, H1.den in the
denominator for the LPF, same for the HPF.

Hope this helps.

rgds,
CL


On 1/4/2017 9:53 PM, Nikolay Strelkov wrote:

Anybody?
Dear Tim, do you have any idea?

--
/With best regards,
Ph.D., //associate professor at MPEI
<http://mpei.ru/lang/en/Pages/default.aspx>,
IEEE member,
maintainer of Mathieu functions toolbox for Scilab
<http://atoms.scilab.org/toolboxes/Mathieu/>,
Nikolay Strelkov./

2017-03-23 14:27 GMT+03:00 Nikolay Strelkov <n.strel...@gmail.com
<mailto:n.strel...@gmail.com>>:

Dear all!

I'm playing with simple digital filtering in Xcos 5.5.2.
I have two filters - low-pass and high-pass, connected in series.

Xcos does not have convolution block.
So I write FIR transfer function
<https://ccrma.stanford.edu/%7Ejos/fp/FIR_Transfer_Function.html>
manually from impulse response function.
I get impulse response functions from wfir function.

Let's assume that we have two simple filters with impulse
responses:
h1 = [0.37419570.3741957]; // it's low-pass filter from
h1 = wfir("lp",2,[.2 0],"re",[0 0])
and
h2 = [- 0.18709790.8  - 0.1870979]; // it's high-pass
filter h2 = wfir("hp",3,[.1 0],"re",[0 0])

I convert them to DLR
<https://help.scilab.org/docs/5.5.2/en_US/DLR.html> SISOs and
get:
H1(z) = 0.3741957*z^-1 + 0.3741957*z^-2 = ( 0.3741957*z +
0.3741957 ) / (z^2);
H2(z) = -0.1870979*z^-1 + 0.8*z^-2  - 0.1870979*z^-3 = (
-0.1870979*z^2 + 0.8*z  - 0.1870979*z ) / (z^3);
and place their numerator and denominator to the
corresponding DLR blocks.
Model is in attachment. It's an illustration, not real world
example.

I have a question. How I can automate the aforementioned
process programmatically?
I tried to create numerator and denominator with poly
function and as strings, but Xcos does not support these
types in DLR settings.

--
/With best regards,
Ph.D., assistant professor at MPEI
<http://mpei.ru/lang/en/Pages/default.aspx>,
IEEE member,
maintainer of Mathieu functions toolbox for Scilab
<http://atoms.scilab.org/toolboxes/Mathieu/>,
Nikolay Strelkov./




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


___ users mailing list
users@lists.scilab.org <mailto:users@lists.scilab.org>
http://lists.scilab.org/mailman/listinfo/users
<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] Define numerator and denominator of transfer function as variables in Xcos (DLR block)

2017-04-01 Thread Tan Chin Luh

Hi,

If I understand correctly, you would like to create the filter in 
Scilab, and directly access from Xcos?

if so, u could use the syslin object to do so.

1. Create the syslin obj
h1 = wfir("lp",2,[.2 0],"re",[0 0])
h2 = wfir("hp",3,[.1 0],"re",[0 0])
num1 = poly(h1,'z','coeff')
d = ones(1,size(h1,2)+1)
d(1:$-1) = 0
den1 = poly(d,'z','coeff')
H1 = syslin('d',num1,den1)
num2 = poly(h2,'z','coeff')
d = ones(1,size(h2,2)+1)
d(1:$-1) = 0
den2 = poly(d,'z','coeff')
H2 = syslin('d',num2,den2)

2. In Xcos
use H1.num in the numerator block for LPF, H1.den in the denominator for 
the LPF, same for the HPF.


Hope this helps.

rgds,
CL

On 1/4/2017 9:53 PM, Nikolay Strelkov wrote:

Anybody?
Dear Tim, do you have any idea?

--
/With best regards,
Ph.D., //associate professor at MPEI 
,

IEEE member,
maintainer of Mathieu functions toolbox for Scilab 
,

Nikolay Strelkov./

2017-03-23 14:27 GMT+03:00 Nikolay Strelkov >:


Dear all!

I'm playing with simple digital filtering in Xcos 5.5.2.
I have two filters - low-pass and high-pass, connected in series.

Xcos does not have convolution block.
So I write FIR transfer function

manually from impulse response function.
I get impulse response functions from wfir function.

Let's assume that we have two simple filters with impulse responses:
h1 = [0.37419570.3741957]; // it's low-pass filter from h1 =
wfir("lp",2,[.2 0],"re",[0 0])
and
h2 = [- 0.18709790.8  - 0.1870979]; // it's high-pass filter
h2 = wfir("hp",3,[.1 0],"re",[0 0])

I convert them to DLR
 SISOs and get:
H1(z) = 0.3741957*z^-1 + 0.3741957*z^-2 = ( 0.3741957*z +
0.3741957 ) / (z^2);
H2(z) = -0.1870979*z^-1 + 0.8*z^-2  - 0.1870979*z^-3 = (
-0.1870979*z^2 + 0.8*z  - 0.1870979*z ) / (z^3);
and place their numerator and denominator to the corresponding DLR
blocks.
Model is in attachment. It's an illustration, not real world example.

I have a question. How I can automate the aforementioned process
programmatically?
I tried to create numerator and denominator with poly function and
as strings, but Xcos does not support these types in DLR settings.

--
/With best regards,
Ph.D., assistant professor at MPEI
,
IEEE member,
maintainer of Mathieu functions toolbox for Scilab
,
Nikolay Strelkov./




___
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] Issue with Using atomsTest

2017-03-22 Thread Tan Chin Luh

Hi Samuel,

What I did for the Toolbox Skeleton was:
1. Compile it
2. Manually zip it
3. atomsInstall the zip file.

Then I could use the test_run and atomsTest to see the result.

Thanks.

Regards,
Chin Luh


On 23/3/2017 8:12 AM, Samuel Gougeon wrote:

Hi,

Le 22/03/2017 à 04:54, Tan Chin Luh a écrit :

Hi,

Just to check whether anyone encounter issues with the atomsTest 
function.


When running the test_run, all the tests passed. However, when 
running the atomsTest, all tests fail with the error: failed: Slave 
Scilab exited with error code 1. the log file gives :


Start Toolbox Skeleton
Load macros
Load gateways
Load Java libraries
Load help
Load demos

Start Toolbox Skeleton
WARNING: Toolbox skeleton library is already loaded
at line15 of executed file 
D:\scilab\scilab-6.0.0\contrib\toolbox_skeleton\0.1.0\loader.sce


exec: error on line #67: "Redefining permanent variable." Remove help 
chapter


I don't know how you get this error, because i am unable to load the 
Toolbox_skeleton:
it is provided without any loader. It must be built before, and it 
requires a compiler.


But I did a test for another toolbox, namely with stixbox that has 
only macros.
stixbox is already provided for Scilab 6.0, but all its tests fail 
whatever is the way running them.
The reason is that its macros directory includes the lib file as 
generated by genlib(),
but most of .bin files are missing, as if they were removed after the 
compilation!
So, most of its functions are actually unknown, as documented when 
using the

"show_error" test_run() option.

As a consequence, i am not sure that there is any generic bug about 
test_run() or atomsTest().
Here, clearly, the error is from the packaging of the /stixbox 2.5/ 
ATOMS module.


But may be i tried with the bad guy and most of other modules are OK. 
Except Toolbox_skeleton as bad.


Samuel









How to reproduce:

1. Install any Scilab 6 module with unittest with atoms

2. run atomsTest and test_run to see the differences.


Thanks.


rgds,
CL




___
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] Issue with Using atomsTest

2017-03-22 Thread Tan Chin Luh

Hi Clément,

Thanks for your reply. Bug reported : 
http://bugzilla.scilab.org/show_bug.cgi?id=15094


Regards,
Chin Luh


On 22/3/2017 10:08 PM, Clément David wrote:

Hello Chin Luh,

Thanks for reporting that, it seems to be a bug on our side ; could your report 
it please ?

--
Clément

Le mercredi 22 mars 2017 à 11:54 +0800, Tan Chin Luh a écrit :

Hi,

Just to check whether anyone encounter issues with the atomsTest function.

When running the test_run, all the tests passed. However, when running
the atomsTest, all tests fail with the error: failed: Slave Scilab
exited with error code 1. the log file gives :

Start Toolbox Skeleton
  Load macros
  Load gateways
  Load Java libraries
  Load help
  Load demos

Start Toolbox Skeleton
WARNING: Toolbox skeleton library is already loaded
at line15 of executed file
D:\scilab\scilab-6.0.0\contrib\toolbox_skeleton\0.1.0\loader.sce

exec: error on line #67: "Redefining permanent variable." Remove help
chapter


How to reproduce:

1. Install any Scilab 6 module with unittest with atoms

2. run atomsTest and test_run to see the differences.


Thanks.


rgds,
CL




___
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


[Scilab-users] Issue with Using atomsTest

2017-03-22 Thread Tan Chin Luh

Hi,

Just to check whether anyone encounter issues with the atomsTest function.

When running the test_run, all the tests passed. However, when running 
the atomsTest, all tests fail with the error: failed: Slave Scilab 
exited with error code 1. the log file gives :


Start Toolbox Skeleton
Load macros
Load gateways
Load Java libraries
Load help
Load demos

Start Toolbox Skeleton
WARNING: Toolbox skeleton library is already loaded
at line15 of executed file 
D:\scilab\scilab-6.0.0\contrib\toolbox_skeleton\0.1.0\loader.sce


exec: error on line #67: "Redefining permanent variable." Remove help 
chapter



How to reproduce:

1. Install any Scilab 6 module with unittest with atoms

2. run atomsTest and test_run to see the differences.


Thanks.


rgds,
CL




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


Re: [Scilab-users] scilab beta tester

2017-03-21 Thread Tan Chin Luh

Hi,

This is already in the plan, just need time to get it up.
There are a few things in the development pipeline:
1. currently the codes are still the mix of C and C++ api, cleaning up 
required.
2. move to OpenCV 3.2, which is already under testing, however, this 
might not be friendly to the linux user as they need to compile their 
own opencv3

3. move to scilab api 6
4. error handling, currently not much implemented

For the test, it was some tests last time but after changing the codes 
to cater for more datatypes to match most of the opencv datatype, the 
test codes need to be rewritten. If you notice, quite some functions 
could now be directly applied to RGB instead of only gray.  Functions in 
opencv (or more precise, different ip functions) will only allow certain 
datatype to passed to it as well.


Thanks.

rgds
CL


On 22/3/2017 1:14 AM, Antoine Monmayrant wrote:

Le Mardi, Mars 21, 2017 16:18 CET, Philipp Mühlmann  a 
écrit:
  

Dear Scilab developers,

as Antoine offered beeing beta tester for Image Processing Toolbox I wonder
if toolbox developers could provide some code along with their toolbox for
testing the toolbox at other PC's or OS.

Well, according to the wiki: https://wiki.scilab.org/howto/Create%20a%20toolbox 
, tests are not compulsory but strongly recommended.

Antoine


Just to check if the toolbox functions all work, one could put samples for
each function into one sci-script and store this script together with the
toolbox.

Potential users could run just this demo-script to check if all functions
work fine, automatically become some kind of beta tester.

What do you think?

Best regards,
Philipp

___
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] ?= Install image processing toolbo

2017-03-21 Thread Tan Chin Luh

Hi,


I faced case #1: Ubuntu 16.04 with recent kernel.
The thing with Atoms is that you don't go and check the website, you just 
install and are left wondering why this module just killed your scilab install. 
It's a fairly bad first experience and I think it turns away some potential 
users.
I've put that in the "Additional build instructions", but apparently it 
is just visible for the maintainers. I should have put it in the 
description.

Do you think it would be possible to design your atoms module to warn users of 
the issue and workaround?
This could be done in the "IPCV.start" script.
I thought of that as well, however, I would need more installation 
feedback before I could cater for most possibilities. Else, the errors 
might be more unpredictable for other platform. I will look into the 
best way in next release.


thanks for your feedback.

rgds,
Chin Luh


Antoine

  
Le Mardi, Mars 21, 2017 02:34 CET, Tan Chin Luh <chin...@tritytech.com> a écrit:
  

Hi,

Great that you've get it works.
The crashed was caused by 2 reasons:

1. If you're running latest kernel (e.g Ubuntu 16.04), the crash is
caused by the older libgomp.so library distributed under Scilab 6
binary. This problem could be resolved with the OpenCV installed as
along the installation the latest libgomp.so would be installed to the
system as well.

2. If you're running an older version (e.g Ubuntu 14.04) , the crash is
caused during the loading of the IPCV library which is compiled with
newer version of gcc.

Usually in linux, a lot of codes/program will just ask the user to
download the source and recompile on the system itself. This will
eliminate the issue of crashing. Another way is packaging the libraries
into the software package, which could be a more complicated process for
the developer.

For the problem you faced, it is definitely not the atoms portal issue.
Atoms portal does not handle the third parties library an atoms-module
required, and the dependencies of the module which could also crashed
with the version of libraries carried by the Scilab binary.

So with all these problem, I tried to come out with the "less" effort
way for the user to make it works on linux, still causing crash for the
first time, but with extra 1-2 steps will solve the problem.

Thanks.

Regards,
Chin Luh

On 20/3/2017 6:39 PM, Antoine Monmayrant wrote:

Answering my own message: It seems that core dump & segfault are almost part of 
the install process described here: 
http://scilabipcv.tritytech.com/2017/03/17/installation-of-scilab-ipcv/
I followed these recommendations and I can restart scilab without a segfault.

I have the feeling there is something wrong with such an install process 
(install prerequisite, use atoms, crash, do some hand tweaking, pray).
As far as I remember, image processing toolboxes have always been a pain to 
install.
Why is this the case?
Is the atoms system inadequate?

Antoine
   
Le Lundi, Mars 20, 2017 11:21 CET, "Antoine Monmayrant" <antoine.monmayr...@laas.fr> a écrit:
   

Le Samedi, Mars 18, 2017 16:03 CET, Adailton Júnior <adailtonj...@gmail.com> a 
écrit:
   

Hello,

atomsInstall("IPCV") didn't work right away, and I tried in more than
one computer. Although, after usingatomsSystemUpdate(), it worked.
So, thanks for the quick reply. And good work. Now, I can proceed with
my research.

Well I was less lucky than you: this package crashes a fresh install of scilab 
6.0:

tar -xvf scilab-6.0.0.bin.linux-x86_64.tar.gz
scilab-6.0.0/bin/scilab

--> atomsInstall('IPCV')
Examen du dépôt http://atoms.scilab.org/6.0 ... Terminé

   ans  =

!IPCV  1.0  allusers  SCI/contrib/IPCV/1.0  I  !

AtomsAutoload() // segfault & core dumped


Antoine


Best regards,

--
Adailton Júnior
+5569992549337




On 18/03/2017 09:06, Tan Chin Luh wrote:

hi,

you might want to try:
--> atomsInstall("IPCV")

a new module which is base on SIVP with more functions, just uploaded
about a day ago.

Cheers!

rgds,
CL


On 18/3/2017 1:47 AM, Viktor Goryainov wrote:

Hello!

17.03.2017 18:43, Adailton Júnior пишет:


--> atomsInstall("SIP")

As far as I can see from atoms.scilab.org, neither SIP, nor SIVP
(Scilab Image and Video Processing toolbox) are available at all for
Scilab 6.0 right now. The latter has less time since last update
released (0.5.3.2 in 2014), but it was still intended for Scilab 5.x.

Best regards,
Viktor
___
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


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

Re: [Scilab-users] ?= Install image processing toolbo

2017-03-20 Thread Tan Chin Luh

Hi,

Great that you've get it works.
The crashed was caused by 2 reasons:

1. If you're running latest kernel (e.g Ubuntu 16.04), the crash is 
caused by the older libgomp.so library distributed under Scilab 6 
binary. This problem could be resolved with the OpenCV installed as 
along the installation the latest libgomp.so would be installed to the 
system as well.


2. If you're running an older version (e.g Ubuntu 14.04) , the crash is 
caused during the loading of the IPCV library which is compiled with 
newer version of gcc.


Usually in linux, a lot of codes/program will just ask the user to 
download the source and recompile on the system itself. This will 
eliminate the issue of crashing. Another way is packaging the libraries 
into the software package, which could be a more complicated process for 
the developer.


For the problem you faced, it is definitely not the atoms portal issue. 
Atoms portal does not handle the third parties library an atoms-module 
required, and the dependencies of the module which could also crashed 
with the version of libraries carried by the Scilab binary.


So with all these problem, I tried to come out with the "less" effort 
way for the user to make it works on linux, still causing crash for the 
first time, but with extra 1-2 steps will solve the problem.


Thanks.

Regards,
Chin Luh

On 20/3/2017 6:39 PM, Antoine Monmayrant wrote:

Answering my own message: It seems that core dump & segfault are almost part of 
the install process described here: 
http://scilabipcv.tritytech.com/2017/03/17/installation-of-scilab-ipcv/
I followed these recommendations and I can restart scilab without a segfault.

I have the feeling there is something wrong with such an install process 
(install prerequisite, use atoms, crash, do some hand tweaking, pray).
As far as I remember, image processing toolboxes have always been a pain to 
install.
Why is this the case?
Is the atoms system inadequate?

Antoine
  
Le Lundi, Mars 20, 2017 11:21 CET, "Antoine Monmayrant" <antoine.monmayr...@laas.fr> a écrit:
  

Le Samedi, Mars 18, 2017 16:03 CET, Adailton Júnior <adailtonj...@gmail.com> a 
écrit:
  

Hello,

atomsInstall("IPCV") didn't work right away, and I tried in more than
one computer. Although, after usingatomsSystemUpdate(), it worked.
So, thanks for the quick reply. And good work. Now, I can proceed with
my research.


Well I was less lucky than you: this package crashes a fresh install of scilab 
6.0:

tar -xvf scilab-6.0.0.bin.linux-x86_64.tar.gz
scilab-6.0.0/bin/scilab

--> atomsInstall('IPCV')
Examen du dépôt http://atoms.scilab.org/6.0 ... Terminé

  ans  =

!IPCV  1.0  allusers  SCI/contrib/IPCV/1.0  I  !

AtomsAutoload() // segfault & core dumped


Antoine


Best regards,

--
Adailton Júnior
+5569992549337




On 18/03/2017 09:06, Tan Chin Luh wrote:

hi,

you might want to try:
--> atomsInstall("IPCV")

a new module which is base on SIVP with more functions, just uploaded
about a day ago.

Cheers!

rgds,
CL


On 18/3/2017 1:47 AM, Viktor Goryainov wrote:

Hello!

17.03.2017 18:43, Adailton Júnior пишет:


--> atomsInstall("SIP")

As far as I can see from atoms.scilab.org, neither SIP, nor SIVP
(Scilab Image and Video Processing toolbox) are available at all for
Scilab 6.0 right now. The latter has less time since last update
released (0.5.3.2 in 2014), but it was still intended for Scilab 5.x.

Best regards,
Viktor
___
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


___
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] Install image processing toolbox

2017-03-18 Thread Tan Chin Luh

hi,

you might want to try:
--> atomsInstall("IPCV")

a new module which is base on SIVP with more functions, just uploaded 
about a day ago.


Cheers!

rgds,
CL


On 18/3/2017 1:47 AM, Viktor Goryainov wrote:

Hello!

17.03.2017 18:43, Adailton Júnior пишет:


--> atomsInstall("SIP")


As far as I can see from atoms.scilab.org, neither SIP, nor SIVP 
(Scilab Image and Video Processing toolbox) are available at all for 
Scilab 6.0 right now. The latter has less time since last update 
released (0.5.3.2 in 2014), but it was still intended for Scilab 5.x.


Best regards,
Viktor
___
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] Native managed Hypermatrices affect the Matplot functionality?

2017-03-12 Thread Tan Chin Luh

Thanks again,

Bug reported @ http://bugzilla.scilab.org/15059

rgds,
Chin Luh

On 12/3/2017 7:10 PM, Samuel Gougeon wrote:

Le 12/03/2017 à 07:21, Tan Chin Luh a écrit :

Thanks Samuel,

Before I make the report, just to clarify one more point.

The data extracted suppose to show white color plot, however:


a = uint8(zeros(480,640,3));
a(:,:,1) = uint8(255);
a(:,:,2) = uint8(180);
a(:,:,3) = uint8(60);
Matplot(a);
*// View the image first before running following lines, this will 
show orange color*

e = gce();
e.data = a;
*// **this will show 3 columns of image, left -> white, middle -> 
gray, right -> black*

b = e.data;
and(b==255)
*// this will show white image*
Matplot(b);


Yes, you are right: there are 2 sides of this bug

  * the 3 layers are partially taken into account to render the area,
but are likely badly sampled. It looks quite similar to the bug
http://bugzilla.scilab.org/14886
  * only the first layer is assigned to .data, and they are no longer
data corresponding to the rendering.

All 6.0.0 bugs about Matplot and Matplot1 somewhat hinder image 
rendering so image processing applications, that are the most 
downloaded. IMO, because they have regressed and they are very used, 
curing them should be of high priority.


Regards
Samuel



___
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] Native managed Hypermatrices affect the Matplot functionality?

2017-03-11 Thread Tan Chin Luh

Thanks Samuel,

Before I make the report, just to clarify one more point.

The data extracted suppose to show white color plot, however:


a = uint8(zeros(480,640,3));
a(:,:,1) = uint8(255);
a(:,:,2) = uint8(180);
a(:,:,3) = uint8(60);
Matplot(a);
*// View the image first before running following lines, this will show 
orange color*

e = gce();
e.data = a;
*// **this will show 3 columns of image, left -> white, middle -> gray, 
right -> black*

b = e.data;
and(b==255)
*// this will show white image*
Matplot(b);


Any extra comments to add into bug report? Thanks again.

rgds,
CL

On 11/3/2017 9:53 PM, Samuel Gougeon wrote:

Hello,

Le 11/03/2017 à 12:59, Tan Chin Luh a écrit :

.../...

2.  To solve this in Scilab 5.5.2, we usually assign the data 
directly into the Matplot children data. However, in Scilab 6, when 
we run:


a  =  uint8(zeros(480,640,3));
a(:,:,1)  =  uint8(255);
a(:,:,2)  =  uint8(180);
a(:,:,3)  =  uint8(60);
Matplot(a);
// View the image first before running following lines
h  =  gcf();
h.children.children.data  =  a;

Even we assigned back the same variable, the orientation of the data 
is wrong and the image is wrongly plot on the figure. The above 
example will show orange color in the first plot, and after assigning 
the same data back into the Matplot children data, the 3 layers are 
arrange in wrong order resulting wrong display.




This is clearly a regression. Only the first layer is actually 
assigned, others being ignored:

e = gce();
size(e.data)
and(e.data==255)

--> e = gce();

--> size(e.data)
 ans  =
   480.   640.

--> and(e.data==255)
 ans  =
  T

You may post a report about it.

Best regards
Samuel



___
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] Native managed Hypermatrices affect the Matplot functionality?

2017-03-11 Thread Tan Chin Luh

Hi,

A few questions regarding this:

1. As we know the Matplot will create new children if we call it without 
closing the previous one. So the following code will produce different 
behavior for 5.5.2 and 6.


for  cnt  =  1:n
a  =  rand(480,640,3);
Matplot(a);
end

if n about 100

Scilab 5.5.2 : Memory shown in task manager will goes up to above 1 G, 
and clear after closing windows


Scilab 6 : Memory shown in task manager will goes up a certain level 
(less tan 1 G), and show message "Can not allocate 7.37 MB memory."  
(7.37 varies for every run). Figure could not be closed with the "x" 
button on upper right, but able to closed by xdel.


if n is big...

Scilab 5.5.2 : Run until the critical error message shown

Scilab 6 : Crash and close


2.  To solve this in Scilab 5.5.2, we usually assign the data directly 
into the Matplot children data. However, in Scilab 6, when we run:


a  =  uint8(zeros(480,640,3));
a(:,:,1)  =  uint8(255);
a(:,:,2)  =  uint8(180);
a(:,:,3)  =  uint8(60);
Matplot(a);
// View the image first before running following lines
h  =  gcf();
h.children.children.data  =  a;

Even we assigned back the same variable, the orientation of the data is 
wrong and the image is wrongly plot on the figure. The above example 
will show orange color in the first plot, and after assigning the same 
data back into the Matplot children data, the 3 layers are arrange in 
wrong order resulting wrong display.


Thanks.

Regards,
Chin Luh


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


Re: [Scilab-users] csvread different separator

2016-05-23 Thread Tan Chin Luh


How about fscanfMat?

On 24/5/2016 5:15 AM, Florian Winter wrote:

1 2  3   4   5 6 7   8



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


Re: [Scilab-users] Scilab 6 issues in building the module

2016-03-16 Thread Tan Chin Luh

thanks.


On 16/3/2016 12:38 AM, Clément David wrote:

Hi,

Thanks for the information, I posted a new bug as 
http://bugzilla.scilab.org/show_bug.cgi?id=14465 .
You could add yourself to the CC list to track this issue.

--
Clément

Le mardi 15 mars 2016 à 19:49 +0800, Tan Chin Luh a écrit :

Hi,

Please find below for the details, let me know if I miss anything.
Thanks.

Regards,
Chin Luh

In general:
1. Windows 10 Pro 64 bits
2. Scilab 6 Beta 1 32 bits
3. Microsoft Visual Studio 2012 Express
4. Same configuration works perfectly on Scilab 5.5.2 (both 32 and 64 bits) on 
the compilation of
toolbox_skeleton.
The output of ver:
--> ver
  ans  =

!Scilab Version: 6.0.0.1455102908   
   !
!   
   !
!Operating System:   Windows 8 6.2  
   !
!   
   !
!Java version:   1.8.0_40   
   !
!   
   !
!Java runtime information:   Java(TM) SE Runtime Environment (build 
1.8.0_40-b26)  !
!   
   !
!Java Virtual Machine information:   Java HotSpot(TM) Client VM (build 
25.40-b25, mixed mode)  !
!   
   !
!Vendor specification:   Oracle Corporation

Output of getdebuginfo()

--> [dynamic_info, static_info] = getdebuginfo()
  static_info  =

!Version: scilab-6.0.0-beta-1  !
!  !
!Compilation date: Feb 10 2016 !
!  !
!Compilation time: 13:28:04!
!  !
!Compiler Architecture: x86!
!  !
!Compiled with Microsoft compiler (180040629)  !
!  !
!BLAS library optimized version: MKL   !
!  !
!XML version: 2.9.1!
!  !
!Tcl/Tk: Enable!
!  !
!TCL version: 8.5.9!
!  !
!TK version: 8.5.9 !
!  !
!Path separator: ; !
!  !
!Directory separator: \!
!  !
!PCRE Version: 8.21!

  dynamic_info  =

!Memory in use:  27
%  !
!
  !
!Total Physical Memory (Kbytes):
8181612   !
!
  !
!Free Physical Memory (Kbytes):
5970236!
!
  !
!Total Paging File (Kbytes):
9492332   !
!
  !
!Free Paging File (Kbytes):
6731004!
!
  !
!Total Virtual Memory (Kbytes):
2097024!
!
  !
!Free Virtual Memory (Kbytes):
961684 !
!
  !
!Free Extended Memory (Kbytes):
0!
!
  !
!Operating System: Windows 8
x64   !
!
  !
!Intel(R) Core(TM) i5 CPU   M 560  @
2.67GHz   !
!
  !
!Number of processors:
4   
!
!
  !
!Number of Video cards:
1  !
!
  !
!Video card #0: Intel(R) HD
Graphics   !
!
  !
!Primary Video card driver version:
15.201.1151.1010   !
!
  !
!Screen size: 1366 x 768 32
bits   !
!
  !
!Number of Monitors:
1   
  !
!
  !
!Path: 
D:/Scilab/scilab-6.0.0-beta-32/bin;D:\Scilab\scilab-5.5.2-32\bin;C:\Program 
Files
(x86)\GoldMine!
!\;C:\ProgramData\

Re: [Scilab-users] Scilab 6 issues in building the module

2016-03-15 Thread Tan Chin Luh

Hi,

Please find below for the details, let me know if I miss anything.
Thanks.

Regards,
Chin Luh

*In general:*

1. Windows 10 Pro 64 bits
2. Scilab 6 Beta 1 32 bits
3. Microsoft Visual Studio 2012 Express
4. Same configuration works perfectly on Scilab 5.5.2 (both 32 and 64 bits) on 
the compilation of toolbox_skeleton.

*The output of ver: *
--> ver
 ans  =

!Scilab Version: 6.0.0.1455102908  !
! !
!Operating System:   Windows 8 
6.2 !

! !
!Java version: 1.8.0_40  !
! !
!Java runtime information:   Java(TM) SE Runtime Environment 
(build 1.8.0_40-b26)  !

! !
!Java Virtual Machine information:   Java HotSpot(TM) Client VM (build 
25.40-b25, mixed mode)  !

! !
!Vendor specification:   Oracle Corporation

*Output of getdebuginfo()*

--> [dynamic_info, static_info] = getdebuginfo()
 static_info  =

!Version: scilab-6.0.0-beta-1  !
!  !
!Compilation date: Feb 10 2016 !
!  !
!Compilation time: 13:28:04!
!  !
!Compiler Architecture: x86!
!  !
!Compiled with Microsoft compiler (180040629)  !
!  !
!BLAS library optimized version: MKL   !
!  !
!XML version: 2.9.1!
!  !
!Tcl/Tk: Enable!
!  !
!TCL version: 8.5.9!
!  !
!TK version: 8.5.9 !
!  !
!Path separator: ; !
!  !
!Directory separator: \!
!  !
!PCRE Version: 8.21!

 dynamic_info  =

!Memory in use:  27 % !
! !
!Total Physical Memory (Kbytes): 8181612 !
! !
!Free Physical Memory (Kbytes): 5970236 !
! !
!Total Paging File (Kbytes): 9492332 !
! !
!Free Paging File (Kbytes): 6731004 !
! !
!Total Virtual Memory (Kbytes): 2097024 !
! !
!Free Virtual Memory (Kbytes): 961684 !
! !
!Free Extended Memory (Kbytes): 
0!

! !
!Operating System: Windows 8 x64 !
! !
!Intel(R) Core(TM) i5 CPU   M 560  @ 
2.67GHz   !

! !
!Number of processors: 4 !
! !
!Number of Video cards: 1 !
! !
!Video card #0: Intel(R) HD Graphics !
! !
!Primary Video card driver version: 15.201.1151.1010 !
! !
!Screen size: 1366 x 768 32 bits !
! !
!Number of Monitors: 1 !
! !
!Path: 
D:/Scilab/scilab-6.0.0-beta-32/bin;D:\Scilab\scilab-5.5.2-32\bin;C:\Program 
Files (x86)\GoldMine!

!\;C:\ProgramData\Oracle\Java\javapath;d:\Scilab\scicoslab-4.4.1\bin;C:\Windows\system32;C:\Windows;C:\!
!Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program 
Files (x86)\ATI Technolog!
!ies\ATI.ACE\Core-Static;C:\Program Files\Microsoft SQL 
Server\110\Tools\Binn\;C:\cygwin\bin;C:\Program!

! Files (x86)\AMD\ATI.ACE\Core-Static !
! !
!ComSpec: C:\Windows\system32\cmd.exe !
! !
!TMP : C:\Users\chinluh\AppData\Local\Temp !
! !
!TEMP: C:\Users\chinluh\AppData\Local\Temp

On 15/3/2016 7:33 PM, Clément David wrote:

Hi,

Please post a detailed bug with all these information and your configuration. 
We usually only check
the dynamic linking feature with a reduced set of compilers and your 
configuration might be a not
checked one .

Thanks in advance,

--
Clément  David


Le mardi 15 mars 2016 à 16:09 +0800, Tan Chin Luh a écrit :

Hi again,

after looking into more details, I notice that the builder is trying to include 
some files which
are not in the c gateway folder:

tbx_build_gateway("skeleton_c", ..
 ["c_sum","sci_csum", "csci"; ...
 "c_sub","sci_csub", "csci"; ...
 "c_multiplybypi","sci_multiplybypi", "csci"; ...
 "foo","sci_foo", "csci"; ...
 "c_error","sci_cerror", "csci";
 "c_sum6","sci_csum6", "csci6"; ...
 "c_sub6","sci_csub6", "csci6"; ...
 "c_multiplybypi6","sci_multiplybypi6", "csci6"; ...
 "foo6","sci_foo6", "csci6"; ...
 "c_error6","sci_cerror6", "csci6"], ..
 
["sci_csum.c","sci_csub.c","sci_multiplybypi.c","sci

Re: [Scilab-users] Scilab 6 issues in building the module

2016-03-15 Thread Tan Chin Luh
rosoft Visual 
Studio 11.0\VC\BIN\cl.EXE"' : ret!

!urn code '0x2' !
! !
!Stop. !
at line36 of function dlwCompile   ( 
D:\Scilab\scilab-6.0.0-beta-32\modules\dynamic_link\macros\windows\dlwCompile.sci 
line 49 )
at line70 of function ilib_compile ( 
D:\Scilab\scilab-6.0.0-beta-32\modules\dynamic_link\macros\ilib_compile.sci 
line 86 )
at line   115 of function ilib_build   ( 
D:\Scilab\scilab-6.0.0-beta-32\modules\dynamic_link\macros\ilib_build.sci line 
128 )
at line   134 of function tbx_build_gateway( 
D:\Scilab\scilab-6.0.0-beta-32\modules\modules_manager\macros\tbx_build_gateway.sci 
line 148 )
at line17 of function builder_gw_cpp   ( 
D:\Scilab\scilab-6.0.0-beta-32\contrib\toolbox_skeleton\sci_gateway\cpp\builder_gateway_cpp.sce 
line 19 )
at line25 of executed file 
D:\Scilab\scilab-6.0.0-beta-32\contrib\toolbox_skeleton\sci_gateway\cpp\builder_gateway_cpp.sce
at line13 of function tbx_builder  ( 
D:\Scilab\scilab-6.0.0-beta-32\modules\modules_manager\macros\tbx_builder.sci 
line 26 )
at line49 of function tbx_builder_gateway_lang ( 
D:\Scilab\scilab-6.0.0-beta-32\modules\modules_manager\macros\tbx_builder_gateway_lang.sci 
line 74 )
at line 6 of function builder_gateway  ( 
D:\Scilab\scilab-6.0.0-beta-32\contrib\toolbox_skeleton\sci_gateway\builder_gateway.sce 
line 8 )
at line 1 of executed file 
D:\Scilab\scilab-6.0.0-beta-32\contrib\toolbox_skeleton\sci_gateway\builder_gateway.sce
at line13 of function tbx_builder  ( 
D:\Scilab\scilab-6.0.0-beta-32\modules\modules_manager\macros\tbx_builder.sci 
line 26 )
at line32 of function tbx_builder_gateway  ( 
D:\Scilab\scilab-6.0.0-beta-32\modules\modules_manager\macros\tbx_builder_gateway.sci 
line 48 )
at line32 of function main_builder ( 
D:\Scilab\scilab-6.0.0-beta-32\contrib\toolbox_skeleton\builder.sce line 
40 )
at line48 of executed file 
D:\Scilab\scilab-6.0.0-beta-32\contrib\toolbox_skeleton\builder.sce


ilib_compile: Error while executing Makelib.mak.

Thanks again.

Regards,
Chin Luh

 




On 15/3/2016 10:23 AM, Tan Chin Luh wrote:

Hi Clement,

thanks for your prompt reply.

yes, it fixed the "nmake" error on the 64 -bit versions. After apply 
the fix, both 32 and 64 bits now stop at the same error during 
"building gateway"


ilib_build: Wrong value for input argument #3: existing file(s) expected.

p/s: should I confirm it is a bug first before I post on bugzilla next 
time? let me know the best way to do this. thanks. :)



Thanks again.

Regards,
Chin Luh



On 14/3/2016 8:37 PM, Clément David wrote:

Hi Tan,

Thanks for the information ; this is already fixed [1] ;) do not 
hesitate to post a bug on

bugzilla.scilab.org next time.

[1:] 
http://gitweb.scilab.org/?p=scilab.git;a=commit;h=064a1839fb0a501e4ff05ca23b25c2cd618be1aa


Regards,

--
Clément  David

Le lundi 14 mars 2016 à 09:34 +0800, Tan Chin Luh a écrit :

Hi,

I was trying to convert some of the modules to version 6 but facing 
some issues.


Same machine tested with Scilab 5.5.2 32-bits and 64-bits and the 
compilation are both

successful.

More Info on my machine :
1. Windows 10 Pro 64 bits
2. Scilab 6 Beta 1 32 bits
3. Compiler checking :
--> haveacompiler
  ans  =
   T
--> findmsvccompiler
  ans  =
  msvc110express

  Similar errors could be reproduce by compiling the 
toolbox_skeleton comes with the Scilab

installation:

**Error while executing builder.sce under Scilab 6 beta 1 32 bits
version***
--> 
exec('D:\Scilab\scilab-6.0.0-beta-32\contrib\toolbox_skeleton\builder.sce',-1)

Building macros...
-- Creation of [toolbox_skeletonlib] (Macros) --
Building sources...
Generate a loader file
Generate a Makefile
Running the Makefile
Compilation of fsum.f
Building shared library (be patient)
Generate a cleaner file
Generate a loader file
Generate a Makefile
Running the Makefile
Compilation of csum.c
Compilation of csub.c
Compilation of multiplybypi.c
Building shared library (be patient)
Generate a cleaner file
Building JAR library org.scilab.contrib.toolboxskeleton.jar
Compiling Java sources in 
D:\Scilab\scilab-6.0.0-beta-32\contrib\toolbox_skeleton\src\java\

Creating JAR archive D:\Scilab\scilab-6.0.0-beta-
32\contrib\toolbox_skeleton\jar\org.scilab.contrib.toolboxskeleton.jar
Create loader script for Java loader.sce
Create cleaner script for Java cleaner.sce
Building gateway...
at line55 of function ilib_build   ( 
D:\Scilab\scilab-6.0.0-beta-

32\modules\dynamic_link\macros\ilib_build.sci line 68 )
at line   134 of function tbx_build_gateway( 
D:\Scilab\scilab-6.0.0-beta-

32\modules\modules_manager\macros\tbx_build_gateway.sci line 148 )
at line10 of function builder_gw_c ( 
D:\Scilab\scilab-6.0.0-beta-
32\contrib\toolbox_skeleton\sci_gateway\c\builder_gate

Re: [Scilab-users] Scilab 6 issues in building the module

2016-03-14 Thread Tan Chin Luh

Hi Clement,

thanks for your prompt reply.

yes, it fixed the "nmake" error on the 64 -bit versions. After apply the 
fix, both 32 and 64 bits now stop at the same error during "building 
gateway"


ilib_build: Wrong value for input argument #3: existing file(s) expected.

p/s: should I confirm it is a bug first before I post on bugzilla next time? 
let me know the best way to do this. thanks. :)


Thanks again.

Regards,
Chin Luh



On 14/3/2016 8:37 PM, Clément David wrote:

Hi Tan,

Thanks for the information ; this is already fixed [1] ;) do not hesitate to 
post a bug on
bugzilla.scilab.org next time.

[1:] 
http://gitweb.scilab.org/?p=scilab.git;a=commit;h=064a1839fb0a501e4ff05ca23b25c2cd618be1aa

Regards,

--
Clément  David

Le lundi 14 mars 2016 à 09:34 +0800, Tan Chin Luh a écrit :

Hi,

I was trying to convert some of the modules to version 6 but facing some issues.

Same machine tested with Scilab 5.5.2 32-bits and 64-bits and the compilation 
are both
successful.

More Info on my machine :
1. Windows 10 Pro 64 bits
2. Scilab 6 Beta 1 32 bits
3. Compiler checking :
--> haveacompiler
  ans  =
   T
--> findmsvccompiler
  ans  =
  msvc110express

  Similar errors could be reproduce by compiling the toolbox_skeleton comes 
with the Scilab
installation:

**Error while executing builder.sce under Scilab 6 beta 1 32 bits
version***
--> 
exec('D:\Scilab\scilab-6.0.0-beta-32\contrib\toolbox_skeleton\builder.sce',-1)
Building macros...
-- Creation of [toolbox_skeletonlib] (Macros) --
Building sources...
Generate a loader file
Generate a Makefile
Running the Makefile
Compilation of fsum.f
Building shared library (be patient)
Generate a cleaner file
Generate a loader file
Generate a Makefile
Running the Makefile
Compilation of csum.c
Compilation of csub.c
Compilation of multiplybypi.c
Building shared library (be patient)
Generate a cleaner file
Building JAR library org.scilab.contrib.toolboxskeleton.jar
Compiling Java sources in 
D:\Scilab\scilab-6.0.0-beta-32\contrib\toolbox_skeleton\src\java\
Creating JAR archive D:\Scilab\scilab-6.0.0-beta-
32\contrib\toolbox_skeleton\jar\org.scilab.contrib.toolboxskeleton.jar
Create loader script for Java loader.sce
Create cleaner script for Java cleaner.sce
Building gateway...
at line55 of function ilib_build   ( 
D:\Scilab\scilab-6.0.0-beta-
32\modules\dynamic_link\macros\ilib_build.sci line 68 )
at line   134 of function tbx_build_gateway( 
D:\Scilab\scilab-6.0.0-beta-
32\modules\modules_manager\macros\tbx_build_gateway.sci line 148 )
at line10 of function builder_gw_c ( 
D:\Scilab\scilab-6.0.0-beta-
32\contrib\toolbox_skeleton\sci_gateway\c\builder_gateway_c.sce line 12 )
at line19 of executed file D:\Scilab\scilab-6.0.0-beta-
32\contrib\toolbox_skeleton\sci_gateway\c\builder_gateway_c.sce
at line13 of function tbx_builder  ( 
D:\Scilab\scilab-6.0.0-beta-
32\modules\modules_manager\macros\tbx_builder.sci line 26 )
at line49 of function tbx_builder_gateway_lang ( 
D:\Scilab\scilab-6.0.0-beta-
32\modules\modules_manager\macros\tbx_builder_gateway_lang.sci line 74 )
at line 6 of function builder_gateway  ( 
D:\Scilab\scilab-6.0.0-beta-
32\contrib\toolbox_skeleton\sci_gateway\builder_gateway.sce line 8 )
at line 1 of executed file D:\Scilab\scilab-6.0.0-beta-
32\contrib\toolbox_skeleton\sci_gateway\builder_gateway.sce
at line13 of function tbx_builder  ( 
D:\Scilab\scilab-6.0.0-beta-
32\modules\modules_manager\macros\tbx_builder.sci line 26 )
at line32 of function tbx_builder_gateway  ( 
D:\Scilab\scilab-6.0.0-beta-
32\modules\modules_manager\macros\tbx_builder_gateway.sci line 48 )
at line32 of function main_builder ( 
D:\Scilab\scilab-6.0.0-beta-
32\contrib\toolbox_skeleton\builder.sce line 40 )
at line48 of executed file 
D:\Scilab\scilab-6.0.0-beta-32\contrib\toolbox_skeleton\builder.sce

ilib_build: Wrong value for input argument #3: existing file(s) expected.
***


**Error while executing builder.sce under Scilab 6 beta 1 64 bits
version***
--> 
exec('D:\Scilab\scilab-6.0.0-beta-64\contrib\toolbox_skeleton\builder.sce',-1)
Building macros...
-- Creation of [toolbox_skeletonlib] (Macros) --
Building sources...
Generate a loader file
Generate a Makefile
Running the Makefile
Compilation of fsum.f
Building shared library (be patient)

!'nmake' is not recognized as an internal or external command,  !
!   !
!operable program or batch file.!
at line36 of function dlwCompile   ( D:\Scilab\scilab-6.0.0-beta-
64\modules\dynamic_link\macros\windows\dlwCompile.sci line 49 )
at line70 of function ilib_compile ( D:\Scilab\scilab-6.0.0-beta

[Scilab-users] Scilab 6 issues in building the module

2016-03-13 Thread Tan Chin Luh

Hi,

I was trying to convert some of the modules to version 6 but facing some 
issues.


*Same machine tested with Scilab 5.5.2 32-bits and 64-bits and the 
compilation are both successful. *


More Info on my machine :
1. Windows 10 Pro 64 bits
2. Scilab 6 Beta 1 32 bits
3. Compiler checking :
--> haveacompiler
 ans  =
  T
--> findmsvccompiler
 ans  =
 msvc110express

 Similar errors could be reproduce by compiling the toolbox_skeleton 
comes with the Scilab installation:


**Error while executing builder.sce under Scilab 6 beta 1 32 bits 
version***
--> 
exec('D:\Scilab\scilab-6.0.0-beta-32\contrib\toolbox_skeleton\builder.sce',-1)

Building macros...
-- Creation of [toolbox_skeletonlib] (Macros) --
Building sources...
   Generate a loader file
   Generate a Makefile
   Running the Makefile
   Compilation of fsum.f
   Building shared library (be patient)
   Generate a cleaner file
   Generate a loader file
   Generate a Makefile
   Running the Makefile
   Compilation of csum.c
   Compilation of csub.c
   Compilation of multiplybypi.c
   Building shared library (be patient)
   Generate a cleaner file
   Building JAR library org.scilab.contrib.toolboxskeleton.jar
   Compiling Java sources in 
D:\Scilab\scilab-6.0.0-beta-32\contrib\toolbox_skeleton\src\java\
   Creating JAR archive 
D:\Scilab\scilab-6.0.0-beta-32\contrib\toolbox_skeleton\jar\org.scilab.contrib.toolboxskeleton.jar

   Create loader script for Java loader.sce
   Create cleaner script for Java cleaner.sce
Building gateway...
at line55 of function ilib_build   ( 
D:\Scilab\scilab-6.0.0-beta-32\modules\dynamic_link\macros\ilib_build.sci line 
68 )
at line   134 of function tbx_build_gateway( 
D:\Scilab\scilab-6.0.0-beta-32\modules\modules_manager\macros\tbx_build_gateway.sci 
line 148 )
at line10 of function builder_gw_c ( 
D:\Scilab\scilab-6.0.0-beta-32\contrib\toolbox_skeleton\sci_gateway\c\builder_gateway_c.sce 
line 12 )
at line19 of executed file 
D:\Scilab\scilab-6.0.0-beta-32\contrib\toolbox_skeleton\sci_gateway\c\builder_gateway_c.sce
at line13 of function tbx_builder  ( 
D:\Scilab\scilab-6.0.0-beta-32\modules\modules_manager\macros\tbx_builder.sci 
line 26 )
at line49 of function tbx_builder_gateway_lang ( 
D:\Scilab\scilab-6.0.0-beta-32\modules\modules_manager\macros\tbx_builder_gateway_lang.sci 
line 74 )
at line 6 of function builder_gateway  ( 
D:\Scilab\scilab-6.0.0-beta-32\contrib\toolbox_skeleton\sci_gateway\builder_gateway.sce 
line 8 )
at line 1 of executed file 
D:\Scilab\scilab-6.0.0-beta-32\contrib\toolbox_skeleton\sci_gateway\builder_gateway.sce
at line13 of function tbx_builder  ( 
D:\Scilab\scilab-6.0.0-beta-32\modules\modules_manager\macros\tbx_builder.sci 
line 26 )
at line32 of function tbx_builder_gateway  ( 
D:\Scilab\scilab-6.0.0-beta-32\modules\modules_manager\macros\tbx_builder_gateway.sci 
line 48 )
at line32 of function main_builder ( 
D:\Scilab\scilab-6.0.0-beta-32\contrib\toolbox_skeleton\builder.sce line 
40 )
at line48 of executed file 
D:\Scilab\scilab-6.0.0-beta-32\contrib\toolbox_skeleton\builder.sce


ilib_build: Wrong value for input argument #3: existing file(s) expected.
***


**Error while executing builder.sce under Scilab 6 beta 1 64 bits 
version***
--> 
exec('D:\Scilab\scilab-6.0.0-beta-64\contrib\toolbox_skeleton\builder.sce',-1)

Building macros...
-- Creation of [toolbox_skeletonlib] (Macros) --
Building sources...
   Generate a loader file
   Generate a Makefile
   Running the Makefile
   Compilation of fsum.f
   Building shared library (be patient)

!'nmake' is not recognized as an internal or external command,  !
!   !
!operable program or batch file.!
at line36 of function dlwCompile   ( 
D:\Scilab\scilab-6.0.0-beta-64\modules\dynamic_link\macros\windows\dlwCompile.sci 
line 49 )
at line70 of function ilib_compile ( 
D:\Scilab\scilab-6.0.0-beta-64\modules\dynamic_link\macros\ilib_compile.sci 
line 86 )
at line   104 of function ilib_for_link( 
D:\Scilab\scilab-6.0.0-beta-64\modules\dynamic_link\macros\ilib_for_link.sci 
line 118 )
at line29 of function tbx_build_src( 
D:\Scilab\scilab-6.0.0-beta-64\modules\modules_manager\macros\tbx_build_src.sci 
line 44 )
at line 3 of function builder_fortran  ( 
D:\Scilab\scilab-6.0.0-beta-64\contrib\toolbox_skeleton\src\fortran\builder_fortran.sce 
line 5 )
at line-1 of executed file 
D:\Scilab\scilab-6.0.0-beta-64\contrib\toolbox_skeleton\src\fortran\builder_fortran.sce
at line13 of function tbx_builder  ( 
D:\Scilab\scilab-6.0.0-beta-64\modules\modules_manager\macros\tbx_builder.sci 
line 26 )
at line49 of function tbx_builder_src_lang ( 

Re: [Scilab-users] GUIBUILDER problem!

2015-12-02 Thread Tan Chin Luh

May I know what's your version of Scilab and GUIBUILDER?

thanks

rgds,
Chin Luh

On 28-Nov-15 2:28 AM, petarf wrote:

Hi all,

When I want to make simple pushbutton the figure on which I draw zooms out
and I draw some rectangle but I can't see it. It is moved outside the
figure. When I click to move that push button red rectangle which represents
that button is not at the same place as pushbutton and I have to move that
red rectangle outside of figure to see pushbutton.

Can anyone help with this?

Regards, Petar



--
View this message in context: 
http://mailinglists.scilab.org/GUIBUILDER-problem-tp4033128.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



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


Re: [Scilab-users] unable to generate GUI code

2015-01-08 Thread Tan Chin Luh
my sincere apologies for jumping into conclusion without looking into 
details.


the actual issue is the Edit calling another function called editor, 
which is happen to be same name with the one used by scipad.


--whereis editor
 ans  =

!scipadlib!
! !
!scinoteslib  !

If you need scipad, you could disable the autoload at startup using 
atomsAutoloadDel, and load it when needed.


I will report this issue with the provided link.

Regards,
Chin Luh

On 08-Jan-15 4:33 AM, François Vogel wrote:

Scipad might have override the Edit function, try to unload/remove it
and the guibuilder should be able to run properly.

Scipad does not override the edit function, not even in the very old version 
the OP is using.
If you definitely find that Scipad is the culprit, please open a ticket here:

http://sourceforge.net/projects/scipad/

Regards,
Francois
___
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] unable to generate GUI code

2015-01-08 Thread Tan Chin Luh
after second thought, the scipad user might just want to use scipad 
instead of scinotes as editor.


in this case, a quick fixed would be declare the following lines in the 
console:


MSDOS = 1; // if you have not done so and scipad does not run. this is 
required in scilab 5.5 as you need to use getos function instead of MSDOS.

edit = scipad;

if this works, consider loading this at scilab startup so it won't be 
cleared with user command.


One more possible solution is to change the guibuilder function 
gencode_callback line 16 edit(fn2); to scipad(fn2) and recompile it.


hope these suggestions help.

regards,
Chin Luh




On 08-Jan-15 9:10 PM, Tan Chin Luh wrote:
my sincere apologies for jumping into conclusion without looking into 
details.


the actual issue is the Edit calling another function called 
editor, which is happen to be same name with the one used by scipad.


--whereis editor
 ans  =

!scipadlib!
! !
!scinoteslib  !

If you need scipad, you could disable the autoload at startup using 
atomsAutoloadDel, and load it when needed.


I will report this issue with the provided link.

Regards,
Chin Luh

On 08-Jan-15 4:33 AM, François Vogel wrote:

Scipad might have override the Edit function, try to unload/remove it
and the guibuilder should be able to run properly.
Scipad does not override the edit function, not even in the very 
old version the OP is using.
If you definitely find that Scipad is the culprit, please open a 
ticket here:


http://sourceforge.net/projects/scipad/

Regards,
Francois
___
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] unable to generate GUI code

2015-01-08 Thread Tan Chin Luh
my fault again, the problem only exist if you are using the scipad from 
atoms portal, using the link provided by Francois, this problem would 
never exist. :)


learn something today, thanks.

rgds,
Chin Luh

On 08-Jan-15 9:57 PM, Tan Chin Luh wrote:
after second thought, the scipad user might just want to use scipad 
instead of scinotes as editor.


in this case, a quick fixed would be declare the following lines in 
the console:


MSDOS = 1; // if you have not done so and scipad does not run. this is 
required in scilab 5.5 as you need to use getos function instead of 
MSDOS.

edit = scipad;

if this works, consider loading this at scilab startup so it won't be 
cleared with user command.


One more possible solution is to change the guibuilder function 
gencode_callback line 16 edit(fn2); to scipad(fn2) and recompile 
it.


hope these suggestions help.

regards,
Chin Luh




On 08-Jan-15 9:10 PM, Tan Chin Luh wrote:
my sincere apologies for jumping into conclusion without looking into 
details.


the actual issue is the Edit calling another function called 
editor, which is happen to be same name with the one used by scipad.


--whereis editor
 ans  =

!scipadlib!
! !
!scinoteslib  !

If you need scipad, you could disable the autoload at startup using 
atomsAutoloadDel, and load it when needed.


I will report this issue with the provided link.

Regards,
Chin Luh

On 08-Jan-15 4:33 AM, François Vogel wrote:
Scipad might have override the Edit function, try to 
unload/remove it

and the guibuilder should be able to run properly.
Scipad does not override the edit function, not even in the very 
old version the OP is using.
If you definitely find that Scipad is the culprit, please open a 
ticket here:


http://sourceforge.net/projects/scipad/

Regards,
Francois
___
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



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


Re: [Scilab-users] Refresh plot from Slider

2014-09-10 Thread Tan Chin Luh


I see that the previous plot is not deleted, why?
-- seems that you miss out the end for your if statement

Do we need to add in another text to display the slider value?
-- as i understand, yes, u need to add a text to display it

CL


On 10-Sep-14 11:37 AM, tanthiamhuat wrote:

Hi CL,

thanks for pointing out my mistake of using the text handles.

even if I add in the code:
if ~isempty(handles.Axes1.children)
delete(handles.Axes1.children);
I see that the previous plot is not deleted, why?

Secondly, is the slider able to display its value when it is slide along? If
yes, that would be wonderful.
Do we need to add in another text to display the slider value?

Below are the full code:

// This GUI file is generated by guibuilder version 3.0
//
f=figure('figure_position',[564,97],'figure_size',[656,665],'auto_resize','on','background',[33],'figure_name','Graphic
window number %d');
//
delmenu(f.figure_id,gettext('File'))
delmenu(f.figure_id,gettext('?'))
delmenu(f.figure_id,gettext('Tools'))
toolbar(f.figure_id,'off')
handles.dummy = 0;
handles.sliderAmp=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Tahoma','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','left','ListboxTop',[],'Max',[100],'Min',[0],'Position',[0.0984375,0.758,0.2421875,0.058],'Relief','flat','SliderStep',[10,10],'String','1','Style','slider','Value',[33.45],'VerticalAlignment','middle','Visible','on','Tag','sliderAmp','Callback','sliderAmp_callback(handles)')
handles.sliderFreq=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Tahoma','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','left','ListboxTop',[],'Max',[100],'Min',[0],'Position',[0.0984375,0.5854167,0.2421875,0.058],'Relief','default','SliderStep',[0.01,0.1],'String','1','Style','slider','Value',[22.76],'VerticalAlignment','middle','Visible','on','Tag','sliderFreq','Callback','sliderFreq_callback(handles)')
handles.editTime=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Tahoma','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','center','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.0984375,0.4291667,0.1175,0.058],'Relief','default','SliderStep',[0.01,0.1],'String','0:0.9:10','Style','edit','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','editTime','Callback','')
handles.pbPlot=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Tahoma','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','center','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.0984375,0.2645833,0.1121875,0.058],'Relief','default','SliderStep',[0.01,0.1],'String','Plot','Style','pushbutton','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','pbPlot','Callback','pbPlot_callback(handles)')
handles.Axes1= newaxes();handles.Axes1.margins = [ 0 0 0
0];handles.Axes1.axes_bounds = [0.415625,0.0770833,0.534375,0.725];
handles.Amp=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Tahoma','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','left','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.1653125,0.702766,0.094375,0.0425532],'Relief','default','SliderStep',[0.01,0.1],'String','Amplitude','Style','text','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','Amp','Callback','')


//
// Callbacks are defined as below. Please do not delete the comments as it
will be used in coming version
//



function sliderAmp_callback(handles)
//Write your callback for  sliderAmp  here

endfunction


function sliderFreq_callback(handles)
//Write your callback for  sliderFreq  here

endfunction


function pbPlot_callback(handles)
//Write your callback for  pbPlot  here
funcprot(0)
amp = get(handles.sliderAmp,'value');
frq = get(handles.sliderFreq,'value');
t= evstr(get(handles.editTime,'String'));
y=amp.*sin(2*%pi*frq.*t);
if ~isempty(handles.Axes1.children)
delete(handles.Axes1.children);
plot(t,y); xgrid();
endfunction



--
View this message in context: 
http://mailinglists.scilab.org/Refresh-plot-from-Slider-tp4031131p4031137.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



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


Re: [Scilab-users] Refresh plot from Slider

2014-09-09 Thread Tan Chin Luh

Exactly Antoine, thanks for adding on to this.

CL

On 08-Sep-14 4:20 PM, Antoine Monmayrant wrote:

On 09/07/2014 08:58 AM, Tan Chin Luh wrote:

Hi,

first of all, the handles to the sliders are wrong, you were using 
the text handles instead of the sliders handles in both pushbutton 
and slider callback.


secondly you need to be careful on the sampling, with 0.01, u could 
only plot sine wave

with  50 Hz. (nyquist)

finally remember to delete the previous plot before redrawing. infact 
it is not the best way to delete and plot and redraw it everytime 
especially you want to use the slider to plot the graph, be ready for 
a lagging effect.
The fastest option is to modify the data in the plot (and re-zoom if 
needed) instead of deleting/replotting.


Antoine


hope this helps.

rgds,
CL

On 07-Sep-14 12:32 PM, tanthiamhuat wrote:

referring to the below weblink
http://www.equalis.com/blogpost/731635/Scilab-Tips?tag=guibuilder+graphic+user+interface 



How do we refresh the plot with the slider? I try to put in the code 
for the

Plot button, but it does not work.
see code below, thanks.

// This GUI file is generated by guibuilder version 2.2
//
f=figure('figure_position',[375,60],'figure_size',[656,604],'auto_resize','on','background',[33],'figure_name','Graphic 


window number %d');
//
delmenu(f.figure_id,gettext('File'))
delmenu(f.figure_id,gettext('?'))
delmenu(f.figure_id,gettext('Tools'))
toolbar(f.figure_id,'off')
handles.dummy = 0;
handles.sliderAmp=uicontrol(f,'unit','normalized','BackgroundColor',[0.8,0.8,0.8],'Enable','on','FontAngle','normal','FontName','helvetica','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[0,0,0],'HorizontalAlignment','center','ListboxTop',[],'Max',[20],'Min',[0],'Position',[0.0932716,0.8253968,0.23,0.0335714],'Relief','flat','SliderStep',[10,10],'String','1','Style','slider','Value',[10],'VerticalAlignment','middle','Visible','on','Tag','sliderAmp','Callback','sliderAmp_callback(handles)') 

handles.sliderFreq=uicontrol(f,'unit','normalized','BackgroundColor',[0.8,0.8,0.8],'Enable','on','FontAngle','normal','FontName','helvetica','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[0,0,0],'HorizontalAlignment','center','ListboxTop',[],'Max',[100],'Min',[0],'Position',[0.0932716,0.7097502,0.23,0.0335714],'Relief','flat','SliderStep',[20,20],'String','1','Style','slider','Value',[50],'VerticalAlignment','middle','Visible','on','Tag','sliderFreq','Callback','sliderFreq_callback(handles)') 

handles.Amp=uicontrol(f,'unit','normalized','BackgroundColor',[0.8,0.8,0.8],'Enable','on','FontAngle','normal','FontName','helvetica','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[0,0,0],'HorizontalAlignment','center','ListboxTop',[],'Max',[100],'Min',[0],'Position',[0.1548765,0.7891473,0.0964815,0.0324031],'Relief','flat','SliderStep',[0.01,0.1],'String','Amplitude','Style','text','Value',[20],'VerticalAlignment','middle','Visible','on','Tag','Amp','Callback','sliderAmp_callback(handles)') 

handles.Freq=uicontrol(f,'unit','normalized','BackgroundColor',[0.8,0.8,0.8],'Enable','on','FontAngle','normal','FontName','helvetica','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[0,0,0],'HorizontalAlignment','center','ListboxTop',[],'Max',[100],'Min',[0],'Position',[0.1551235,0.6595349,0.1083951,0.0339535],'Relief','flat','SliderStep',[0.01,0.1],'String','Frequency','Style','text','Value',[1],'VerticalAlignment','middle','Visible','on','Tag','Freq','Callback','') 

handles.pbPlot=uicontrol(f,'unit','normalized','BackgroundColor',[0.6,0.6,0.6],'Enable','on','FontAngle','normal','FontName','helvetica','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[0,0,0],'HorizontalAlignment','center','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.0932716,0.4604651,0.0952469,0.0403876],'Relief','raised','SliderStep',[0.01,0.1],'String','Plot','Style','pushbutton','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','pbPlot','Callback','pbPlot_callback(handles)') 


handles.Axes1= newaxes();handles.Axes1.margins = [ 0 0 0
0];handles.Axes1.axes_bounds = 
[0.3503086,0.0503876,0.5895062,0.5949612];
handles.editTime=uicontrol(f,'unit','normalized','BackgroundColor',[0.8,0.8,0.8],'Enable','on','FontAngle','normal','FontName','helvetica','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[0,0,0],'HorizontalAlignment','center','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.0932716,0.5829279,0.2114198,0.0447471],'Relief','sunken','SliderStep',[0.01,0.1],'String','0:0.01:10','Style','edit','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','editTime','Callback','') 




//
// Callbacks are defined as below. Please do not delete the comments 
as it

will be used in coming version
//

function sliderAmp_callback(handles)
//Write your callback for  slide1  here
funcprot(0)
amp = get

Re: [Scilab-users] empty memory

2012-12-31 Thread Tan Chin Luh

after clearing, using stacksize('min') might help to squeeze the wscilab 
process mem to original. how this works. rgds,CL
 From: paul.carr...@free.fr
To: users@lists.scilab.org
Date: Thu, 27 Dec 2012 11:32:46 +0100
Subject: Re: [Scilab-users] empty memory


I don’t know if it’s relevant, but I’m using Windows 7 64 bits Paul De : 
users-boun...@lists.scilab.org [mailto:users-boun...@lists.scilab.org] De la 
part de Frederic Jourdin
Envoyé : jeudi 27 décembre 2012 10:37
À : International users mailing list for Scilab.
Objet : Re: [Scilab-users] empty memory I don't see this problem with Scilab 
5.3 and 5.4 on Linux.
Maybe this is a Scilab bug on Windows (?!):
another guy for testing it on Windows ?...
Fred


Le 27/12/2012 09:48, Paul Carrico a écrit : Hi  I tested it on my example under 
scilab5.4.0 (Windows OS) … the memory is still full Paul De : 
users-boun...@lists.scilab.org [mailto:users-boun...@lists.scilab.org] De la 
part de Frederic Jourdin
Envoyé : jeudi 27 décembre 2012 08:01
À : International users mailing list for Scilab.
Objet : Re: [Scilab-users] empty memory even with:
clear 
clearglobal()
?
Fred


Le 25/12/2012 00:48, Paul Carrico a écrit : Dear All, I noticed the memory is 
not empty after reading huge matrices (typically after using csvread function 
with number of rows greater than 500 000) ; as well  it’s the case in the 
example hereafter …… thus what is the way to force Scilab to empty the memory  
?  NB : the only way I found is to close Scilab …. Not convenient !Merry 
Christmas Paul  mode(0)stacksize('max'); n = 50;A = rand(n,10); 
save('A.bin','A');clear A(windows task manager shows the memory is not empty 
after « clear » use)   ___users 
mailing 
listusers@lists.scilab.orghttp://lists.scilab.org/mailman/listinfo/users 
___users mailing 
listusers@lists.scilab.orghttp://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