MlpiConnection
Class definition.
Description
This class can be used to create a connection to the MLPI target device. The class is derived from the handle class. It has its own constructor and a destructor method. To create an object of this class, assign it to a variable as follows:
myCon = MlpiConnection();
To destroy the object use the destructor as follows:
m4MApiDisconnect(myCon);
delete(myObject);
or
m4MApiDisconnect(myCon);
clear myObject;
A connection to an MLPI target consists of a connection handle on the target side and on the MATLAB side. Before deleting an object use the function m4MApiDisconnect preceeding deleting the object as shown above. When deleting the connection object without disconnecting the target first causes the MATLAB side of the connection to be deleted but not on the target side. If a connection object was deleted before disconnecting the target the functions m4MApiClose* can be used to delete also the connection handle on the target side.
Note: reassigning an object to a variable will overwrite the existing object so the connection handle at MATLAB side will be lost. Again, recreate a connection and use the m4MApiClose* functions to delete the handles on the target side.
Syntax
connection = MlpiConnection()
Output arguments
connection contains a MlpiConnection object.
Properties
con This property contains a unique connection identifier of type uint32.
throwError This property contains the information if an error exception will be thrown or not. The property is of type logical. For details refer to the section Error Identification and Handling in Fundamentals of MLPI Programming.
Other properties are inherited from the class handle.
Methods
constuctor: create the connection.
destructor: destroy the connection.
Other methods are inherited from the class handle.
Events
Events are inherited from handle.
Superclasses
Superclass is class handle.
See also
Copyright
Legal notice and version: © 2017 Bosch Rexroth Corporation http://www.boschrexroth.com DC-AE/EAS1 (MGo) Library version: 1.26.2.0.0