FlexPro Forum – Discuss Your Topic!

Unit monitoring BUG FlexPro 9.1.15

Home > Community > FPScript > Unit monitoring BUG FlexPro 9.1.15

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #12881
    HerveM1234HerveM1234
    Participant

    Hi,

    If Unit manager is set to “none” : the formula doesn’t keep the unit of the source signal ! Why?
    If it sis et to “Tolerant” or “Moderate”, the formula keeps the the source signal unit. OK but why ?
    If the a function is called by the formula (when Unit manager is set to moderate or Tolerant) the formula return an error :
    “Wrong unit for the data type conversion operation. If the operand has a unit, the unit must have the SI dimension of one.”

    Is there a way to set the behaviour of unit management like in FlexPro8?

    #8541
    HerveM1234HerveM1234
    Participant

    Hi,

    If Unit manager is set to “none” : the formula doesn’t keep the unit of the source signal ! Why?
    If it sis et to “Tolerant” or “Moderate”, the formula keeps the the source signal unit. OK but why ?
    If the a function is called by the formula (when Unit manager is set to moderate or Tolerant) the formula return an error :
    “Wrong unit for the data type conversion operation. If the operand has a unit, the unit must have the SI dimension of one.”

    Is there a way to set the behaviour of unit management like in FlexPro8?

    #9393
    Bernhard KantzBernhard Kantz
    Participant

    If one performs an mathematical operation on a datasets with units all units will be stripped off when the unit manager is set to none.
    When the unit manager is enabled, all computations take account of the units involved; e.g. when you have a signal with unit V and you multiply it with a signal with unit A, you get a signal with unit V A that can be converted to W using the Unit operator.
    Depending on the function, it may not make sense to apply it to an arbitrary physical value. For example the Sin() function can only be applied to angles. To synthesize a sine wave based on a time series (with unit convertible to s) one can write:

    
    Dim t = (500, 0, 10 ms)
    Dim y = 4.2 V * Sin(2 Pi * t * 1.2 Hz)
    Signal(y, t)
    

    The automatic determination of units can be a powerful tool to spot physically absurd calculations as adding voltages and currents.
    To get rid of a unit one can use the Value operator.

    There is no way to get the faulty behavior of unit management in FlexPro 8.

    #9394
    HerveM1234HerveM1234
    Participant

    OK for that !
    It’s a lot of work to check units during calculation cycle.
    But :
    If I want to display (as previouly) on a same graph e.g. a curve with Yaxis in V and Xaxis in s + using Data Labeling the values from another dataset e.g. times duration of events on the curve. This second dataset unit is in s and cannot be displayed due to unit checking !!!

    “The FPScript expression specified for the Y component of curve 1 has incompatible unit.The data cannot be converted to the unit of the assigned axis …”

    Why isn’t it possible to display in text 2 different curves with units different on the same graph ?

    https://weisang.com/en/support/forum/?tx_mmforum_pi1%5Baction%5D=list_post&tx_mmforum_pi1%5Btid%5D=629

    #9397
    Bernhard KantzBernhard Kantz
    Participant

    Using the unit manager may be inconvient on the first sight, but can easily reveal a multitude of calculation errors that otherwise can be hard to track or even worse remain undiscovered.

    If you want to depict graphs with different units, you can add an extra y axis for each unit involved. In your case, a second axis (maybe placed on the right side of the diagram) with unit s allows you to depict the timing graph in the same diagram.

    This will be automatically supported; when you drag a dataset with an incompatible unit into an existing diagram, a proper axis will be inserted. Also if you create a diagram when some signals with different units are selected, the appropriate number of axes will be generated.

    #9398
    HerveM1234HerveM1234
    Participant

    I don’t want to add an y-axis on the graph !!!!
    I just want, as previously, tag the curve with information such as durations, peak value, …
    Why, even if the unit is not “correct” according to FlexPro standards, it is not displayed? Why do FlexPro thinks it has to decided instead of the user ???

    I think I have set unit manager to “none” or select a more FLEXIBLE software than this RIGID one !!!!

    Customer expectations are not important …

    #9399
    Bernhard KantzBernhard Kantz
    Participant

    If you use unit management, there is no way to circumvent the need for an extra axis to display a dataset with an physically incompatible unit. But you can decide not to display it. Just disable the drawing of Division Labeling, Axis Labeling and remove the checkmarks on the Appearance page of the axis’ property dialog.
    When you don’t want to benefit from the automatic scaling and unit calculation features, you may add the desired labelings manually to the desired axis.

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.