13.07.2015 Views

User manual - ICP DAS USA

User manual - ICP DAS USA

User manual - ICP DAS USA

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

7050 DO OutputwRetVal = DigitalOut(wBuf, fBuf, szSend, szReceive);if (wRetVal)printf("DigitalOut_7050 Error !, Error Code=%d\n", wRetVal);printf("The DO of 7050 : %u \n", wBuf[5]);// 7050 DI InputDigitalIn(wBuf, fBuf, szSend, szReceive);printf("The DI of 7050 : %u \n", wBuf[5]);}Close_Com(COM3);return 0;Follow the below steps to achieve the desired results:STEP 1:( Write i7kdio.c )Copy the above source code and save it with the name - i7kdio.c or get the file fromC:\cygwin\LinCon8k\examples\i7k.STEP 2:( Compile i7kdio.c to i7kdio.exe )Here we will introduce two methods to accomplish step 2.< Method One > Using Batch File ( lcc.bat )Execute Start>Programs><strong>ICP</strong><strong>DAS</strong>>LinPAC-8000 SDK> LinPAC-8000 BuildEnvironment to open LinPAC-8000 SDK and change the path toC:\cygwin\LinCon8k\examples\i7k. Then type lcc i7kdio to compile i7kdio.c to i7kdio.exe.( refer to Fig. 7-1 )Fig. 7-1LinPAC-8x4x SDK:244

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!