A MathScript Node in a LabVIEW VI models the position of a slider during a short test with the script below, where t is time in seconds and y is position in centimetres. Its outputs t and y are 1D arrays of DBL, bundled with t first and wired to an XY Graph.
t = 0:0.5:2; y = 2*t.^2 - t;
Complete the table with the coordinates of every point the XY Graph plots, in the order they are stored in the arrays. Enter exact values: times in seconds and positions in centimetres.
Unlock full course notes by signing up
Locating a sample on an XY curve
A legacy LabVIEW MathScript Node generates a predicted position curve with this script:
The array t is in seconds. The coefficient 0.800.800.80 has units of m/s2\text{m/s}^2m/s2, and the constant 1.201.201.20 is in metres. The arrays are bundled with t first and d second for an XY Graph.
What is the vertical coordinate of the fifth sample, counting the first stored sample as sample 1? Answer in metres, to two decimal places.
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.
Reordering coordinates without changing measurements
A frequency-response test stores measurements in the following acquisition order:
The frequency array is sorted into [100 200 300] before being bundled as the first element of an XY Graph input cluster. The graph will join the points in their stored order.
Which amplitude array should be the second cluster element to preserve the measured frequency–amplitude pairs while connecting points in increasing frequency?
Comparing curves with different sampling times
A LabVIEW XY Graph must compare a scripted actuator prediction with recorded measurements. Both time arrays start at the same physical instant.
Simulation: t_s = [0 0.5 1.0] in seconds and d_s = [0 2.0 4.0] in millimetres.
Recorded data: t_r = [0 250 1000] in milliseconds and d_r = [0 1.0 3.6] in millimetres.