Skip to content

This example implements a difference equation simulation on SimulIDE

License

Notifications You must be signed in to change notification settings

fermarsan/Diff_Equ_sim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Difference Equation Block on SimulIDE

This example implements a difference Equation (up to $3^{rd}$ order) Block simulation on SimulIDE, as a Script (Angel Script).

This is done for implementing discrete system simulations on SimulIDE.

This repository includes 2 usage examples:

  • Diff_Equ_test.sim1 RC discrete circuit simulation $f_s = 50 Hz$

  • Diff_Equ_test_2.sim1 Unstable 3rd order system simulation $f_s = 50 Hz$

Usage

You have to copy the component's folder inside a one in the user data folder, for instance ~/User_data/testand associate it in Simulide. You can see how to do this in the official SimulIDE's Tutorials:

The difference equation constants:

$$ H(z) = \frac{B_0 \cdot z^{0} + B_1 \cdot z^{-1} + B_2 \cdot z^{-2} - B_3 \cdot z^{-3}} {A_0 \cdot z^{0} + A_1 \cdot z^{-1} + A_2 \cdot z^{-2} - A_3 \cdot z^{-3}} $$

can be set once the block Diff_Equ is added to the schematic, left-clicking on the component and selecting propertiesoption:

About

This example implements a difference equation simulation on SimulIDE

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published