downsampling with rate transition block
I want to downsample a signal in Simulink, but as I don't have the Signal Proccessing Toolbox available, I am looking for a different way.
I noticed the rate transition block and having a look at the help I have the impression, that it has the same functionality. Has anybody experiences with it?
...Simulink rate transition block
Do I have to have a unit delay when upsampling the output of a slow
subsystem? I have an s-function that can generate a discrete output
at time t=0,1,2,3,... which I want to compare (in a scope) with
native Simulink blocks that output at say 0, 0.1, 0.2, 0.3,... This
requires a rate transition on the s-function output. I would expect
my s-function output to be held at f(0) until t=1 then step up.
However, the rate transition block won't pass through my f(0) value
until t=0.1 and it is always 0.1s behind from then on. If the
s-function output is available at t=0, why can't it be used th...How to use the rate transition block in simulink?
I am new to Simulink, especially designing discrete, sample-based,
The simulink manual on the rate transition block states that,
"the Zero-Order Hold block also enables transfer of data between
blocks operating at different rates. However, you should use the Rate
Transition block for this purpose because it is designed specifically
for this purpose, offers a wider range of options, and is easier to
I am sampling a higher (slower) rate data stream at a slower (faster)
rate and would like to know how I can use the rate transition block
to do the job, ins...Single-tasking mode and rate transition blocks
I'm afraid I haven't understood what the manuals tried to tell me
about single-tasking mode.
Let me resume what I already know(?):
Single-tasking mode does not inhibit multi-rate systems, but it
results in a single thread if real-time code is generated. The sample
time has therefore to be adjusted to meet the most critical case.
OK, here's my question:
Do I have to use rate transition blocks for single-tasking models if
real-time code is generated for them? By default, warnings or errors
concerning illegal rate transitions are disabled in this mode.
Hi Lar...Changing operation of rate transition blocks (Simulink)
I am using rate transition blocks in one of my Simulink/SPS models.The block is supposed to show a label on the block in order to indicate the type of operation (e.g. ZOH, 1/Z, NoOp, etc.). However, even if the block seems to work, it always shows: NoOp. Not sure why that is the case.
Instead of a ZOH, I would like to use a FOH operation of the rate transition block. However, it does not seem to be very straight forward task as the block itself does not allow for direct manipulation of the rate transition block operation.
My question is, does anyone know how to manipulate the operation of r...Problem with Rate Transition / Merge blocks in Simulink
I have a Simulink design that comprises of 2 sets of rate transition
blocks input to a Merge block.
The signal from 'my_design/Rate Transition' output port 1 is required
to be persistent, hence this signal cannot be connected to a Merge
Does the Merge block support different rate signals as its input? I
want to switch between two signals with different rates but do not
...Find corresponding From blocks in a Goto Block
is there a fast way to determine if a Goto block has corresponding
From blocks? I mean a way with simulink commands. I must find all Goto
blocks without an corresponding From block, so i can remove it.
My current solution is a brute force method that compares the TAG
infos from all Goto and From blocks.
If you have Embedded Coder then you can do this:
modelObject = get_param(modelName, 'UDDObject')
this will let you know which blocks are not needed
in...Dividing an image into 8X8 block and find histogram of each block
Can somebody help me with a code snippets to divide an image of size 352*288 to 8x8 blocks and to find histogram of each block? blkproc is not helping me as i need to access each block separately to find the histogram. A working code snippets will really help me. Thnaks in advance.
"Ayan " <email@example.com> wrote in message <firstname.lastname@example.org>...
> Can somebody help me with a code snippets to divide an image of size 352*288 to 8x8 blocks and to find histogram of each block? blkproc is not helping me as i need to access ...How to find blocks?
I'm a novice win32 programmer, trying to port some Unix code to win32.
It's a cpu-bound code and on Unix it will take up all available CPU. On
XP, per task manager it takes only about 50%. Just as a quick
sanity-check, I took a look at the stack snapshot during execution by
repeatedly breaking in debugger. At all times it was in the CPU bound
code. The code does work in that it finishes the computation, albeit not
at the fastest possible clip.
So, it must be blocking someplace, but how does one find out where? I have
heard of VTune tool from Intel, but I'm lookin...dividing a color image image in overlapping blocks and finding motion blurr for each block
i m doing a project on "forgery detection using motion blur". In that, i need to divide my image in overlapping blocks and then process each block. Can u please provide a code snipplet for the same.
...Finding blocks of patterns
I am looking for some software to do the following, and wonder whether
MatLab will enable me too do this, or whether there is a
cheaper/simpler solution available?
I have several sets of numbers, e.g. :
set 1 : 5, 4, 12, 15, 19, 15, 16, 19, 18, 21, 3, ....
set 2 : 1, 7, 4, 9, 22, 83, 17, 61, 1, 73, 15, 16, 19, ...
set 3 : 7, 93, 14, 73, 14, 25, 82, 21, 12, 17, ...
and so on...
and I am looking for some software which can read through the numbers
and find "blocks" of duplicated patterns between the different sets,
for example, if I ran it through the above s...Rate Transition blk
Please can any one tell me how to find rate transition
On Aug 16, 9:24 am, "Mutairu kadiri" <matrixx...@mathworks.com> wrote:
> Please can any one tell me how to find rate transition
> block. Thanks
Are you trying to do sample rate conversion? If yes,
- for upsampling, insert zeros between samples followed by filter
- for downsampling, filter, then take every other sample.
...finding sample rate
I have to take FFT of a signal, which will be in anywhere between
200-3000Hz.If I have to take FFT should I sample the signal only in
powers of 2(2 power 20 samples or 2 power 21 samples, ofcourse
atleast >6000 samples)?
Thanks in advance.
On 2007-08-29, Wills <email@example.com> wrote:
|"[..]If I have to take FFT should I sample the signal only in |
|powers of 2[..]?" |
|---------------------------------------------------------------...Finding the owner of a block.
When I run a lockstat -T sleep 5 in a solaris 9 box and I get the
Event Time Owner Lock Caller
2 1 2a100013d40 cpu+0x90 disp+0x90
2 1 2a100013d40 cpu+0x90 disp+0x90
2 1 2a100013d40 cpu+0x90 disp+0x90
2 2 2a100013d40 cpu+0x90 disp+0x90
2 2 2a100013d40 cpu+0x90 disp+0x90
2 2 2a100013d40 cp_default...how to find out in which enclosing block we are?
I would like to know whether there is a simple way how to get the
name of the block in which some code is placed. I have a code for some
logging like this:
(defconstant +development-version+ t)
(defvar *log-symbols* '(init config move pathfind))
(defvar *log-stream* t)
(defmacro logger (log-symbol message &rest rest)
`(when (member ,log-symbol *log-symbols*)
(format *log-stream* ,(concatenate 'string message "~%")
and I would like to automatically put the name of the function in the
output, so when I use it in:
...Finding blocks in Simulink
I hoping somebody may be able to help with a problem I have finding blocks in a Simulink model.
My model has a lot of block parameters which have a value specified by a structure in the base workspace named e.g. "MyData". The type of block may vary, but any parameter of the block may be set by a value such as MyData.Physics.Value1.
I want to programmatically find all blocks which use a "MyData." value in any of their block parameters. I can do this via the Find dialog really easily, but I need to do it programmatically.
find_system() does not appear to be able to ...Finding bytes in a block...
Is there a C++ or Boost function that finds a sequence of (consecutive)
bytes within a larger block of memory? Something similar to STL's
> Is there a C++ or Boost function that finds a sequence of (consecutive)
> bytes within a larger block of memory? Something similar to STL's
In header <algorithm>, you will find std::search(). Of course, it takes
iterators to the needle and to the haystack, but pointers qualify.
...rate transition errors
I am trying to fix a multirate simulink model. I am trying to
execute it as a fixed rate simulation. I am receiving a lot of rate
transition errors. What's confusing me is that I receive the errors
at simulink blocks that have the same rate color at the input and
output of the block? I'm surprised that I'm receiving errors at
these blocks. Any ideas? According to the system engineer, the
system will only work correctly if it's set at fixed rate.
...Find blocking process
we're having a problem with SQL 2000 and Opta 2000 JDBC driver
where there is large update running and at the same time,
read is blocked for a while.
We're looking for a way to catch this blocking process
and if it last more than 10 minutes, then email or send out a message.
I know sp_lock returns all current locks
but how do you know which one is blocking other processes?
Thanks for your help in advance.
neo (firstname.lastname@example.org) writes:
> we're having a problem with SQL 2000 and Opta 2000 JDBC driver
> where there is large update running and at the same time,
> r...multi rate blocks
I would like to ran one of the subsystem block in my Simulink simulation at a different sampling rate, is this possible in Simulink? It seems that the only way to do this is to generate a S-function of the subsystem but I am not sure if this is the only way.
Thank you, khalid
Choose parts of your model that you want to be discretize, and put them inside a subsystem. Click on the block parameters for the inports/outports, then signal attributes and change the sample time attributes.
Just note, you will most probably need rate transition blocks if connecting multirate blocks in series an...where to find utility blocks
i have communication toolbox and communication blockset but i want to
know where is utility blocks...so that i can use find delay block
....i use Matlab 6.5
"anupa" <email@example.com> wrote in message
> i have communication toolbox and communication blockset but i want to
> know where is utility blocks...so that i can use find delay block
> ...i use Matlab 6.5
According to the Communications Blockset Release Notes, the
Find Delay block was introduced in Version 3.0 (Release 14).
However, MATLAB 6...finding blocked processes
I need to check if one process written in VB is running,
because it makes an oracle connection, but this connetion sometimes go down,
and process doesn't go ahead.
I already made a program in C with winapi, that check process memory and
but I think it isn't the best way.
I found SendMessageTimeout funciton, but this Vb process doesn't have any
window: what I can do?
there are other type of messages?
Or, how can I check if process have an active tcp connection?
Thank you in advance, and excuse me, for my confused message.
"s...Finding who is blocking who (for dummies)
I would like a no-brainer procedure to list what user is blocking
what other user(s) by holding locks on what user-understandable
I did a search of the newsgroups and saw mentions of sp_who, sp_lock,
and sp_showplan, but it didn't sem that any one thing gave the straight
complete answer to what I'm looking for. (I may be wrong too though).
Try this ... it's a home grown SP (please improve it!!) ...
create procedure sp_block
declare @db_name varchar(30)
declare @command1 varchar(500)
if @@tran...Find out if a block has already been executed
Is there a block property which states whether the selected
block has already been executed or not?
I mean: given a complex Simulink model, when the simulation
starts all blocks should have this property saying 'this
block is yet to be run'.
As long as the simulation proceeds, more and more blocks
have 'done', till the end, when all blocks are marked as
When the same model is started again, all blocks should go
back to 'yet to run', and so on.
There must be something, somewhere, 'cause Simulink can also
show the execution order, but I cannot find...