An electronic system used for active control and optical frequency stabilization of a He–Ne laser is described. It is based on digital acquisition and signal processing, using minimum of analog electronics, and a personal computer (PC). Main functions of the system: phase sensitive detection, automatic control, and user interface, are performed in software. Simultaneous frequency and iodine cell temperature stabilization algorithm is described. Electronic system is compact (occupies only desktop PC case), inexpensive (commercial, of-the-shelf, components are mostly used), and can be easily upgraded and reprogrammed (new stabilization algorithms can be implemented). It is now a part of the primary length standard of Yugoslavia.