Enclosed, please find a screenshot along with the xcos model.
I am seeking clarification on why the scope output varies with changes in the period time of CLOCK_c.
I’m unsure where my approach might be incorrect. The model with a period time of 0.001 aligns with my measured data, which was obtained with a sampling rate of 10 milliseconds.
I would greatly appreciate any insights or feedback. Thank you!
p = [0.1472152 13.846622 0.301877 3.]
xcos("X:\Period.zcos")
Please increase the buffer of “To Workspace sim Variable”
I tried to compare my results between the Xcos Simulation and Scilab.
After you run the above simulation, it exports the data to the Workspaxe variable ‘sim’
Unfortunately the results do not fit. What is it, that I am doing wrong?
// run xcos Model in Scilab
importXcosDiagram("X:\Period.zcos")
typeof(scs_m) //The diagram data structure
scs_m.props.context //the embedded definition
xcos_simulate(scs_m, 4);
t=0:0.01:15;
p = [0.1472152 13.846622 0.301877 3.]
yfit = p(1)+p(2) * (1 - exp(-t / p(3))).^p(4);
// sim variable created by the xcos model
//compare model with yfit function
plot2d(sim.time,sim.values)
plot2d(td,yfit,-1)
I am currently experiencing some confusion. It’s possible that I have incorrectly identified the transfer function. Could Scilab be used to generate the transfer function for the system’s behavior in the time domain? The equations are:
Which is the target, the signal in the time domain or the transfer function ? Because the ones you have defined above cannot match. A product in the frequency domain amounts to a convolution in the time domain.
I have analyzed the step responses from my measurements and discovered that the function
yfit = K*(1-exp(-t/T1)).^3;
accurately describes the behavior.
I am realizing now that I seem to have lost my expertise after what feels like 20 years of practice.
Perhaps I need to reformulate yfit in order to develop a PT3 model for the Laplace domain. I think I might have a conceptual error here.