FT 300-SForce Torque Sensor - Instruction Manual
28
4.2.3. Windows
Package Files – Description
The development package is structured with the following files and directories architecture (non-Windows files and directories are
ignored in this section):
l
src: contains the source files common to all platforms
l
obj: used during compilation for the object files related to the common sources
l
Windows: contains Windows specific files
l
bin: contains the binary files
l
src: contains the source files common to all platforms
l
main.c : application source file which can be modified by the user
l
obj: contains all object files after they are compiled
l
Data_logger: contains an application (and its source code) to log data from the sensor
l
compiler.bat: script which automates the settings for the environment variables and the compilation of the example applic-
ation
l
Makefile: file containing the rules to compile the sensor driver using Make
Procedure to Compile and Test the Provided Source Code
This procedure explains how to install MinGW, compile the provided source code and verify that the sensor data is properly read.
1. Unzip the package in the desired directory.
2. If it is not already installed, download MinGW at http:/ / www.mingw.org/ . Download the installer " mingw-get-setup.exe" .
3. Install MinGW by running " mingw-get-setup.exe" and save the default installation path.
4. Open " MinGW installation manager" .
5. Select " mingw-developer-toolkit" in the " Basic setup" tab and click " Mark for Installation" .
6. Select " mingw32-binutils" in the " All packages" tab and click " Mark for Installation" .
7. In the menu " Installation" , click " Apply changes" . This will install the required packages to compose the software using
Make.
8. In the Windows directory, run the compiler.bat file. This will build your application.
9. Run the application " driverSensor" located in the " Windows/ bin/ " folder.
10. After 1-2 seconds, the sensor data should start showing up in the command window as a vector of 6 floats with data in the
(Fx, Fy, Fz, Mx, My, Mz) format.
Fig. 4.2: Sensor Data Acquisition Under Windows.