snap ethernet-based i/o units protocols and programming guide
snap ethernet-based i/o units protocols and programming guide
snap ethernet-based i/o units protocols and programming guide
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Examples Included<br />
CHAPTER 3: USING THE SNAP ETHERNET I/O DRIVER TOOLKIT<br />
Using Visual C++ with the Core C++ Code<br />
The core C++ classes are found in the OptoENET-IO\DriverToolkit\Dev\Source\C++ directory. To<br />
use them in a Visual C++ project, you'll need to do the following:<br />
1. Add the appropriate files to the projects. Turn off precompiled headers for these files by<br />
adjusting the settings in the compiler.<br />
2. Link Windows Sockets into your project. Add the library file ws2_32.lib for WinSock 2.0 to<br />
your project linker settings. These files should be included with your Visual C++ compiler.<br />
Using Linux g++ with the Core C++ Code<br />
The Red Hat 7.2 distribution of Linux for Intel <strong>and</strong> the GNU g++ compiler were used to test the<br />
core C++ classes.<br />
The class files are found in the OptoENET-IO\DriverToolkit\Dev\Source\C++ directory. Simply<br />
include them in your project. Add a “-D_LINUX” comm<strong>and</strong> to the g++ prompt to make sure<br />
_LINUX is defined.<br />
O22SnapIoMemMapX ActiveX Examples<br />
The SNAP Ethernet I/O Driver Toolkit includes the following ActiveX examples of using the<br />
O22SnapIoMemMapX ActiveX component.<br />
Environment<br />
Access<br />
2000<br />
Word<br />
2000<br />
Example<br />
Name<br />
Use with Description<br />
Demo Center Demo Center Uses Visual Basic for Applications to update entries in an<br />
Access database.<br />
Demo Center Demo Center Uses Visual Basic for Applications to update a report about the<br />
Demo Center.<br />
Digital Bank Any rack with<br />
digital points<br />
52 SNAP Ethernet-Based I/O Units Protocols <strong>and</strong> Programming Guide<br />
Uses Visual Basic for Applications to update a letter with the<br />
values from the brain's digital bank area.