Building a scripted XY plot in order

A LabVIEW VI computes a beam's deflection y at a set of positions x inside a MathScript Node and shows the deflected shape on an XY Graph. The block diagram is already built and wired. Put the events in the order they happen when the VI runs, following the data from the script to the displayed plot.

  1. 1.

    The XY Graph on the front panel plots each y value at its own x position.

  2. 2.

    The Bundle function combines the two arrays into a cluster with x as the first element.

  3. 3.

    The node passes the two arrays out through its output terminals named x and y.

  4. 4.

    The XY Graph terminal on the block diagram receives the cluster.

  5. 5.

    The script inside the MathScript Node executes and assigns the x and y vectors.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More MathScript Node and XY Graph Questions: