# Scilab 6.1.1 xcos spring movement model

**URL:** <https://scilab.discourse.group/t/scilab-6-1-1-xcos-spring-movement-model/112>\
**Category:** Xcos\
**Created:** [June 29, 2023, 4:06pm UTC](https://scilab.discourse.group/t/scilab-6-1-1-xcos-spring-movement-model/112 "2023-06-29T16:06:39Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![adz1u](https://avatars.discourse-cdn.com/v4/letter/a/f08c70/32.png) [@adz1u](https://scilab.discourse.group/u/adz1u)\
**Post date:** [June 29, 2023, 4:06pm UTC](https://scilab.discourse.group/t/scilab-6-1-1-xcos-spring-movement-model/112/1 "2023-06-29T16:06:39Z")

</div>

Hello, I need help because I have no idea how to do this task:  
Set context (menu simulation, e.g.: k=1, m=1)  
2. Use INTEGRAL\_f, GAIN\_f(-k/m)  
3. In the model, reproduce the signal property described above:

- signal after double integration INTEGRAL\_f INTEGRAL\_f and
- multiplied by the constant GAIN\_f(-k/m)
- is still the same signal

1. The model should enable simulations of changes over time (CSCOPXY time series)  
a. Spring weight locations  
b. Speeds  
c. Accelerations
2. The model should also enable the study of the relationship between  
(phase diagram)  
a. location and speed  
b. position and acceleration  
 ![1](https://global.discourse-cdn.com/free1/uploads/utc/original/1X/c26a6038453bfbdbc6ca57975a1fb74e2209db0c.png)

I’ve already set the context k=1,m=1 and so far I’ve done only this because I don’t know what to do next

---

<div class="post-metadata">

**Author:** ![mottelet](https://yyz2.discourse-cdn.com/free1/user_avatar/scilab.discourse.group/mottelet/32/13_2.png) [@mottelet](https://scilab.discourse.group/u/mottelet)\
**Post date:** [June 29, 2023, 4:30pm UTC](https://scilab.discourse.group/t/scilab-6-1-1-xcos-spring-movement-model/112/2 "2023-06-29T16:30:52Z")

</div>

Point 1 is missing. Namely, the definition of the input signal.

S.

---

<div class="post-metadata">

**Author:** ![adz1u](https://avatars.discourse-cdn.com/v4/letter/a/f08c70/32.png) [@adz1u](https://scilab.discourse.group/u/adz1u)\
**Post date:** [June 29, 2023, 5:28pm UTC](https://scilab.discourse.group/t/scilab-6-1-1-xcos-spring-movement-model/112/3 "2023-06-29T17:28:44Z")

</div>

F = -kx  
m\*((d^2 \* x)/(d \* t^2)) = -k\*x  
(d^2 \* x)/d \* t^2) = -(k/m)\*x

x - position  
(d \* x)/(d \* t) - speed  
(d^2 \* x)/(d \* t^2) - acceleration

![3](https://global.discourse-cdn.com/free1/uploads/utc/original/1X/3556a308f73551abf3baba727e7dc8dbf9e83648.png)

---

<div class="post-metadata">

**Author:** ![davidcl](https://yyz2.discourse-cdn.com/free1/user_avatar/scilab.discourse.group/davidcl/32/1029_2.png) [@davidcl](https://scilab.discourse.group/u/davidcl)\
**Post date:** [July 3, 2023, 7:53am UTC](https://scilab.discourse.group/t/scilab-6-1-1-xcos-spring-movement-model/112/4 "2023-07-03T07:53:43Z")

</div>

> [@adz1u](#):
>
> The model should enable simulations of changes over time (CSCOPXY time series)  
> a. Spring weight locations  
> b. Speeds  
> c. Accelerations

From my understanding, you should also have 3 CSCOPE to display these over time.

---

<div class="post-metadata">

**Author:** ![davidcl](https://yyz2.discourse-cdn.com/free1/user_avatar/scilab.discourse.group/davidcl/32/1029_2.png) [@davidcl](https://scilab.discourse.group/u/davidcl)\
**Post date:** [July 3, 2023, 7:55am UTC](https://scilab.discourse.group/t/scilab-6-1-1-xcos-spring-movement-model/112/5 "2023-07-03T07:55:36Z")

</div>

> [@adz1u](#):
>
> The model should also enable the study of the relationship between  
> (phase diagram)  
> a. location and speed  
> b. position and acceleration

These can be represented on 2 CSCOPEXY.

---

<div class="post-metadata">

**Author:** ![Vimsrocz](https://avatars.discourse-cdn.com/v4/letter/v/ed8c4c/32.png) [@Vimsrocz](https://scilab.discourse.group/u/Vimsrocz)\
**Post date:** [November 20, 2023, 2:56pm UTC](https://scilab.discourse.group/t/scilab-6-1-1-xcos-spring-movement-model/112/6 "2023-11-20T14:56:07Z")

</div>

I have already did something in MATLAB you can use it here too.

> **[Mass Spring Damping System](https://de.mathworks.com/matlabcentral/fileexchange/136294-mass-spring-damping-system?s_tid=prof_contriblnk)**
>
> How to develop Mass spring and damping system simulink with complex number of mass, spring and damper?
