Info

This question is closed. Reopen it to edit or answer.

Different behaviour in model when inserting a scope in the design.

2 views (last 30 days)
Hi,
We are a group that are implementing the physical layer of the IEEE 802.11a standard in a course at the university. However we have hit a problem that we can not solve. Our examiner has just told us to ignore it and move on but that is not something we are happy to do.
Our design is built around one transmitter and one receiver. The problem is in the receiver when trying to generate a valid signal when we have detected the data transmission. If we however adds a scope that observs both the valid signal in the transmitter and the receiver the valid signal is generated correctly. But without the scope it is not.
So the question is why does the insertion of a scope change the behaviour of the system? Shouldn't the scope just observe?
We are using simulink 7.3 (R2009a)
  1 Comment
Fangjun Jiang
Fangjun Jiang on 4 Nov 2011
Are you generating C code from your Simulink model and then run it in a hardware target? I know there is bug reported regarding code generation involving the Scope block.

Answers (1)

Guy Rouleau
Guy Rouleau on 4 Nov 2011
Enable the block Sorted Order and see if it changes when adding the scope or not:
Try disabling some optimization like Conditional input branch execution
If these options change the results, it is because either you use the blocks in a way that they have not been designed for, or this is a bug.
I recommend contacting support with your model to get a clear explanation, without the model this is just guessing.
  1 Comment
Jonas
Jonas on 5 Nov 2011
Thanks for your answers. When looked into we found that the optimization does not affect the design but the order indeed changes inside the design once the scope is added/removed. However we have not been able to change the order of execution without affecting other parts of the design but at least now we know were to look so once more thank you Guy.

This question is closed.

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!