VWorks software calls the
Initialize method to tell the plugin to initialize a device. The plugin is expected to do everything necessary to bring the device into a state that allows it to accept commands for activities such as opening a serial port, setting the baud rate, or homing a motor.
VWorks software passes an Initialize XML block into the
CommandXML parameter of the
Initialize method.
VWorks software creates the Initialize XML block as follows:
VWorks software then passes the Initialize XML block to the plugin in the
CommandXML parameter of the
Initialize method.
Although VWorks software passes other XML metadata in the Command XML block, this information is of no interest to the plugin.
The Parameter element contains one
Ranges element and has the following attributes:
The following sample code is an Initialize XML block received by the plugin from
VWorks software as a string in the
CommandXML parameter of the
Initialize method.
VWorks software tells the plugin to initialize the device using the profile named
My profile.