/ MATES / Modular Automatic Test Equipment System API
2.5.0.0
|
Represents a common DAC module. More...
Public Member Functions | |
abstract double | GetDacMinimum (int channel) |
Get the minimum allowable value of the DAC. More... | |
abstract double | GetDacMaximum (int channel) |
Get the maximum allowable value of the DAC. More... | |
void | SetDac (int channel, double voltage) |
Set the value of the DAC. Takes calibration data into account. More... | |
void | SetDacRaw (int channel, int val) |
Set raw value of the DAC. More... | |
double | GetDac (int channel) |
Get the value of the DAC. More... | |
bool | IsCanBridge () |
Check if this node acts as a CAN bridge (it is connected directly to PC). More... | |
int | GetStatusRegister () |
Get the value of the status register. More... | |
int | GetRegisterI (RegisterNumber reg) |
Get regular (integral) MATES register. More... | |
float | GetRegisterF (RegisterNumber reg) |
Get floating point MATES register. More... | |
void | SetRegisterI (RegisterNumber reg, int val) |
Set regular (integral) MATES register. More... | |
void | SetRegisterF (RegisterNumber reg, float val) |
Set floating point MATES register. More... | |
void | RegisterEquals (RegisterNumber register, int value) |
Asserts that the specified integral register has the specified value. More... | |
void | RegisterEquals (RegisterNumber register, float value) |
Asserts that the specified floating point register has the specified value. More... | |
void | LampTest () |
Execute lamp test. More... | |
string | NodeInfo () |
Get node information as string. More... | |
Data Fields | |
RegList | Registers |
The registers that are associated with this node. Populated by the node constructor. More... | |
Properties | |
int | SerialNumber [get] |
Holds the device serial number. More... | |
string | NodeIdName [get] |
Get string representation of this node Id (NodeId). More... | |
string | NodeName [get] |
Get node name of this node. More... | |
Represents a common DAC module.
|
pure virtual |
|
pure virtual |
void SetDac | ( | int | channel, |
double | voltage | ||
) |
Set the value of the DAC. Takes calibration data into account.
channel | The DAC channel number [0,39] |
voltage | The voltage value to set (Volts). |
Example usage (mates_test_03.cs):
Implements IDacNode.
void SetDacRaw | ( | int | channel, |
int | val | ||
) |
Set raw value of the DAC.
channel | The DAC channel number [0,39]. |
val | The raw DAC binary code to write. |
Example usage (mates_test_04.cs):
Implements IDacNode.
double GetDac | ( | int | channel | ) |
Get the value of the DAC.
channel | The DAC channel number [0,39] |
Implements IDacNode.
|
inherited |
Check if this node acts as a CAN bridge (it is connected directly to PC).
|
inherited |
Get the value of the status register.
|
inherited |
Get regular (integral) MATES register.
reg | The register number to access (see Viresco.Mates.Registers.RegisterNumber). |
|
inherited |
Get floating point MATES register.
reg | The register number to access (see Viresco.Mates.Registers.RegisterNumber). |
|
inherited |
Set regular (integral) MATES register.
reg | The register number to access (see Viresco.Mates.Registers.RegisterNumber). |
val | The register value. |
|
inherited |
Set floating point MATES register.
reg | The register number to access (see Viresco.Mates.Registers.RegisterNumber). |
val | The register value. |
|
inherited |
Asserts that the specified integral register has the specified value.
register | The register number. |
value | The expected value. |
Implements INodeAsserts.
|
inherited |
Asserts that the specified floating point register has the specified value.
register | The register number. |
value | The expected value. |
Implements INodeAsserts.
|
inherited |
Execute lamp test.
Example usage (mates_test_11.cs):
|
inherited |
Get node information as string.
Example usage (mates_test_13.cs):
|
inherited |
The registers that are associated with this node. Populated by the node constructor.
|
getinherited |
Holds the device serial number.
|
getinherited |
Get string representation of this node Id (NodeId).
|
getinherited |
Get node name of this node.