-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Text in icons of sensors #2628
Comments
In electrical engineering we use the unit within the circular sensor symbol to indicate which meter it is. Therefore, for a power meter we use "W" to indicate it as watt-meter. How do other engineers indicate their sensors? I do not know. |
This issue is actually also linked to #2471 (comment), where I proposed color code (128,128,128) for descriptive text of an icon. The text of the unit / quantity / whatever should actually also use the proposed color code. |
This probably could be solved elegantly by having a proper base sensor icon class which allows for the label (e.g., P, I, V, dp, H, M) and maybe the optional |
As for unit vs. quantity. Maybe the display of |
Quantity might be less ambiguous than unit in case of unit ≠ displayUnit. |
I agree that case of unit ≠ displayUnit is important, but I am unsure about the implication - consider Modelica.Fluid.Examples.DrumBoiler.DrumBoiler |
I totally agree. We need to come up with a decision. The majority of sensors in the MSL places a black label of the quantity next to the output(s) of the sensor. Personally I am used to indicate an Ampere meter by "A" not "i". For the sake of consistency I have no issue to switch to "i". @AHaumer Do you have any objections against "i" for an Ampere meter? |
Once we come up with a decision we need to write it down in |
I dislike "i" for Amperemeter - lots of electrical engineers won't understand. They're used to read "A". |
So we should probably unify it to have the unit displayed in the icon? |
So the SI unit is also OK to me. If we speak of unifying it, is it meant to unify it in all sensors of the MSL? Or do we mean only the electrical sensors? There are yet some other open questions we shall agree on when unifying the sensors. A. What color shall the unit have? We have nothing on this question in the icon guidelines yet.
B. In case ft is a single output sensor: shall the SI units be placed inside the circle or next to output? C. In case of a multi output sensor: shall the SI unit be placed next to every signal output; there may, however, not be sufficient space... E. Shall non output connectors also have a label, as Here some color / location / size examples: |
With regards to the coloring (point A), I'd prefer if we used a dark gray, for example {64, 64, 64}. It's easy to see, without being glaring (like black and blue is). (Just as a side note, in the MSL we ship in Wolfram SystemModeler, we change all label colors, including %name and parameters, into {64, 64, 64}, because we consider the current default coloring to ugly and unprofessional.) |
Since there haven't been any objections (neither other proposals), I propose to move on with the following suggestions.
@christiankral Can you move on and prepare a PR for it? |
I will prepare a PR -- I suppose for all packages of the MSL. This will hopefully not cause any conflicts as there may be some open PRs. Additionally, I will create a PR adding the applied rules to the MSL User's Guide. |
Thanks.
Conflicts mainly occur in ModelicaTestConversion4.mo or ConvertModelica_from_3.2.3_to_4.0.0.mos which are easy to handle in case of additions. |
Also fix some minor color issues of lines used in sensor icons
Also fix some minor color issues of lines used in sensor icons
Minor update of line color
Also fix some minor color issues of lines used in sensor icons
Minor update of line color
Add some icons to improve modularization of sensors and sources
Changes were automatically done by Dymola
…lity Adds some automatic changes from textColor to lineColor performed by Dymola
@christiankral Shall I proceed with |
@tobolar Please go ahead with |
@christiankral
I suppose we could apply this rule to another text in icons as well. So I'm going to adapt the icons accordingly provided you have no objections. |
@tobolar OK, I am fine with all your proposals. |
@christiankral Please add your review on #3107. The changes there comply with the picture above. |
Can this be closed? |
It should be harmonised which text is used in sensors.
Thermal.FluidHeatFlow.Sensors.VolumeFlowSensor
Electrical.Analog.Sensors.CurrentSensor
Mechanics.Rotational.Sensors.PowerSensor
Refs #2627
The text was updated successfully, but these errors were encountered: