Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
Is it possible to inherit units for port in a for each subsystem?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I have a vector of signals with a unit specification of km/h that are routed to a for each subsystem on a partitioned port.
Inside the for each subsystem I have a unit conversion block to convert from km/h to m/s for a port that has a m/s unit specification
Simulating this results in an error
Caused by:
Unable to convert between '' and 'm/s' because an empty unit ('') indicates that the unit is unspecified. Consider using a Signal Specification block to specify a unit.
When I enable display units on signals, Simulink displays the correct signal unit both inside and outside the for each subsystem, but it does not seem to evaluate correctly.
If I do not partition the signal, the units are propagated correctly.
Is there a way to have the units propagated automatically for a partitioned signal, or do I need to specify the unit type on the input port?
Using Matlab 2017a
Cheers, Chris
2 Kommentare
Rollin Baker
am 13 Apr. 2017
Hi Chris,
What do you mean by a "partitioned" signal? Would it be possible to share screenshots of both scenarios?
Antworten (0)
Diese Frage ist geschlossen.
Siehe auch
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!