LP-9x21 SDK Manual, V1.3 Copyright © 2016 ICP DAS Co., Ltd. All Rights Resvered. Page: 3
5.1.10chmod:changestheaccesspermissionsforafile .......................................................30
5.1.11uname:displaystheLinuxversioninformation ..........................................................31
5.1.12ps:displaysalistofthecurrentlyactiveprocedures...................................................31
5.1.13ftp:transfersafileusingthefiletransferprotocol(FTP).............................................31
5.1.14telnet:extablishesaconnectiontoanotherPCviaTelnetterminal.............................31
5.1.15date:printsorsetsthesystemdateandtime.............................................................31
5.1.16hwclock:queriesandsetsthehardwareclock(RTC)...................................................31
5.1.17netstat:displaysthecurrentstateofthenetwork ......................................................31
5.1.18ifconfig:displaystheipandnetworkmaskinformation(EquivalentDOSCommand:
ipconfig)................................................................................................................................31
5.1.19ping:usedtotestwhetherthehostinanetworkisreachable....................................31
5.1.20clear:clearsthescreen ...............................................................................................32
5.1.21passwd:usedtochangethepassword........................................................................32
5.1.22reboot:rebootstheLinPAC(oruse‘shutdown‐rnow’).............................................32
5.2GeneralGCCInstructions ...................................................................................... 32
5.2.1Compi lewithoutlinkingtotheLP‐9x21library.............................................................33
5.2.2Compi lebylinkingtotheLP‐9x21library(libi8k.a).......................................................33
5.3ASimpleExample–Hellow orld.c.......................................................................... 35
5.4i‐TalkUtility ........................................................................................................... 41
6.LIBI8K.A .............................................................................................43
6.1SystemInformationFunctions .............................................................................. 44
6.2DigitalInput/OutputFunctions ............................................................................. 68
6.2.1ForI‐9000modulesviaparallelport .............................................................................68
6.2.2ForI‐7000/I‐9000/I‐97000modulesviaserialport........................................................85
6.3AnalogInputFunctions ....................................................................................... 127
6.3.1ForI‐9000modulesviaparallelport ...........................................................................127
6.3.2ForI‐7000/I‐9000/I‐97000modulesviaserialport......................................................135
6.4AnalogOutputFunctions .................................................................................... 161
6.4.1ForI‐9000modulesviaparallelport ...........................................................................161
6.4.2ForI‐7000/I‐9000/I‐97000modulesviaserialport......................................................166
6.5ErrorCodeExplanation ....................................................................................... 196
7.DemosforLP‐9x21ModulesWithCLanguage .................................197
7.1DIOControlDemoforI‐7kModules.................................................................... 197
7.2AIOControlDemoforI‐7kModules.................................................................... 202
7.3DIOControlDemoforI‐97KModules ................................................................. 204
7.4AIOControlDemoforI‐97KModules ................................................................. 206
7.5DIOControlDemoforI‐9KModules ................................................................... 208
7.6AIOControlDemoforI‐9KModules ................................................................... 210
7.7OverviewoftheModuleControlDemoProgram ............................................... 212