Retaining batches across a loop restart

A LabVIEW pressure monitor has a While Loop containing a waveform chart terminal. The chart history is the stored sequence of points from earlier updates. Its history length is set to nine numeric points for its single plot, and it is empty before the first run.


Each iteration writes one one-dimensional numeric array directly to the chart. The array elements are pressure readings in kPa, ordered from earliest to latest within each batch.


The first run completes three iterations and stops. The program remains loaded, the chart history is preserved, and the same While Loop starts a second run. Nothing clears or otherwise modifies the chart history between runs. The second run completes two iterations and stops.


Run

Iteration index i

Array elements in arrival order (kPa)

First

0

38, 41

First

1

39, 44

First

2

42, 40

Second

0

43, 45, 41

Second

1

46, 44, 47


The figure shows all supplied readings in their overall arrival order.


Pressure readings from two loop runs are plotted in their overall arrival order.


At the end of the second run, determine the final iteration index, the total number of retained points, the number of retained points originating in the first run, and the oldest retained pressure in kPa. Enter exact integers for all four answers.

Your answers

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 The While Loop and Waveform Chart Questions: