Class Fan
- Namespace
- DuetAPI.ObjectModel
- Assembly
- DuetAPI.dll
Class representing information about an attached fan
public class Fan : ModelObject, INotifyPropertyChanging, IStaticModelObject, IModelObject, ICloneable, INotifyPropertyChanged
- Inheritance
-
Fan
- Implements
- Inherited Members
Constructors
Fan()
public Fan()
Properties
ActualValue
Value of this fan (0..1 or -1 if unknown)
[Live]
public float ActualValue { get; set; }
Property Value
Blip
Blip value indicating how long the fan is supposed to run at 100% when turning it on to get it started (in s)
public float Blip { get; set; }
Property Value
Frequency
Configured frequency of this fan (in Hz)
public float Frequency { get; set; }
Property Value
Max
Maximum value of this fan (0..1)
public float Max { get; set; }
Property Value
Min
Minimum value of this fan (0..1)
public float Min { get; set; }
Property Value
Name
Name of the fan
public string Name { get; set; }
Property Value
RequestedValue
Requested value for this fan on a scale between 0 to 1
[Live]
public float RequestedValue { get; set; }
Property Value
Rpm
Current RPM of this fan or -1 if unknown/unset
[Live]
public int Rpm { get; set; }
Property Value
TachoPpr
Pulses per tacho revolution
public float TachoPpr { get; set; }
Property Value
Thermostatic
Thermostatic control parameters
public FanThermostaticControl Thermostatic { get; }
Property Value
Methods
Assign(IStaticModelObject)
Assign the properties from another instance. This is required to update model properties which do not have a setter
public void Assign(IStaticModelObject from)
Parameters
fromIStaticModelObjectOther instance
Clone()
Clone this instance
public object Clone()
Returns
- object
Cloned instance
Remarks
This method is auto-generated
UpdateFromJson(JsonElement, bool)
Update this instance from a given JSON element
public void UpdateFromJson(JsonElement jsonElement, bool ignoreSbcProperties)
Parameters
jsonElementJsonElementElement to update this intance from
ignoreSbcPropertiesboolWhether SBC properties are ignored
Remarks
This method is auto-generated
Exceptions
- JsonException
Failed to deserialize data
UpdateFromJsonReader(ref Utf8JsonReader, bool)
Update this instance from a given JSON element
public void UpdateFromJsonReader(ref Utf8JsonReader reader, bool ignoreSbcProperties)
Parameters
readerUtf8JsonReaderReader to update this intance from
ignoreSbcPropertiesboolWhether SBC properties are ignored
Remarks
This method is auto-generated
Exceptions
- JsonException
Failed to deserialize data