1 800 642-6446 Toll-free
1 585 657-6151 In New York
VelmexControls
Velmex
|
BiSlide
|
XSlide
Download
Download Driver
How To
Add To Your Project
Call From Your Project
Driver Functions
LoadDriver
ReleaseDriver
DriverTerminalShowState
PortOpen
PortClose
PortIsOpen
PortSendCommands
PortReadReply
PortCountChars
PortSearchForChars
PortClear
PortRemoveChars
MotorPosition
PortWaitForChar
PortWaitForCharWithMotorPosition
DriverResetFunctions
Example Code
Examples
VXM Driver Documentation - Visual C# 2003 - How to add driver to your project
How to add the VXM driver to your project
To add the VXM driver to your Visual C# 2003 project you must do the following
Project Pre Set Up
1.) Create a folder for your project
2.) Create a project in the folder you created
3.) Save your project
4.) Copy the driver into the bin\debug folder within your project folder
5.) Copy the "ClsVxmDriver.cs" into your project folder
Adding driver to your project
1.) Click Project-->Add Existing Item and add the "ClsVxmDriver.cs" to your project
2.) Double-Click your form (this will create the "private void Form1_Load(object sender, System.EventArgs e)" function
3.) In the "public class Form1 : System.Windows.Forms.Form" function add the following line
ClsVxmDriver Vxm = new ClsVxmDriver();
4.) In the "private void Form1_Load(object sender, System.EventArgs e)" function add the following line
Vxm.LoadDriver("VxmDriver.dll");
5.) In the "private void Form1_Closing(object sender, System.ComponentModel.CancelEventArgs e)" function add the following line
Vxm.ReleaseDriver();
6.) Save your Visual C# 2003 project