Community Profile

photo

Zack Peters


MathWorks

52 total contributions since 2013

I am in the Advanced Support Group here at MathWorks.

Contact

Zack Peters's Badges

  • Knowledgeable Level 3
  • First Answer

View details...

Contributions in
View by

Answered
I want to simulate the Point Reactor Kinetic Equations in Simulink. Solving the equations using ODE45 in MATLAB works fine but the Simulink model never achieves steady state. Can someone advise?
Hi Vikram, While the algorithms for the ODE45 are the same across Simulink and MATLAB, they are implemented in different...

3 years ago | 0

Answered
How do I use Git for version handling Simulink files?
Hi Nils, The SLX file format can be considered a binary file and could be treated in GIT as any other binary file, i.e. it ca...

3 years ago | 2

| accepted

Answered
Implementing a improper discrete-time transfer function into Simulink.
The improperness of your system translates to using derivatives in your math. This works out fine in theory because the inverse ...

3 years ago | 0

Answered
Were does to oscillating come from?
Hi Jan, Quick look at hte model shows that your 'u' signal hovers around '0' at around time 2.79. When that happens, your F_l...

3 years ago | 0

Answered
C++ class interface for Simulink and MATLAB with support for code generation
Hi Carlo, Most of our customers achieve this through C-MEX S-functions. To support code generation you will also need to writ...

3 years ago | 0

Answered
Embedded C Code generation Error ???
Hi Bala, Have a look at this Bug Report, the stack is somewhat related: <https://www.mathworks.com/support/bugreports/1357...

3 years ago | 0

Answered
How do i resolve this error for converting my Simulink Subsystem into a verilog code?
Hi Devendra, I believe that the error message is asking you to specify the 'Output Minimum' and 'Output Maximum' for the 'Tes...

3 years ago | 0

Answered
How can I implement inertia in my control system?
Hi Igor, Your question is a bit vague on what you specifically want to model with this. Moment of Inertia follows to the simp...

3 years ago | 0

Answered
How do I automaticaly change values of blocks inside a reference model?
Hi Pablo, What you are looking for is what we call the "Model Workspace". It allows you to pass in data that is scoped only t...

3 years ago | 0

| accepted

Answered
Where can I find the 'Flight Simulation Project Template'?
Hi Zexiang, If you type 'simulink' in the command window of MATLAB R2016a+ it will open up the Simulink Start Page. From ther...

3 years ago | 0

Answered
Develop circular buffer block in Simulink
Hi Francesco, The MATLAB Function block is a good way to do it. One limitation is variable sample times at in/out. Meaning if...

3 years ago | 1

| accepted

Answered
How to pick up an 'index number' of a function in Simulink?
Hi Hancheol, Here is one example to help get you started. THere's a lot of different ways that you can do this one, I just th...

3 years ago | 0

| accepted

Answered
g input for Three-Axis Inertial Measurement Unit block
Yes, the rest of the block accepts inputs in the form of body-fixed axes, so the gravity input should follow along the same line...

3 years ago | 0

Answered
Problem on linking to DOORS
Try looking through these help pages: http://www.mathworks.com/help/slvnv/ug/diagnose-and-fix-dxl-errors.html http://www.m...

3 years ago | 0

| accepted

Answered
Is it possible to view a signal in "Display" block in real time durring simulation?
Hi Matico, A few ways you can do this. 1.) The easiest is using the <http://www.mathworks.com/help/simulink/slref/display....

4 years ago | 0

| accepted

Answered
Multiple Stateflow Charts Algebraic Loop Error
There needs to be an order for the two chart calls. Let's assume for a second that chart_1 get's called first and is followed by...

4 years ago | 0

Channel


Arduino MEGA

6 years ago

Answered
How to convert 70 kA/MW to per unit??
Hi Prasun, I would recommend looking at the following Mathworks documentation link for more information on the conversion of ...

6 years ago | 0

Answered
Implementing model references with SimMechanics and SimHydraulics
Hi Maximilian, Currently there is no way to pass the port across a model boundary. If you are just looking to componentize yo...

6 years ago | 0

Answered
Default Deactivation of "Limit data points to last" in Simulink Viewer
Hi Martin, Currently there is no way to set this on a model level or at the Simulink preferences level. One thing you may try...

6 years ago | 0

| accepted

Answered
How to modify a Simscape element parameter during simulation?
Unfortunately, nearly all of the parameters are not tunable during the course of a simulation. As a workaround to this, you can ...

6 years ago | 0

| accepted

Answered
How do I disable warnings about scope signals in referenced models (Simulink)?
Hi Matt, If you cannot find it within the model's configuration parameters -> diagnostics pane, then I would take a look at o...

6 years ago | 0

| accepted

Answered
Issues with Raspberry Pi Firmware Update
Hi, Maybe this will help: <http://www.mathworks.com/matlabcentral/answers/95657-why-do-i-receive-a-timeout-error-when-down...

6 years ago | 0

Answered
How order my own Simulink library in folders?
Unfortunately, there is no easy way to do this. If you double click on the bad link in one of your models, you can see that its ...

6 years ago | 0

Answered
How can I use NI-PCI-6010 DAQ Device in Simulink?
The Data Acquisition Toolbox does support the NI PCI-6010, as you have linked above. However, Real-Time Windows Target does not,...

6 years ago | 0

| accepted

Answered
How can I put a signal (angle) on a joint actuator
Hi Bastiaan, I believe that the Joint Sensor block is expecting an input signal with a width of 3, which translates to angle/...

6 years ago | 0

Answered
Simulink model and function file mexw32
The Embedded Function block generates a MEX file out of the MATLAB code that is in it. In order to successfully do so, it requir...

6 years ago | 0

Answered
function file mexw32 format error in simulink model
The Embedded Function block generates a MEX file out of the MATLAB code that is in it. In order to successfully do so, it requir...

6 years ago | 0

Answered
how to open many matlab instances from matlab?
Hi Mario, An alternative is to use the Parallel Computing Toolbox to open up several MATLAB workers and run commands on each ...

6 years ago | 1

Answered
Input ("u") index must be a positive integer in the expression: 1.5*u[n]-0.5*u[n-1]
Hi Alexa, I was able to reproduce the issue on a much smaller scale (see attached). The |BlockType| of |Fcn| above makes me b...

6 years ago | 1

| accepted

Load more