/ MATES / Modular Automatic Test Equipment System API
2.5.0.0
|
MATES system wrapper class. More...
Public Member Functions | |
Mates (string fileName, int addr=0) | |
Create the MATES instance. More... | |
bool | DiscoverSingleNode (int addr) |
Discover single MATES node using its CAN address. More... | |
bool | DiscoverSingleNode (NodeId addr) |
Discover single MATES node using its CAN address. More... | |
Node | NewNode (NodeId addr) |
Discover and create a new MATES-DIOX-MK1 node. More... | |
DioxNode | NewDioxNode (NodeId addr) |
Discover and create a new MATES-DIOX-MK1 node. More... | |
Dio3Node | NewDio3Node (NodeId addr) |
Discover and create a new MATES-DIO3-MK1 node. More... | |
UccNode | NewUccNode (NodeId addr) |
Discover and create a new MATES-UCC-MK1 node. More... | |
Adc5Node | NewAdc5Node (NodeId addr) |
Discover and create a new MATES-ADC5-MK1 node. More... | |
Dac5Node | NewDac5Node (NodeId addr) |
Discover and create a new MATES-DAC5-MK1 node. More... | |
int | GetRegisterI (int addr, RegisterNumber reg) |
Get regular (integral) MATES register. More... | |
float | GetRegisterF (int addr, RegisterNumber reg) |
Get floating point MATES register. More... | |
T | GetRegister< T > (int addr, RegisterNumber reg) |
Get MATES register. More... | |
void | SetRegister< T > (int addr, RegisterNumber reg, T value) |
Set MATES register. More... | |
void | SetRegisterI (int addr, RegisterNumber reg, int val) |
Set regular (integral) MATES register. More... | |
void | SetRegisterF (int addr, RegisterNumber reg, float val) |
Set floating point MATES register. More... | |
int | GetAdcRaw (int addr, int channel) |
Get the raw value of the ADC. More... | |
List< Node > | DiscoverNodes (int[] addr) |
Discover MATES nodes. More... | |
List< Node > | DiscoverNodes (NodeId[] addr) |
Discover MATES nodes. More... | |
async Task< List< Node > > | DiscoverNodesAsync (NodeId[] addr) |
Discover MATES nodes, asynchronous version. More... | |
string | GetLastError () |
Returns the description of lastly occurred error. More... | |
string | GetError () |
Get the accumulated error description. More... | |
int | LampTest (int addr) |
Execute the lamp test. More... | |
string | NodeInfo (int addr) |
Get node information as string. More... | |
void | AlcdWrite (int addr, int row, int col, string text) |
Write text onto the alphanumeric LCD display. More... | |
Static Public Member Functions | |
static Mates | FromBuffer (string confString, int addr=0) |
Create the MATES instance. More... | |
static T | DllVersion< T > () |
Get mates.dll file version. More... | |
Properties | |
DinStateChangeHandler | OnDinStateChange |
Event raised when any digital input in the MATES system changes. More... | |
DoutStateChangeHandler | OnDoutStateChange |
Event raised when any digital output in the MATES system changes. More... | |
AdcStateChangeHandler | OnAdcStateChange |
Event raised when any analog input in the MATES system changes value. More... | |
MATES system wrapper class.
Mates | ( | string | fileName, |
int | addr = 0 |
||
) |
Create the MATES instance.
fileName | Defines the name of the monitor configuration file(*.mon). |
addr | The MATES device communication address to use |
|
static |
Create the MATES instance.
confString | The monitor XML configuration string. |
addr | The MATES device communication address to use |
|
static |
Get mates.dll file version.
T | The return value type, either string or Tuple<int, int, int, int> |
MatesException | Thrown when operation fails. |
bool DiscoverSingleNode | ( | int | addr | ) |
Discover single MATES node using its CAN address.
addr | The device CAN address, see NodeId. |
bool DiscoverSingleNode | ( | NodeId | addr | ) |
Discover single MATES node using its CAN address.
addr | The device CAN address. |
Discover and create a new MATES-DIOX-MK1 node.
addr | The node address to use. |
MatesException | Thrown when the device cannot be found in the system. |
Discover and create a new MATES-DIOX-MK1 node.
addr | The node address to use. |
MatesException | Thrown when the device cannot be found in the system. |
Discover and create a new MATES-DIO3-MK1 node.
addr | The node address to use. |
MatesException | Thrown when the device cannot be found in the system. |
Discover and create a new MATES-UCC-MK1 node.
addr | The node address to use. |
MatesException | Thrown when the device cannot be found in the system. |
Discover and create a new MATES-ADC5-MK1 node.
addr | The node address to use. |
MatesException | Thrown when the device cannot be found in the system. |
Discover and create a new MATES-DAC5-MK1 node.
addr | The node address to use. |
MatesException | Thrown when the device cannot be found in the system. |
int GetRegisterI | ( | int | addr, |
RegisterNumber | reg | ||
) |
Get regular (integral) MATES register.
addr | The node CAN address. |
reg | The register number to access (see Viresco.Mates.Registers.RegisterNumber). |
MatesException | Thrown when operation fails. |
float GetRegisterF | ( | int | addr, |
RegisterNumber | reg | ||
) |
Get floating point MATES register.
addr | The node CAN address. |
reg | The register number to access (see Viresco.Mates.Registers.RegisterNumber). |
MatesException | Thrown when operation fails. |
T GetRegister< T > | ( | int | addr, |
RegisterNumber | reg | ||
) |
Get MATES register.
T | The register type, float or int. |
addr | The node CAN address. |
reg | The register number to access (see Viresco.Mates.Registers.RegisterNumber). |
MatesException | Thrown when operation fails. |
T | : | struct |
void SetRegister< T > | ( | int | addr, |
RegisterNumber | reg, | ||
T | value | ||
) |
Set MATES register.
T | The register type, float or int. |
addr | The node CAN address. |
reg | The register number to access (see Viresco.Mates.Registers.RegisterNumber). |
value | The register value. |
MatesException | Thrown when operation fails. |
T | : | struct |
void SetRegisterI | ( | int | addr, |
RegisterNumber | reg, | ||
int | val | ||
) |
Set regular (integral) MATES register.
addr | The node CAN address. |
reg | The register number to access (see Viresco.Mates.Registers.RegisterNumber). |
val | The register value. |
MatesException | Thrown when operation fails. |
void SetRegisterF | ( | int | addr, |
RegisterNumber | reg, | ||
float | val | ||
) |
Set floating point MATES register.
addr | The node CAN address. |
reg | The register number to access (see Viresco.Mates.Registers.RegisterNumber). |
val | The register value. |
MatesException | Thrown when operation fails. |
int GetAdcRaw | ( | int | addr, |
int | channel | ||
) |
Get the raw value of the ADC.
addr | The node address. |
channel | ADC channel number [0, 39]. |
MatesException | Thrown when operation fails. |
List<Node> DiscoverNodes | ( | int[] | addr | ) |
Discover MATES nodes.
addr | List of nodes addresses to find. |
Discover MATES nodes.
addr | List of nodes addresses to find. |
Discover MATES nodes, asynchronous version.
addr | List of nodes addresses to find. |
string GetLastError | ( | ) |
Returns the description of lastly occurred error.
string GetError | ( | ) |
Get the accumulated error description.
int LampTest | ( | int | addr | ) |
Execute the lamp test.
addr | The node address. |
MatesException | Thrown when operation fails. |
string NodeInfo | ( | int | addr | ) |
Get node information as string.
addr | The node address. |
MatesException | Thrown when operation fails. |
void AlcdWrite | ( | int | addr, |
int | row, | ||
int | col, | ||
string | text | ||
) |
Write text onto the alphanumeric LCD display.
addr | The node address. |
row | The LCD row number (0 - based). |
col | The LCD column number (0 - based). |
text | The text to write at the given position. |
MatesException | Thrown when operation fails. |
|
addremove |
Event raised when any digital input in the MATES system changes.
The state change sampling period is roughly 50 ms and it increases with the number of nodes in the system.
The first subscriber will receive states of all inputs even if they are not changing (this action is performed only once after subscribing). This is done for the subscriber to be able to determine the initial state after device connection. The same procedure is repeated every time the subscribers list becomes empty and then re-populated.
|
addremove |
Event raised when any digital output in the MATES system changes.
The state change sampling period is roughly 50 ms and it increases with the number of nodes in the system.
The first subscriber will receive states of all outputs even if they are not changing (this action is performed only once after subscribing). This is done for the subscriber to be able to determine the initial state after device connection. The same procedure is repeated every time the subscribers list becomes empty and then re-populated.
|
addremove |
Event raised when any analog input in the MATES system changes value.
The value change sampling period is roughly 50 ms and it increases with the number of nodes in the system.
The first subscriber will receive values of all inputs even if they are not changing (this action is performed only once after subscribing). This is done for the subscriber to be able to determine the initial state after device connection. The same procedure is repeated every time the subscribers list becomes empty and then re-populated.