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
2
votes
2 answers

Arduino as xcos block

I am developing an interface between Arduino microcontroller and Scilab (analogue of MATLAB) simulation environment. How I see it: A graphical block representing Arduino in Scilab. It will have 6 analogue and 14 digital inputs on the left side of…
user1165574
  • 167
  • 5
  • 13
2
votes
1 answer

Scilab xcos values linking to gui(or guibuilder code)

I have a problem that i can't solve. Please help me out. The problem is i can't find any scilab codes to link my xcos values to a real time slider and change it as the gui is running. For you to imagine it easier i linked my pc screen with the code…
1
vote
1 answer

How to show result of static model (=plain number) in Xcos?

I add two numbers in Xcos and would like to show the result in the diagram. I managed to do so using a CSCOPE element and adding an extra CLOCK_c element: However, I would prefer a display element that simply shows the number: => What component…
Stefan
  • 10,010
  • 7
  • 61
  • 117
1
vote
1 answer

How to define persistent matrix variable inside the Scilab function?

I have been developing a Scilab function where I need to have persistent variable of the matrix type. Based on my similar question I have chosen the same approach. Below is the code I have used for test of this approach. function [u] =…
Steve
  • 805
  • 7
  • 27
1
vote
1 answer

Why do I get the wrong output?

In this Scilab code, I am converting a state space system to a transfer function and the output should be G(s)= (s+3)/(s^3+6s^2+11s+6) but I got this output G(s)=(1 +8.882D-16s)/(2 +3s +s² ) . I know there is a common factor (s+3) between a…
Dr.mark
  • 49
  • 4
1
vote
1 answer

Plot gets stuck at 30 on x-axis Xcos

So my plot gets stuck at 30 on x-axis. I changed refresh period, so it shows me more of that axis, but there's no plot after 30.
jupyter51
  • 13
  • 3
1
vote
1 answer

Meaning of xcos datatype dimensions

I am experiencing conflicts between xcos blocks. For example I am not able to connect a real [-2 1] output to a real [1 1] input. Does anybody know, in general, what negative indices mean for datatype size?
GioP
  • 55
  • 1
  • 10
1
vote
1 answer

Scilab xcos: run a script or define a function in Simulation -> Set Context

I have my own function which I want to use via scifunc_block_m block. The function is defined in an .sci file, as suggested in this answer. Running the script from the scilab console before starting the simulation works fine. However, if I call…
Xpector
  • 639
  • 1
  • 5
  • 17
1
vote
1 answer

How to plot Bode diagrams under scilab / xcos V6.1?

I use scilab / xcos in my teaching and among others the CPGE atoms module: https://atoms.scilab.org/toolboxes/CPGE This module has not yet been updated for version 6.1 and only works for version 5.5.2. The majority of its functionalities are found…
rpapa
  • 119
  • 9
1
vote
1 answer

Why my diagram plotted the exponential graph using scilab, xcos?

The diagram and the graph I have made the above diagram and I placed the values of 1,1 as the parameters of INTEGRAL_f and GAINBLK_f respectively,and the other parameters are as default. I have no idea why this graph is plotted since I thought that…
user13766859
1
vote
1 answer

Scilab xcos integrator

I have been facing a problem how to generate event signals based on value at the integrator block in Scilab Xcos. For example I need to create event signal in case value at the output of the integrator block is equal to zero. I had an idea to use…
Steve
  • 805
  • 7
  • 27
1
vote
0 answers

Xcos superblock throws an unusual error

I've been trying to create a set of super blocks using Electrical blocks & even with a very simple circuit, Xcos throws the error "The number of equations doesn't match the number of variables". My circuit consists of a 3 phase supply connected to a…
1
vote
1 answer

Why does equivalent discrete control implementation provide different results in XCos

I am simulating a simple closed loop speed controller for a DC motor in scilab/xcos. I have a continuous PI controller working just fine. I have then discretized the continuous controller and implemented it in two different, but equivalent ways,…
mjuels
  • 13
  • 5
1
vote
1 answer

Scilab/Xcos: handling strings in Xcos & toolbox function in Xcos

I want to create a simulation in Xcos (part of Scilab) representing the real Arduino Uno system. That means changing its input values during the simulation based on output. The problem is that I need to find the way how to handle strings as input…
user3618276
  • 91
  • 2
  • 10
1
vote
1 answer

Linking xcos and scilab gui for real time control of model parameters

I am a scilab/xcos newbee. I have a model with multiple parameters I would like to change the block parameters in real time (seen on a real time graph). So I would like the functionality of the TK scale block for multiple parameters within a gui…
Pelonomi Moiloa
  • 516
  • 5
  • 12
1
2 3 4