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.

5.3 A Simple Example – Helloworld.cIn this section, we will introduce how to compile the helloworld.c to helloworld.exe andtransfer the helloworld.exe to the LinPAC-8000 by using FTP. Finally executes this file viathe Telnet Server on the LinPAC-8000. These steps can be accomplished in one pc withoutanother monitor for the LinPAC-8000. In this example, no <strong>ICP</strong> <strong>DAS</strong> modules are used. Ifyou want to use the modules of <strong>ICP</strong> <strong>DAS</strong> to control your system, you can refer to demo inthe chapter 7.These processes can be divided into three steps and thet are given as below:STEP 1 :( Compile helloworld.c to helloworld.exe )(1) Open LinPAC-8000 SDK ( refer to step 8 in section 2.1) and type“ cd examples/common ” to change the path toC:/cygwin/LinCon8k/examples/common. Type “dir/w” and you can see thehelloworld.c file. (refer to Fig.5-2)Fig. 5-2LinPAC-8x4x SDK:30

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

Saved successfully!

Ooh no, something went wrong!