Jump to content


  • Content Count

  • Joined

  • Last visited

About Ric

  • Rank

Profile Information

  • Are you University user?

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hi Tom, I'm attaching one method using the "Auto Restart" setting to run a sensitivity analysis, I've used your .vsm model as the example with instructions included. Ric Example_a_updateRK.vsm
  2. Ric


    Chinmaya, You are integrating a sin wave of the form 50sin(10*pi*t) The integral is (-50/(10*pi))cos(10*pi*t) + (5/pi which begins at 0 amplitude and peaks at 3.18 which is what you are seeing, I don't understand the question you are asking, can you further explain what you are trying to do or what you expect to see. Ric
  3. Ric


    I do not see any problem with your digital integrator, here's a comparison with a continuous integrator
  4. Ric

    ePWM Problem

    Javier, Please attach your Embed model, Ric
  5. Hi Rajath, Embed can import a Simulink model that is saved in .MDL format but there is no easy way to import an Activate model into Embed at this time. Ric
  6. Hi PaulFG, Please indicate the Embed version that is producing this error. We have seen problems with the F280049 board with some of the 2019.0.x versions. Please update to version 2019.1 and let me know if this problem goes away. Ric
  7. This PDF explains how to convert a C file into a block that can be included in any Embed Model. Include C functions to your model.pdf
  8. How do you include existing C code functions into an Embed model?
  9. Hi Sanjeevkumar, I'm attaching a .vsm model that illustrates how to implement a while and a for loop using a compound block. I'm also attaching a ppt file that explains how to setup a do loop. While and For Loops.vsm Do Loops.pdf
  10. Hi Priyanka, The most direct way to identify the frequency content of a signal is using the FFT option in the plot block. This technique will identify power at different frequencies over a frequency range starting at 0 Hz and going up to 1/(2*timeStep). In the example you used above, the timeStep is .01 seconds so the maximum frequency you'd be able to see in the data is 50Hz. You can test this by applying a 20Hz sinwave to a plot with timeStep = .01, select FFT, and you'll see a spike at 20 Hz only and the frequency range will begin at 0 and go to 50 Hz. Ric
  11. Hi Trido, The HotLink (Target Interface block) is not supported on the MSP430 because the JTAG unit always halts the CPU on an access making it unusable for control development. Ric
  12. Hi Trido, I'm attaching some information explaining how to setup and use the Embed SPI, you will need to modify it to fit your communication constraints. Ric SPI_RK.pdf
  13. Hi Jason S., Yes, Altair Embed Basic can be used for professional applications at your job. Ric
  14. You would need to use a discrete feedback system to solve this problem. In the model (below), your equation is implemented as; WF = WF_PreviousValue + AWA – SOA You need to specify the initial value of WF_PreviousValue on the first pass of the simulation. I have used the variable WF_Initial_Value (below) for this , you will need to assign it a value.
  15. Attached is a model that will allow you to adjust the phase lag between PWM1A and PWM2A on a F28069M launchpad. First generate code from the compound block entitled "PWM Phase Control" located in the "PWM with PhaseShiftv2.vsm" source model. Next, open the model "PWM with PhaseShiftv2-d.vsm", make sure the target interface block is pointing to the ".out" file you created in the first step, and run it. You will be able to adjust the duty cycle fraction as well as the phase angle fraction using the sliders. PWM with Phase Shiftv2.vsm PWM with Phase Shiftv2-d.vsm
  • Create New...