Source: https://www.openeering.com/sites/default/files/LHY_Scilab_Xcos_Tutorial_Part2.pdf