Main Content


Convert North American call letters to binary PI code



picode = callLettersToPICode(rbdsgen,callLetters) returns the 16-bit program identification (PI) code that corresponds to callLetters.


collapse all

Use the callLettersToPICode object function to generate the PI code for an RBDS waveform.

rbdsgen = comm.RBDSWaveformGenerator;
callLetters = "WLIR";
ans = 1×16

     0     1     1     1     0     0     1     0     1     0     0     1     0     1     0     1

Input Arguments

collapse all

RBDS waveform generator object, specified as a comm.RBDSWaveformGenerator object.

Radio station call letters, specified as a three- or four-character string or character vector. Acceptable call letter formats are three-character or four-character vectors beginning with 'K' or 'W'.

Example: "WLIR" or "KPOA"

Data Types: char | string

Output Arguments

collapse all

Program identification (PI) code, returned as a 16-bit row vector. In North America, the PI code conveys the call letters of the station.

Version History

Introduced in R2017a