← All courses

Arrays and Buffers

Store, process and track groups of values

Read caller-owned arrays, capture and summarise readings, scale a sensor bank, then track parts with a queue, a stack, a rolling average and a shift register.

  1. 0

    Reads a part ID from a selected storage slot and reports an invalid selection.

    Read a Storage Slot

    EXERCISE
    Difficultyeasy
    Statusunknown
  2. 1

    Clears old measurements from an array and resets the recorded reading count to zero.

    Reset the Sample Buffer

    EXERCISE
    Difficultyeasy
    Statusunknown
  3. 2

    Captures eight live readings and holds the snapshot until the next request.

    Capture Machine Readings

    EXERCISE
    Difficultyeasy
    Statusunknown
  4. 3

    Reports the average of the lowest three and of the highest three among eight readings.

    Measure Reading Extremes

    EXERCISE
    Difficultymedium
    Statusunknown
  5. 4

    Reports the average and spread of the valid readings among eight.

    Measure Reading Spread

    EXERCISE
    Difficultymedium
    Statusunknown
  6. 5

    Converts eight raw sensor readings into engineering units on request.

    Scale a Sensor Bank

    EXERCISE
    Difficultymedium
    Statusunknown
  7. 6

    Stores a part in the first empty carrier slot and reports whether it was accepted.

    Allocate a Carrier Slot

    EXERCISE
    Difficultymedium
    Statusunknown
  8. 7

    Queues up to four part IDs and releases them in arrival order.

    Queue Parts for Processing

    EXERCISE
    Difficultymedium
    Statusunknown
  9. 8

    Stores up to four tray IDs and removes the most recently added tray first.

    Manage a Tray Stack

    EXERCISE
    Difficultymedium
    Statusunknown
  10. 9

    Averages the latest eight accepted measurements, using only received samples during warm-up.

    Average Recent Measurements

    EXERCISE
    Difficultymedium
    Statusunknown
  11. 10

    Tracks which positions of an indexing conveyor hold a part as it advances and reverses.

    Track an Indexing Conveyor

    EXERCISE
    Difficultyhard
    Statusunknown
  12. 11

    Captures eight readings and holds their average, spread, extremes and first out-of-limit position.

    Produce a Readings Report

    EXERCISE
    Difficultyhard
    Statusunknown
  13. End