OpenTAP 9.27
API Reference
|
Identifies that units should be assigned to a property. More...
Public Member Functions | |
UnitAttribute (string Unit, bool UseEngineeringPrefix=false, string StringFormat="", bool UseRanges=true, double PreScaling=1.0) | |
Constructor for UnitAttribute. More... | |
Properties | |
string | Unit [get] |
The unit e.g "Hz". | |
bool | UseEngineeringPrefix [get] |
Whether to use engineering prefix. E.g 1000000 Hz -> 1 MHz | |
double | PreScaling [get] |
Pre scaling of values. | |
string | StringFormat [get] |
The format argument to string.Format. | |
bool | UseRanges [get] |
Whether to use ranges to show arrays of numbers. For example, show 1, 2, 3, 4 as 1 : 4. | |
Properties inherited from OpenTap.IParameter | |
string | Group [get] |
Optional name of the group of parameters to which this parameter belongs. | |
IConvertible | Value [get] |
Value of this parameter. | |
Properties inherited from OpenTap.IAttributedObject | |
string | Name [get] |
Name of this object. | |
string | ObjectType [get] |
String describing this object. | |
Identifies that units should be assigned to a property.
|
inline |
Constructor for UnitAttribute.
Unit | The unit e.g "Hz". |
UseEngineeringPrefix | Whether to use engineering prefix. E.g 1000000 Hz -> 1 MHz. |
StringFormat | The format argument to string.Format. |
UseRanges | Whether to use ranges to show arrays of numbers. For example, show 1, 2, 3, 4 as 1 : 4. |
PreScaling | Pre scaling of values. |
OpenTAP 9.27 API built Wed Nov 27 2024 13:14:46