Class PhotosensorController
A PhotosensorController is a device that controls a non-rotating photosensor to throw laser beams to measure the distance and/or intensity.
Inherited Members
Namespace: Mechatronics.SensorSDK
Assembly: solution.dll
Syntax
[NodeCategory("Controller", "Photosensor Controller", NodeTick.Synchronous, (LifeCycle)0, 0, NodeMode.Standard, false)]
public class PhotosensorController : NodeRuntime
Fields
Name | Description |
---|---|
_relativeTimeOfFirstTrigger | The time in seconds when the first trigger in the next sampling request occurs. |
_samplingRequest | This structure is used to send sampling request to a photosensor |
frameHeight | |
frameRate | |
frameWidth | |
laserConfig | Contain all information relative to the laser configuration (orientation, offsets and firing sequence) |
laserConfigBinding | Define where the beam are positioned, oriented and their firing sequence. |
sampleCountPerFrame | |
samplingRate | |
samplingRequest |
Properties
Name | Description |
---|---|
BeamCount | The number of fired beams per trigger in the trigger sequence. |
FramePeriod | The elapsed time in seconds between consecutive frames (triggers). |
SamplingRate | The number of samples per second. |
Methods
Name | Description |
---|---|
BuildSamplingRequest(double) | Prepare the sampling request for the next simulation sampling. |
Disable() | Disable change event on ports |
Enable(ClockState) | Initialize the controller and enable change event on beams port. |
FindLastTriggerIndex(double) | Determines the index of the last (inclusive) trigger to occur strictly before the given time. |
OnLaserConfigChanged(object, EventArgs) | Indicates the laser configuration has changed for the next OnTick call. |
OnTick(double, double, ClockState, Signal) | OnTick event received from the scheduler for this node waveform. This is received for every rising edge of the waveform at the frequency configured in the scheduler. |