C# Class VCOLock.Controller

Class for PI locking of a voltage controlled oscillator
Datei anzeigen Open project: ColdMatter/EDMSuite Class Usage Examples

Private Properties

Property Type Description
CreateAnalogOutputTask System.Threading.Task
SetAnalogOutput void
errorSigMonitorPollWorker void

Public Methods

Method Description
ComputeOutputVoltage ( double errorVal ) : void

Method for calculating the feedback voltage using proportional gain Kp and integral gain Ki

Start ( ) : void

(Not main) entry point for application

StartPoll ( ) : void

Method to start measuring output frequency of VCO

StopPoll ( ) : void

Method to stop measuring output frequency of VCO

UpdateErrorSigGraph ( double errorVal ) : void

Method for updating the error signal plot

UpdateFrequencyCounter ( ) : void

Method to only update the current measured frequency

Private Methods

Method Description
CreateAnalogOutputTask ( string channel ) : System.Threading.Task

Method to create a analog output task

SetAnalogOutput ( System.Threading.Task task, double voltage ) : void

Method for outputing a voltage on the DAQ

errorSigMonitorPollWorker ( ) : void

Worker method for polling VCO frequency

Method Details

ComputeOutputVoltage() public method

Method for calculating the feedback voltage using proportional gain Kp and integral gain Ki
public ComputeOutputVoltage ( double errorVal ) : void
errorVal double
return void

Start() public method

(Not main) entry point for application
public Start ( ) : void
return void

StartPoll() public method

Method to start measuring output frequency of VCO
public StartPoll ( ) : void
return void

StopPoll() public method

Method to stop measuring output frequency of VCO
public StopPoll ( ) : void
return void

UpdateErrorSigGraph() public method

Method for updating the error signal plot
public UpdateErrorSigGraph ( double errorVal ) : void
errorVal double
return void

UpdateFrequencyCounter() public method

Method to only update the current measured frequency
public UpdateFrequencyCounter ( ) : void
return void