×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

frame-based signals

frame-based signals

frame-based signals

(OP)
Hi,
I am looking for a way to transform a 1-D vector of say integers in simulink to a series of integers and send them in separate time smaples so that they can be used by a block having an integer inputport of width 1.
Did anybody work with frames in simulink? could they be the solution for my problem?

RE: frame-based signals

Hi, you can use an DEMUX block to split the vector in single Elements, then you could delay or trigger (or something else) the signals and put them together with a MERGE block to get a Signal with the width of one.

RE: frame-based signals

Hi..
I have a similar question. But my input array is very large. I have 661419 elements that I am trying to break into blocks of 5 elements each and send each frame of the 5 elements as input to an encoder block. My biggest problem is breaking the huge 1D array into frames that have 5 elements each. I tried using the Demux but that hung my system. Since you have had a similar problem I was wondering if you have any recommendations to make.
Thank you

RE: frame-based signals

Perhaps I have an solution. You read in your array with a specific Sampletime. And you use for an block of 5 Elements, 5 triggered subsystems and connect the outputs with an mux block . At first timestep you trigger the first subsytem, at the second timestep you trigger the second and so on. After five timesteps you have an array with your five Elemts. The output of your mux block is also connected with an triggered subsystem. This is triggered always after five timesteps. So you get always after 5 timesteps an Array with 5 Elements.
I hope that will help you   

RE: frame-based signals

Thank you for the solution. I had solved my problem just two days before by using the signal from workspace block from the DSP blockset and setting it to frames (rather than samples) and a specified frame size. I had previously tried "From workspace" but not signal from workspace.

RE: frame-based signals

hello,
I have a similar question too.I have a function in time. And I want to find max or min function in period in time. For example: I have sin function and i want to find max function between 0-1 second and I want to do each second. I tried to use max block but it shows me the same signal how I have in input because it finds the solution in the same time what value.If I put sample time, simulink cut all values between samples:/ Maybe somebody had similair problem?

RE: frame-based signals

I think you should use the "MinMax_running_resttable" Block. So you could read out your value and reset the Block, so its starting again.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login


Resources

Low-Volume Rapid Injection Molding With 3D Printed Molds
Learn methods and guidelines for using stereolithography (SLA) 3D printed molds in the injection molding process to lower costs and lead time. Discover how this hybrid manufacturing process enables on-demand mold fabrication to quickly produce small batches of thermoplastic parts. Download Now
Design for Additive Manufacturing (DfAM)
Examine how the principles of DfAM upend many of the long-standing rules around manufacturability - allowing engineers and designers to place a part’s function at the center of their design considerations. Download Now
Taking Control of Engineering Documents
This ebook covers tips for creating and managing workflows, security best practices and protection of intellectual property, Cloud vs. on-premise software solutions, CAD file management, compliance, and more. Download Now

Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close