Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

frame-based signals

Status
Not open for further replies.

mouradl

Automotive
Jul 31, 2005
1
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?
 
Replies continue below

Recommended for you

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.
 
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
 
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
 
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.
 
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?
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor