Show / Hide Table of Contents

Class SFFM

This class implements a single-frequency FM waveform.

Inheritance
object
ParameterSet
ParameterSet<IWaveformDescription>
SFFM
Implements
IWaveformDescription
ICloneable<IWaveformDescription>
IImportParameterSet<double>
IExportPropertySet<double>
IImportParameterSet<double[]>
IImportParameterSet<GivenParameter<double>>
IExportPropertySet<GivenParameter<double>>
IParameterSet
Inherited Members
ParameterSet<IWaveformDescription>.Clone()
ParameterSet.SetParameter<P>(string, P)
ParameterSet.TrySetParameter<P>(string, P)
ParameterSet.GetProperty<P>(string)
ParameterSet.TryGetProperty<P>(string, out P)
ParameterSet.CreateParameterSetter<P>(string)
ParameterSet.CreatePropertyGetter<P>(string)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: SpiceSharp.Components
Assembly: SpiceSharp.dll
Syntax
public class SFFM : ParameterSet<IWaveformDescription>, IWaveformDescription, ICloneable<IWaveformDescription>, IImportParameterSet<double>, IExportPropertySet<double>, IImportParameterSet<double[]>, IImportParameterSet<GivenParameter<double>>, IExportPropertySet<GivenParameter<double>>, IParameterSet

Constructors

SFFM()

Initializes a new instance of the SFFM class.

Declaration
public SFFM()

SFFM(double, double, double, double, double, double, double)

Initializes a new instance of the SFFM class.

Declaration
public SFFM(double offset, double amplitude, double carrierFrequency, double modulationIndex, double signalFrequency, double carrierPhase, double signalPhase)
Parameters
Type Name Description
double offset

The offset value.

double amplitude

The amplitude value.

double carrierFrequency

The carrier frequency.

double modulationIndex

The modulation index.

double signalFrequency

The signal frequency.

double carrierPhase

The carrier phase.

double signalPhase

The signal phase.

Properties

Amplitude

Gets or sets the amplitude value.

Declaration
[ParameterName("va")]
[ParameterInfo("Amplitude")]
public double Amplitude { get; set; }
Property Value
Type Description
double

CarrierFrequency

Gets or sets the carrier frequency.

Declaration
[ParameterName("fc")]
[ParameterInfo("Carrier frequency", Units = "Hz")]
[GreaterThanOrEquals(0)]
public GivenParameter<double> CarrierFrequency { get; set; }
Property Value
Type Description
GivenParameter<double>

CarrierPhase

Gets or sets the carrier phase.

Declaration
[ParameterName("phasec")]
[ParameterInfo("Carrier phase", Units = "°")]
public double CarrierPhase { get; set; }
Property Value
Type Description
double

ModulationIndex

Gets or sets the modulation index.

Declaration
[ParameterName("mdi")]
[ParameterInfo("Modulation index")]
public double ModulationIndex { get; set; }
Property Value
Type Description
double

Offset

Gets or sets the offset value.

Declaration
[ParameterName("vo")]
[ParameterInfo("DC offset")]
public double Offset { get; set; }
Property Value
Type Description
double

SignalFrequency

Gets or sets the signal frequency.

Declaration
[ParameterName("fs")]
[ParameterInfo("Signal frequency", Units = "Hz")]
[GreaterThanOrEquals(0)]
public GivenParameter<double> SignalFrequency { get; set; }
Property Value
Type Description
GivenParameter<double>

SignalPhase

Gets or sets the signal phase.

Declaration
[ParameterName("phases")]
[ParameterInfo("Signal phase", Units = "°")]
public double SignalPhase { get; set; }
Property Value
Type Description
double

Methods

Create(IBindingContext)

Creates a waveform instance for the specified simulation and entity.

Declaration
public IWaveform Create(IBindingContext context)
Parameters
Type Name Description
IBindingContext context

The binding context.

Returns
Type Description
IWaveform

The waveform instance.

SetSffm(double[])

Sets all SFFM parameters.

Declaration
[ParameterName("sffm")]
[ParameterInfo("Specify the waveform as a vector")]
public void SetSffm(double[] sffm)
Parameters
Type Name Description
double[] sffm

The SFFM parameters.

Exceptions
Type Condition
ArgumentException

Thrown if sffm does not have 1 - 5 parameters.

ToString()

Returns a string that represents the current single-frequency FM waveform.

Declaration
public override string ToString()
Returns
Type Description
string

A string that represents the current SFFM.

Overrides
object.ToString()

Implements

IWaveformDescription
ICloneable<T>
IImportParameterSet<P>
IExportPropertySet<P>
IImportParameterSet<P>
IImportParameterSet<P>
IExportPropertySet<P>
IParameterSet

Extension Methods

Utility.ThrowIfNull<T>(T, string)
Documentation.ParameterValues<T>(IParameterSet, bool)
Documentation.Parameters(IParameterSet)
In this article
Back to top Generated by DocFX