Back to Projects
Control Systems

2024 Control Systems Engineer
LabVIEWNI DAQControl Systems
Figure 0 · Exploded view
Loading 3D exploded view…
01 / Problem

Problem

Automate a benchtop widget assembly cell that sorts incoming parts by type, assembles two of them into a sub-assembly, and rejects any failed inspection — all with graceful recovery from power loss and hopper overflow.

Figure 1. Figure 1. Production state machine — every transition journalled to disk for power-loss recovery.
02 / Approach

Approach

A LabVIEW state machine on an NI USB-6009 DAQ. Four optical sensors along the conveyor map to four states; two solenoid gates handle sort decisions; a webcam-based inspection step gates the final accept/reject. Every state transition is written to a journal file so the system can recover to the last consistent state after a power cycle.

03 / Implementation

Implementation

The control logic uses a PID loop on the conveyor DC motor to hold belt speed within 1 % of setpoint. The hopper sensor triggers an emergency-stop subroutine when overflow is imminent and pings the operator HMI with an audible alert. The LabVIEW dataflow paradigm made parallelism cheap — sensor polling, control, and HMI run in three independent loops with almost no boilerplate.

Sort error rate over 1000 cycle run

Figure 2. Figure 2. Sort error rate per 100-cycle batch. Errors drop to zero after the first three tuning batches.
04 / Results

Results

Over a 1000-cycle continuous run, sort errors dropped from 4 in the first batch (operator-tuning phase) to 0 in the final eight batches. Recovery from forced power-cycle succeeded in all 10 test pulls.

05 / Lessons

Lessons

Journalled state machines are dramatically easier to reason about than ad-hoc resume logic. Once the state diagram exists, the journal file is a one-line write per transition — and recovery becomes the same code path as a normal start, just with a non-default initial state.

Gallery

HMI/control panel mockup — dashboard with sensor indicators, start/stop, gauge, slider.
Conveyor sorting robot rig — bench-top assembly with belts, rollers, sensors, wiring.