• Not Answered

DeltaV Live - Signal Animation

Hello, 

I'm struggling with how to animate a line style type in deltaV Live. In the past in operate I was able to change the line style based on the controllers mode of operation. I'm sure the solution will involve multiple lines with different styles and turning off visibility based on the variables but I'm unsure of how to set up the variables. I'm hoping to avoid creating a variable for each controller.

Thanks, 

1 Reply

  • Daniel,  As you know there is no Animation option on a line for Live.  The Line style, end line options and crossover effect do not have the diamond optino.

    Only the Line color and Line Thickness can be animated.  To animate the line thickness you need to return a "Measurement" type value.  I've struggled with this because if you select "animation" option, you get Value and Scale expressions that map to start and End Points and I've not been successful using this for measurements.  What I did was I created a Function that returns a measurement value.  I can then pass this what I want as a number and return it as a measurement. 

    The OOB functions include several measurement functions.  On is F_ActiveInacativeLineThickness.  This takes a value and if "Source == 0" it returns a Standard caled S_LightLine, (0.5 pt) or else S_Heavy line (1.5 Pt).  

    You could expand this to handle additional options based on the value of "Source" or create your own.  

    A more elaborate function was created to convert a scaled float value to a scaled Measurement, which I used to position line end points based on scaled x and y values from a Signal Characterizer.  

    The main point I bring this up is that the script for this function returns a measurement type value.  If I need the X position value to be 22 pt, the calculation can be made to generate 22, but to return it as a measurement type you need to do so explicitly.  So this function calculates the desired result in the OutVal calculation and the Conversion table script returns the measurement with 

    {

    return new Types.Measurement({Pt: OutVal });

    }

    if you wish to change the line type from solid to dash, you will need two lines and use visibility.

    When you animate Visibility, you have to define a result that is boolean true of false. There are different ways to do this.  SInce this is dynamic at run time, you are looking at a variable reference. Options:

    1.  With two lines, one expression is SourcePath== True, the other is SourcePath!= True, or SourcePath == False.

    2. You might want to group the two lines, create a variable on the Group that reads teh SourcePath.  Then in the Visibility animation of each line, look at this local variable.  You have one place to read runtime value and convert to Boolean and if that changes, you don't have to edit both lines.  Just the the variable animation.

    3.  You could have one line as default with no animation and the second line is on top, so that when it is visible, it hides the other line.  Only one line needs animation in this case.  Not valid if the purpose is to show a different path.

    Hope this was helpful.

    Andre Dicaire