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 6 - 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 project you must do the following
Project Pre Set Up
1.) Create a folder for your project
2.) Copy the driver folder into your project folder
(VxmDriver.dll, VxmDriver.cpp, and VxmDriver.h must be in the driver folder)
3.) Copy VxmDriver.cpp, and VxmDriver.h to your project folder
4.) Create a new project and form and save it to your project folder
5.) Click Project-->Add To Project-->Files
6.) Pick the VxmDriver.cpp and the VxmDriver.h
7.) Copy VxmDriver.dll to your debug directory and to the project folder
(This is so the application will run while debugging your code)
8.) Right click your dialog and select "Events"
9.) Add the "WM_CLOSE" event to the list of event handlers
"WM_INITDIALOG" and "WM_PAINT" events should already be in the list
10.) Save your Visual C project
Adding driver to your project
1.) In your "OnInitDialog" Event add the following line
LoadDriver(".\\VxmDriver.dll");
(This is assuming that the path to the driver is in the same folder as the executable)
2.) In your "OnClose" Event add the following lines
DriverTerminalShowState(0,0);
ReleaseDriver();
3.) In the code window in the declaration section (above all the subroutine) type the following
#include "VxmDriver.h"
4.) Save the project