Questions tagged [xcos]

Xcos is a graphical editor to design hybrid dynamical systems models. Models can be designed, loaded, saved, compiled and simulated.

Xcos is a graphical editor to design hybrid dynamical systems models. Models can be designed, loaded, saved, compiled and simulated.

http://www.scilab.org/scilab/features/xcos

46 questions
0
votes
1 answer

How to pass simulation context into Scilab C block?

I have been developing my own function block in Scilab/Xcos on the C block basis and I have been struggling with passing parameters defined in the simulation context into the C code. Does anybody know how to do that? Thanks in advance for any ideas.
Steve
  • 805
  • 7
  • 27
0
votes
1 answer

How to set parameters in Scilab blocks from SciPad?

I don't know if anyone faced the same problem! In MATLAB, we can easily set the parameters of Simulink blocks from m-files. For example, we can change the coefficients of transfer functions, PID gains, step-input magnitude, simulation time, etc. In…
Sitra
  • 3
  • 2
0
votes
1 answer

Global variables Xcos

I am new to Xcos. Is there a way for a block to read or write to a variable that other blocks could also access? or if there is a work around to achieving the same. Thanks
kersi
  • 1
0
votes
0 answers

Porting xcos from 5.5.2 to 6.0.1

Opening xcos drawn in 5.5.2 using 6.0.2 results in blank pages. There are no special import functions I can find in the 6.0 help. There are no white papers I've found yet on the scilab website. I suspect that since 6.0 was a substantial rewrite…
Dave Gutz
  • 1
  • 1
0
votes
0 answers

Scilab 5.5.2 function as a block in xcos : Variable returned by scilab argument function is incorrect [

I have been trying to get the ultrasonic data from an arduino using serial communication toolbox in scilab to be brought in the xcos simulation. To do this I followed Include a Scilab function/script as a block in xcos/scicos and created my own…
user10865637
0
votes
0 answers

Interpret read PWM value in Scilab[XCOS]

I have trying to connect an ultrasonic sensor in scilab and I'am utilizing the Arduino toolbox for it. Unfortunately I cannot connect the ultrasonic sensor directly to scilab unlike the temperature sensor that outputs voltage depending on the…
user10865637
0
votes
1 answer

Include a Scilab function/script as a block in xcos/scicos

As the title says I want to include a block where I can run a scilab expression/function/script given certain inputs. I can see xcos/scicos can include C, Fortran and Modelica. There is a Expression block: but the functions are pretty…
Foad S. Farimani
  • 12,396
  • 15
  • 78
  • 193
0
votes
1 answer

expression block in xcos gives "answer given for scilab expression is wrong" error

I'm trying to use the xcos/scicos expressionless block: with this scilab/scicoslab expression: sign(u2 – u1) * (2 * ((Fm + M) * abs(u2 – u1) + k * (u2^2 – u1^2) / 2) / m)^0.5 where all the variables above has already been defined in the context.…
Foad S. Farimani
  • 12,396
  • 15
  • 78
  • 193
0
votes
1 answer

How to define global variables in xcos/scicos block diagram simulation?

I want to define global variables in an xcos/scicos signal flow diagram. I tried the block Simulation>set context: But then it does not accept it as a known variable anywhere: P.S. I tried the block diagram on a different computer and it now…
Foad S. Farimani
  • 12,396
  • 15
  • 78
  • 193
0
votes
1 answer

Scilab xcos String Handling

I am trying to build a model where the string is output. How to display string (as input and output) in Scilab xcos modelling. Is there any package that I have to install? What I meant is the function that I am linking with modelling is returning a…
Anroop
  • 41
  • 4
0
votes
1 answer

C/C++ Code generation from xcos in scilab

I've developed a model in xcos in scilab and I'd like to generate the C/C++ code of this model so that I can deploy it in embedded system. However the issue is that the Code generating item in Tools menu is disabled. I guess it means I don't have…
phodina
  • 1,341
  • 1
  • 12
  • 25
0
votes
1 answer

Scilab with Visual Studio 2015

I'm new to Scilab/Xcos and am trying to get it setup for the first time. I notice that some of the Xcos blocks I wanted to try require a C compiler. I have Visual Studio 2015 Professional installed already, and in Scilab, if I run findmsvccompiler,…
acee
  • 348
  • 1
  • 6
  • 16
0
votes
1 answer

Scilab Xcos, insert a difference equation in Xcos diagram

How can I insert a difference equation in Xcos diagram, like: y(k+1) = y(k)[a sqrt(y(k-1))] + b *y(k-1) ; ? Thanks, Best Regards EDIT Finding on Internet I think that the best way to address my problem is use: scifunck block.
Edge7
  • 681
  • 1
  • 15
  • 35
0
votes
2 answers

Using Scilab, Get transfer function closed loop

I have a XCOS scheme, where are presents: My system G(Z) A Pid controller Now, I would like to know the closed loop transfer function. How can i obtain it by scilab/Xcos ? Thanks Best *** EDIT: **** Following user1149326's suggestions…
Edge7
  • 681
  • 1
  • 15
  • 35
-1
votes
1 answer

Overlay signals in the scope of Xcos (Scilab)

The above image is the result of using the cmscope block, but I want to overlap the signals. Is it possible?