Cant add tow deffrent time signals to a scope

2 次查看(过去 30 天)
Iam using sime event.. Ihave a signal from Nserver and i can easly connect it to a scope and every thing is ok ... a second signal is generated from signal builder block (new custom signal) so i can choose like 20 X axes values and 20 Y axes values to generate the signal and the secon signal can also be connected to a scope and the graph is shown perfectly... The problem accure when i want to add the tow signal by '' add'' block and when i connect the output of the "add" block to scope it gives me the following error message (insert either the timed to event signal or the timed to event function-call block frome the gateways library)

回答(1 个)

Adithya
Adithya 2023-4-24
It seems like you are trying to add two signals using the "add" block in Simulink, but encountering an error when trying to connect the output of the "add" block to the scope. The error message suggests that you need to insert either the "timed to event signal" or the "timed to event function-call" block from the gateways library.
This error message may indicate that the signals you are trying to add have different sample times or data types. The "timed to event" blocks can be used to synchronize signals with different sample times or to convert signals between different data types.
You can try inserting the "timed to event signal" or "timed to event function-call" block between the output of the "add" block and the scope to see if this resolves the error. Alternatively, you can try adjusting the sample times or data types of the signals to ensure they are compatible for addition.
It's also possible that there may be other issues with your Simulink model that are causing the error, so you may want to review your model and check for any other potential issues.

类别

Help CenterFile Exchange 中查找有关 Discrete-Event Simulation 的更多信息

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by