Demo
Radio with an HMI
One player for internet stations and the RTL-SDR receiver: presets, memories, the scanner, recording and a live spectrum with RDS text, on a runtime HMI page.
Software-defined radio
A full radio receiver your Structured Text program controls, plus wireless sensors as tags.
Radio is one more input. The receiver is tuned, scanned and recorded from Structured Text like any other device, and a wireless sensor on the fence is as much a tag as a 4–20 mA transmitter on a panel: once it is a tag it can be logged, alarmed and acted on.
What it does
Broadcast FM, narrow FM, AM, upper and lower sideband and CW, tuning 0.5–1766 MHz, with an adjustable bandpass, squelch, live RF gain and an overload meter, all set from ST. Broadcast FM and NOAA weather radio heard on the air.
Scan a band or a memory list, or seek the next signal; up to 100 retained memories in the example project.
Record what the receiver plays to MP3 or WAV through the audio stream channel; gate it on the squelch and a scan becomes a log of what was heard.
Wide and channel I/Q feeds into ST; the FFT, statistics and the RDS decoder run on the compute engine, with zoom down to ±375 Hz, and the HMI draws the spectrum and waterfall.
Measure a dongle's crystal error against a known carrier and correct it in ppm, from ST.
While the receiver is idle it hops the 433, 915 and 345 MHz bands and decodes sensors in the runtime itself (Acurite 592TXR today), into a table ST reads by model, id and field.
The modes are built and tested on synthesized signals; on-air reception on HF needs a long-wire antenna.
A TEF6686 DSP FM/AM receiver as a second kind of tuner: its protocol layer is written and bench-tested against the board, wiring into the runtime to follow.
NOAA weather radio SAME alerts as runtime events; the decoder exists in the lab, runtime events to follow.
Watch it run
Videos for this section are in production.
Build it yourself
Demo
One player for internet stations and the RTL-SDR receiver: presets, memories, the scanner, recording and a live spectrum with RDS text, on a runtime HMI page.
Reference