/ MATES / Modular Automatic Test Equipment System API
2.5.0.0
|
Represents a common digital IO module. More...
Public Member Functions | |
void | SetDout (int channel, bool value) |
Set value of an individual digital output. More... | |
void | SetDoutAll (int value) |
Set value of all digital outputs. More... | |
bool | GetDout (int channel) |
Get value of an individual digital output. More... | |
int | GetDoutAll () |
Get value of all digital outputs. More... | |
bool | GetDin (int channel) |
Get value of an individual digital input. More... | |
int | GetDinAll () |
Get value of all digital inputs. 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... | |
Protected Member Functions | |
void | InputSet (int channel) |
Asserts that the specified input channel is in high state. More... | |
void | OutputSet (int channel) |
Asserts that the specified output channel is in high state. More... | |
void | InputEquals (int channel, bool state) |
Asserts that the specified input channel is in the given state. More... | |
Properties | |
IDioAsserts | Assert [get] |
Represents collection of UnitTestFramework - compatible asserts defined for this type of node. More... | |
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 digital IO module.
void SetDout | ( | int | channel, |
bool | value | ||
) |
Set value of an individual digital output.
channel | The DOUT channel number [0,19]. |
value | The output value. |
Example usage (mates_test_06.cs):
void SetDoutAll | ( | int | value | ) |
Set value of all digital outputs.
value | The output value, LSB is OUT01. |
Example usage (mates_test_05.cs):
bool GetDout | ( | int | channel | ) |
Get value of an individual digital output.
channel | The DOUT channel number [0,19]. |
Example usage (mates_test_07.cs):
int GetDoutAll | ( | ) |
Get value of all digital outputs.
Example usage (mates_test_08.cs):
bool GetDin | ( | int | channel | ) |
Get value of an individual digital input.
channel | The DIN channel number [0,19]. |
Example usage (mates_test_09.cs):
int GetDinAll | ( | ) |
Get value of all digital inputs.
Example usage (mates_test_10.cs):
|
protected |
Asserts that the specified input channel is in high state.
channel | The input channel number [0, 19]. |
Implements IDioAsserts.
|
protected |
Asserts that the specified output channel is in high state.
channel | The output channel number [0, 19]. |
Implements IDioAsserts.
|
protected |
Asserts that the specified input channel is in the given state.
channel | The input channel number [0, 19]. |
state | The expected state. |
Implements IDioAsserts.
|
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.
|
get |
Represents collection of UnitTestFramework - compatible asserts defined for this type of node.
|
getinherited |
Holds the device serial number.
|
getinherited |
Get string representation of this node Id (NodeId).
|
getinherited |
Get node name of this node.