Main Content

Sources and Sinks

R2026b
Input and output signals and sequences, and file IO formats

Generate signal source data and noise to simulate communication links. Visualize and analyze the performance of your communications system simulation.

To process captured signals, Communications Toolbox™ supports binary baseband signal and NI™ technical data management solution (TDMS) format files. You can read data into tables or timetables by reading TDMS files individually, or by reading collections of TDMS files simultaneously.

Apps

Wireless Waveform GeneratorCreate, impair, visualize, and export modulated waveforms

Functions

expand all

randiUniformly distributed random integers
randerrGenerate bit error patterns
randsrcGenerate random matrix using prescribed alphabet
commsrc.combinedjitterConstruct combined jitter generator object
commsrc.patternConstruct pattern generator object
zadoffChuSeqGenerate root Zadoff-Chu sequence
mask2shiftConvert mask vector to shift for linear shift register
shift2maskConvert shift to mask vector for linear shift register
wgnGenerate white Gaussian noise samples
biterrCompute number of bit errors and bit error rate (BER)
eyediagramGenerate eye diagram
scatterplotDisplay input signal in IQ-plane
symerrCompute number of symbol errors and symbol error rate
tdmsreadRead data from TDMS file (Since R2022a)
tdmswriteWrite data to TDMS file (Since R2022b)
tdmsinfoInformation about TDMS file (Since R2022a)
tdmsreadpropRead properties as single row table from TDMS file (Since R2022a)
tdmswritepropWrite properties to TDMS file (Since R2022b)

Objects

expand all

comm.BarkerCodeGenerate bipolar Barker code
comm.GoldSequenceGenerate Gold sequence from set of sequences
comm.HadamardCodeGenerate Hadamard code
comm.KasamiSequenceGenerate Kasami sequence
comm.OVSFCodeGenerate OVSF code
comm.PNSequenceGenerate a pseudonoise (PN) sequence
comm.RBDSWaveformGeneratorGenerate RDS/RBDS waveform
comm.WalshCodeGenerate bipolar Walsh code
comm.ConstellationDiagramDisplay and analyze input signals in IQ-plane
comm.BasebandFileReaderRead baseband signal from file
comm.BasebandFileWriterWrite baseband signal to file
tdmsDatastoreDatastore for collection of TDMS files (Since R2022a)

Blocks

expand all

Barker Code Generator blockBarker Code GeneratorGenerate bipolar Barker Code
Bernoulli Binary Generator blockBernoulli Binary GeneratorGenerate Bernoulli-distributed random binary numbers
Gold Sequence Generator blockGold Sequence GeneratorGenerate Gold sequence from set of sequences
Hadamard Code Generator blockHadamard Code GeneratorGenerate Hadamard code from orthogonal set of codes
Kasami Sequence Generator blockKasami Sequence GeneratorGenerate Kasami sequence from set of Kasami sequences
OVSF Code Generator blockOVSF Code GeneratorGenerate OVSF code
PN Sequence Generator blockPN Sequence GeneratorGenerate pseudonoise sequence
Poisson Integer Generator blockPoisson Integer GeneratorGenerate Poisson-distributed random integers
Random Integer Generator blockRandom Integer GeneratorGenerate integers randomly distributed in specified range
Walsh Code Generator blockWalsh Code GeneratorGenerate Walsh code from orthogonal set of codes
Constellation Diagram blockConstellation DiagramDisplay and analyze input signals in IQ-plane
Eye Diagram Scope blockEye DiagramDisplay eye diagram of time-domain signal (Since R2023b)
Baseband File Writer blockBaseband File WriterWrite baseband signals to file
Baseband File Reader blockBaseband File ReaderRead baseband signals from file

Topics

  • Signal Terminology

    Learn about terms related to matrices, vectors, and scalars, as well as frame-based and sample-based processing.

  • Sources

    Use random and nonrandom sources in communications systems.

  • Sinks

    Use sinks and display devices to analyze communications system performance.

  • Spreading Sequences

    Compare spreading sequences for single and multiuser scenarios in single path and multipath environments.

  • Create Waveforms Using Wireless Waveform Generator App

    Create, impair, visualize, and export modulated waveforms.

  • Export Data to MATLAB

    Send simulation results to the MATLAB workspace and use MATLAB to analyze the data.

Related Information

Featured Examples