Apply a Multiplier (Scale) to the X and Y Coordinates on a Graph

Updated Jun 6, 2018

Reported In

Software

  • LabVIEW

Issue Details

  • I want to scale the X and Y coordinates on my graph. How do I apply a multiplier (gain) to the X and Y coordinates on the graph?
  • I am plotting a sample on my graph every second, but want the X coordinates to be in minutes rather than seconds. How do I change the X scale of my graph?

Solution

To scale Y coordinates on your graphs you will need to create a property node and use the YScale.Multiplier property.
  1. Right-click the graph indicator and selecting Create » Property Node » Y Scale » Offset and Multiplier » Multiplier
  2. Right-click the property node and select Change All to Write.
  3. Wire a constant or control into the property node to set the value of the multiplier

Repeat steps 1 - 3 to scale the X coordinates of your graph, but in this case use an X Scale » Offset and Multiplier » Multiplier property node.
 

Additional Information

You can also apply an offset to the coordinates by using the Y.Scale.Offset property found under the YScale » Offset and Multiplier » Offset menu path.

If you write to multiple properties in the same node, ensure that the Multiplier and Offset properties are the highest in the node (a property node will execute from the top down). If they are not the first properties modified, they may not update until the next iteration due to internal dependencies.
 

WAS THIS ARTICLE HELPFUL?

Not Helpful