Scale Class
- Updated2023-02-21
- 4 minute(s) read
Scale Class
Encapsulates a custom scale that translates between prescaled quantities in device units and quantities scaled to the units of interest.
Inheritance Hierarchy
SystemObject
SystemMarshalByRefObject
NationalInstruments.DAQmxScale
NationalInstruments.DAQmxLinearScale
NationalInstruments.DAQmxPolynomialScale
NationalInstruments.DAQmxRangeMapScale
NationalInstruments.DAQmxTableScale
SystemMarshalByRefObject
NationalInstruments.DAQmxScale
NationalInstruments.DAQmxLinearScale
NationalInstruments.DAQmxPolynomialScale
NationalInstruments.DAQmxRangeMapScale
NationalInstruments.DAQmxTableScale
Namespace: NationalInstruments.DAQmx
Assembly: NationalInstruments.DAQmx (in NationalInstruments.DAQmx.dll) Version: 20.7.40.49302
Syntax
public abstract class Scale : MarshalByRefObject, IDisposable
Public MustInherit Class Scale Inherits MarshalByRefObject Implements IDisposable
The Scale type exposes the following members.
Constructors
Properties
Name | Description | |
---|---|---|
![]() | Description | Specifies a description for the scale. |
![]() | Name | Gets the name of the scale. |
![]() | PreScaledUnits | Specifies the units of the values that you want to scale. |
![]() | ScaledUnits | Specifies the units to use for scaled values. You can use an arbitrary string. |
![]() | Type | Gets the type of scale. |
Methods
Name | Description | |
---|---|---|
![]() | CreateObjRef | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.) |
![]() | Dispose | Releases all resources used by Scale. |
![]() | Dispose(Boolean) |
Releases the managed and unmanaged resources used by Scale or optionally releases only the unmanaged resources.
|
![]() | Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | MemberwiseClone(Boolean) | Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.) |
![]() | ToString | Returns a string representation of the object. (Overrides ObjectToString.) |
Remarks
Scale is the base class for LinearScale, PolynomialScale, RangeMapScale, and TableScale. All instances of Scale are of one of the derived class types. Refer to the derived class documentation for more information.
When you create a scale, you must provide the scale with a name because the scale is associated with channels through its name. You can create and configure a scale in Measurement Automation Explorer (MAX) or with the constructor of a class that derives from Scale.
![]() |
---|
Example applications are located in the Public Documents\National Instruments\NI-DAQ\Examples\DotNET4.x directory or in the Start menu at National InstrumentsNI-DAQmxNI-DAQmx Examples. |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.