Sample_MFC

This sample software is developed using Visual Studio 2008 SP1 VC++.
Please install "Microsoft Visual C++ 2008 SP1 Redistributable Package" at the Microsoft Download Center Web site before installing this sample software.


This Sample software is based on WinUSB for general-purpose use, which is standard software in Windows.
Windows Driver Kit is required to build. This sample software is developed using Windows Driver Kit (WDK) 7.1.0.
Please install "Windows Driver Kit 7.1.0" at the Microsoft Download Center Web site if WDK is not installed into your PC.

How to build sample software
Retrieve required file from WDK install folder, and then include and link.    


Copy following file into "Sample_MFC\winusb\include" folder.

usb.h : C:\WinDDK\7600.16385.1\inc\api\usb.h
usb100.h : C:\WinDDK\7600.16385.1\inc\api\usb100.h
usb200.h : C:\WinDDK\7600.16385.1\inc\api\usb200.h
winusb.h : C:\WinDDK\7600.16385.1\inc\ddk\winusb.h
winusbio.h : C:\WinDDK\7600.16385.1\inc\ddk\winusbio.h

Copy following file into "Sample_MFC\winusb\lib\x86" folder.

x86:
setupapi.lib : C:\WinDDK\7600.16385.1\lib\win7\i386\setupapi.lib
winusb.lib : C:\WinDDK\7600.16385.1\lib\win7\i386\winusb.lib

Copy following file into "Sample_MFC\winusb\lib\x64" folder.

x64:
setupapi.lib : C:\WinDDK\7600.16385.1\lib\win7\amd64\setupapi.lib
winusb.lib : C:\WinDDK\7600.16385.1\lib\win7\amd64\winusb.lib

Above directory are default installation destination. 
Library to be linked should be changed according to OS, CPU architecture.


This sample software has minimum function and is designed for limited usage.
Modification to timer, parameter, and program may be required according to the usage.

1.Specification
This sample program is designed to communicate to single instrument.
Even if several instruments are connected to PC, the program communicates the instrument which the PC recognizes first. 

This sample program can send specified command to the instrument.
There are commands which retrieve data and retrieve response message only from the instrument.  
Please select on or off the check box "Received data" depending on the kind of the command, otherwise the software might freeze.



2.Disclaimer
TechnoOptis does not assume any liability for loss or damage caused by this software. 
This sample software is not ensured of working on any PC. TechnoOptis does not make a modification to this sample software due to a failure in the software.



