Chapter 6: ActiveX Controls
VSpin User Guide
90
Setting Up Methods
Overview Methods are functions that can be called by the container application.
Initialize Description
Initializes the VSpin.
Initialize() should typically be the first method called in an application,
and only needs to be called once for each VSpin in the system. After
successful homing the InitializeComplete event is sent.
Parameters
Returns
None
Example
Close Description
Closes the serial port used by the VSpin.
Close should always be called before exiting an application.
Parameters
None
Returns
None
Example
Argument
Type
Argument
Name
Range Description
BSTR profile_name N/A The VSpin Profile you would
like to intialize.
SHORT block 0,1 Whether or not function blocks
initialization.
0=non-blocking
1=blocking
Visual Basic Visual C++
‘Initialize to use profile “My
Profile”
VSpin1.Initialize “My
Profile”, 1
// Initialize to use blocking until
initialization is complete.
m_VSpin.Initialize(“My
Profile”,1);