wiki:Docs/Prog/Manual/DeviceSupport/DIO

Version 2 (modified by Don Wilson, 15 years ago) ( diff )

--

Table of Contents

  1. Application Libraries
  2. Database Libraries
    1. MySQL Client
    1. About SQLite
    2. SQLite Library (libsql)
      1. Using libsql
    3. SqlBuilder Class
    4. SQLite++ Class
    5. Using SQLite++ with SqlBuilder
  3. Standard 825 Library with Application class (lib825)
    1. Utility Functions
  4. Standard 825 Library with EVENT features (lib825ev)
  5. Communications Functions
  6. CComm
    1. Member Functions
      1. Send
        1. Description
        2. Parameters
        3. Return value
      2. Process
        1. Description
      3. AddRcvEvent
        1. Parameters
        2. Description
        3. Example
      4. SetDebugRawRead
        1. Parameters
        2. Description
        3. Example
    2. See Also
  7. CCommClient
      1. Constructor
        1. Parameters
      2. Member Functions
        1. Description
        2. Example
    1. See Also
  8. CCommSerial
    1. Constructors
        1. Parameters
        2. Remarks
        3. Examples
        4. Example
    2. Member Functions
      1. SetPort
        1. Parameters
        2. Return Value
      2. Open
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      3. Close
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      4. SetParameters
        1. Parameters
        2. Return Value
        3. Remarks
        4. Examples
      5. IsReady
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      6. SetRTS
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
    3. See Also
  9. CCommServer
      1. Constructor
      2. Member Functions
        1. Description
        2. Example
    1. See Also
  10. Analog Output (DAC Digital to Analog Conversion) Functions
    1. Example - Application manually setting DAC output voltage
  11. GetDAC
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  12. GetDACPercent
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  13. GetDACRangeFromIndex
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  14. GetIndexFromDACRange
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  15. SetDACFloat
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  16. SetDACOutputRange
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  17. SetDACPercent
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  18. SetDACReg
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  19. SetDACTrackGrossNet
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  20. SetDACTrackScale
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  21. StopDACTrackScale
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  22. Debug Functions
  23. DEBUG_MSG
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  24. DEBUG_SHOWDATA
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  25. Display Functions
  26. CBitmap
    1. Constructors
        1. Parameters
        2. Examples
    2. Member Functions
      1. LoadBitmp
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      2. DeleteBitmap
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      3. Draw
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      4. GetWidth
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      5. GetHeight
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      6. GetColorCnt
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      7. GetColorsAdded
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      8. GetError
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      9. ReclaimColors
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
  27. CFont 825gen2
    1. Constructors
        1. Parameters
        2. Examples
    2. Member Functions
      1. CFreetypeFont& GetFont(int zoom)
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      2. Load
        1. Parameters
        2. Return Value
      3. SetPixelSize
        1. Parameters
        2. Return Value
      4. GetStrWidth
        1. Parameters
        2. Return Value
      5. DisplayText
        1. Parameters
        2. Return Value
  28. CImage 825gen2
    1. Constructors
        1. Parameters
        2. Examples
    2. Member Functions
      1. LoadImage
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      2. Draw
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
  29. ClearLCD
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  30. DisplayStr DEPRECATED - Replace with DisplayText
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  31. DisplayText
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  32. GetX
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  33. GetY
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  34. InitLCD
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  35. IsFontLoaded
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  36. LocateLCD
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  37. PrintLCD
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  38. PrintLCDbutton
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  39. PrintLCDfont2
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  40. ReadFont
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  41. SetBkColor
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  42. SetCurColor
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  43. File Functions
  44. CFile
    1. Constructors
        1. Parameters
        2. Examples
    2. Member Functions
      1. Open
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      2. Close
        1. Parameters
        2. Retrun Value
        3. Remarks
        4. Example
      3. SetSerial
        1. Parameters
        2. Return Value
        3. Remarks
        4. Examples
      4. ReadLine
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      5. DeleteFile
        1. Parameters
        2. Return value
        3. Remarks
        4. Examples
      6. IsOpen
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      7. IsReady
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      8. SetRTS
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      9. GetFile
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      10. Print
        1. Parameters
        2. Return Value
        3. Remarks
        4. Examples
      11. SetNonBlocking
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      12. Read
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      13. Write
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      14. GetBytesRead
        1. Parameters
        2. Return Value
        3. Example
      15. GetbytesWritten
        1. Parameters
        2. Return Value
        3. Example
      16. Seek
  45. FileCopy
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  46. FindChromiumPath 825gen2
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  47. FindFlashDrive 825gen2
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  48. GetFilesInPathWithExtension
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  49. IsMounted
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  50. MakeDirIfNotExists
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  51. MountDirectory 825gen2
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  52. UnmountDirectory 825gen2
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  53. Form Functions
  54. CForm
    1. Methods
  55. CFormRect 825gen2
  56. EVENT
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  57. EVENT_FLAG_SHOW
    1. Examples
    2. See Also
  58. EVENT_SHOW_BTN_CONTENT
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  59. EnableItem
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
      1. See Also
  60. ExitWithCode
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  61. FORM_ADD_BUTTON
    1. Parameters
    2. Return Value
    3. Remarks
      1. Button Styles
    4. Examples
    5. See Also
  62. FORM_ADD_BUTTON2 825gen2
    1. Parameters
    2. Return Value
    3. Remarks
      1. Button Styles
    4. Examples
    5. See Also
  63. FORM_ADD_INPUT
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  64. FORM_ADD_INPUT2 825gen2
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  65. FORM_DONE_ESCAPE
    1. Example
      1. See Also
  66. FORM_DONE_EVENT_EXTERNAL
    1. Example
      1. See Also
  67. FORM_DONE_LEFT_ARROW
    1. Example
      1. See Also
  68. FORM_HIDE
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  69. FORM_INIT
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  70. FORM_IS_UPDATED
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  71. FORM_RUN
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  72. FORM_SHOW
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  73. FindName
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
  74. GetCurrentItemIndex
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
  75. GetExitCode
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  76. GetItem
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
  77. !GetItemByIDVal
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
  78. GetItemCount
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
  79. GetItemIndex
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
  80. HideItem
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
      1. See Also
  81. IN_EVENT_HIDE_FORM
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  82. IN_EVENT_SHOW_FORM
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  83. IN_EVENT_WRITE_DATA
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  84. IsChanged
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  85. SetInputFont
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  86. SetKeyEvent
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  87. ShowItem
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
      1. See Also
  88. WriteData
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
    6. See Also
  89. Input / Output (Digital I/O) Functions
  90. GetInput
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  91. GetInputMask
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  92. GetOutput
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  93. SetDIOCounter
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  94. SetOutput
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  95. SetOutputMask
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  96. StartDIOPulse
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  97. StartRepeatIO Deprecated
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  98. StopDIOPulse
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  99. StopRepeatIO Deprecated
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  100. Keypad/Sound Functions
  101. ClearKeyBuffer
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  102. KeyPadInsertKey
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  103. KeyPadSetUSBEvent
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  104. OpenBeeper
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  105. PlayNotes
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  106. WaitKeypress
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  107. Process Functions
  108. GetProcessID
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  109. GetProcessIDExcludeSelf
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  110. KillProcess
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  111. ResetPrevGrossWt
  112. ResetPrevNetWt
  113. ResetPrevTareWt
  114. test
  115. String Functions
  116. FloatToStr
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  117. IntToStr
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  118. StrFmt
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  119. StrFmtLen
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  120. StrToFloat
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  121. StrToInt
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  122. StrTrimLeft
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  123. StrTrimRight
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  124. Ticket Functions
  125. CTktFlds
    1. Constructor
        1. Parameters
        2. Examples
    2. Member Functions
      1. Clear
        1. Parameters
        2. Return Value
        3. Remarks
        4. Examples
      2. Set
        1. Parameters
        2. Retrun Value
        3. Remarks
        4. Example
      3. SetEvent
        1. Parameters
        2. Retrun Value
        3. Remarks
        4. Example
      4. PrintTkt
        1. Parameters
        2. Return Value
        3. Remarks
        4. Examples
  126. PrintTkt
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  127. Time and Date Functions
  128. CMillisecondTimer
    1. Constructors
        1. Parameters
        2. Example
    2. Member Functions
      1. Set
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      2. Clear
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
  129. CSleep
    1. Constructor
        1. Parameters
        2. Example
    2. Member Functions
      1. SetTime
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      2. Pause
        1. Parameters
        2. Retrun Value
        3. Remarks
        4. Example
  130. CTimer
    1. Constructors
        1. Parameters
        2. Example
    2. Member Functions
      1. Set
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      2. Clear
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
  131. DoSleep
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  132. GetDateStr
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  133. GetLinuxTime
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  134. GetTimeStr
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  135. IsTimeChanged
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  136. ResetPrevTime
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  137. SleepMilliseconds
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  138. SleepSeconds
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  139. Utility Functions
  140. GetKernelVer
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  141. GetKernelVerStr
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  142. GetLoaderVer
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  143. GetLoaderVerStr
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  144. GetMemFree
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  145. GetMnBdVer
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  146. GetMnBdVerStr
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  147. Weighing Functions
    1. Minimal Weight Indicator Sample Program
  148. CheckWIM * DEPRECATED - New apps should use MnBdSetWIM *
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  149. DLCRepeatMultiIncludeCellWts
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  150. FormatGrossWt
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  151. FormatNetWt
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  152. FormatTareWt
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  153. FormatWt
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  154. GetBelowZero
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  155. GetCapacity
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  156. GetCenterZero
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  157. GetCurUnitsLabel
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  158. GetDecimal
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  159. GetGrossWt
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  160. GetInterval
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  161. GetMotion
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  162. GetNetWt
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  163. GetNumScales
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  164. GetOverCap
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  165. GetProcessScale
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  166. GetSecUnitsLabel
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  167. GetTareWt
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  168. GetUnitsLabel
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  169. GetWtError
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  170. IsGrossWtChanged
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  171. IsNetWtChanged
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  172. IsTareWtChanged
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  173. IsWtStatusChanged
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  174. IsWtUnitsChanged
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  175. MnBdClearEvent
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  176. MnBdClose
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  177. MnBdGetErr
  178. MnBdGetErrMsg
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  179. MnBdGetErrMsgStr
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  180. MnBdOpen
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  181. MnBdProcess * DEPRECATED - New apps should use StartRepeatMulti *
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  182. MnBdRead
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  183. MnBdRequest
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  184. MnBdSetEvent
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  185. MnBdSetWIM
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  186. MnBdShutdown
  187. MnBdStartup
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  188. RequestWt * DEPRECATED - New apps should use StartRepeatMulti *
    1. Parameters
    2. Return Value
    3. Remarks
    4. See Also
  189. ResetPrevGrossWt
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  190. ResetPrevNetWt
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  191. ResetPrevTareWt
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  192. ResetPrevWtStatus
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  193. ResetPrevWtUnits
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  194. SetTareCurrent
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  195. SetTareValue
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  196. SetWIM * DEPRECATED - New apps should use MnBdSetWIM *
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  197. StartRepeatMulti
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  198. StartRepeatWt * DEPRECATED - New apps should use StartRepeatMulti *
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  199. StopRepeatMulti
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  200. StopRepeatWt * DEPRECATED - New apps should use StopRepeatMulti *
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  201. ZeroScale
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  202. Development Environment
  203. Application Signing
  204. Debugging
    1. GDB
  205. Setup for Software Development
      1. About
      2. Features of the Cardinal 825 Programming Environment
      3. Required Files
      4. Installing the Environment
      5. Starting the Environment
      6. Using the Environment
        1. Welcome Screen
        2. Project Explorer
        3. Task Repositories
        4. Task Queries
        5. Subversion
        6. Hyper-V
  206. Version Control
    1. Subversion
      1. About Subversion
      2. Subclipse for Eclipse
        1. Installing Subclipse
          1. Importing Projects Using Subclipse
  207. Device Support
  208. Device Drivers
    1. Overview
  209. Beeper
    1. DIO
      1. DIO Events
        1. About
        2. The Code
      2. DIO Counting
        1. Description
        2. Example
    2. USB Support
      1. USB Mass Storage
      2. USB Keyboards
      3. USB Printing
        1. Successful Tests
        2. Currently Developing
        3. Unsuccessful
      4. USB to PC communications
  210. Display
    1. Fonts
  211. Network
    1. Network File System (NFS)
    2. Weight Server -- Network Access
    3. Network Programming
      1. 825 TCP/IP Server Example
      2. 825 TCP/IP Client Example
    4. Send E-mail from 825
    5. FTP
    6. Batch file to upload a file from a PC to an 825 using the 825 web …
    7. Batch file to download a file from an 825 to a PC using the 825 web …
  212. Serial Ports
    1. Using Serial Ports for Linux Shell
    2. Generic Serial Port Use
  213. USB Support
    1. 825 USB A Ports (2)
      1. USB Mass Storage
        1. Accessing USB storage from a program
      2. USB Keyboards
      3. USB Printing
        1. Compatible USB Printers
      4. USB Hubs
    2. 825 USB B Port (1)
      1. USB to PC communications
  214. Weighing
    1. Get Weight
      1. Command prompt testing
      2. Access the weight data from a program
  215. Foundation
  216. Application Mode Startup
    1. Introduction
    2. Modules
    3. Appmenu Shell Script
    4. Mounts
    5. Support Applications
  217. Shell operations - Linux / Windows command line Reference

DIO

DIO Events

About

This document will guide the programmer through the process of creating and using a simple DIO Event using the DioEvent class provided in the standard library (lib825). DIO Events are processed by the mainboard in order to allow a level of redundancy. Should the OPI board kernel crash the mainboard will continue to provide relay functionality and will disable events when their thresholds are reached.

The Code

To use a DIO event follow the example code below.

Error: Failed to load processor Lineno
No macro or processor named 'Lineno' found

The above code would create an event that would enable board 0 (mainboard) pin 0 when the gross weight of scale 1 is less than 250.00 and greater than 0.00.

DIO Counting

Description

Mainboard software 1.15 is required for counting feature. Kernel 2009-10-07 or later is required. All four inputs of the mainboard may be used for counting. The DIO cards allow any one of inputs 1 - 7 to be used for counting. Input 8 may also be used for counting. This allows for up to two inputs per DIO card to be used for counting.

Example

Error: Failed to load processor Lineno
No macro or processor named 'Lineno' found

USB Support

The Cardinal 825 supports many USB devices such as Flash Drives, Printers (Cardinal supported only!), keyboards, and mice.

USB Mass Storage

The 825 supports USB flash storage devices formatted with the FAT (file allocation table) and FAT32 file systems. From the serial command line when a USB storage device is inserted the display will appear similar to:

No image "usb_insert.jpg" attached to Docs/Prog/Manual/DeviceSupport/DIO

Use the mount command to access files on the USB flash drive:

mount –t vfat /dev/sda1 /mnt/fl1

The files will then appear in the path /mnt/fl1 such as:

No image "usb_mount.jpg" attached to Docs/Prog/Manual/DeviceSupport/DIO

The file manager may be used to access USB flash drives. When the /mnt/fl1 folder is selected the file manager will automatically perform the mount command.

Top

USB Keyboards

As of kernel 2008-11-13 many USB keyboards should work with the 825. Simply plug the keyboard into an 825 USB connection.

No image "usb_keyboard.jpg" attached to Docs/Prog/Manual/DeviceSupport/DIO

Applications using the lib825 functions such as [[lib825:source:trunk/kypdbeep.cpp#L78 ReadKeypad]] or [[lib825:source:trunk/form.cpp#L1027 FormLCD] will automatically work with the USB keyboard. To test the keyboard without any app running type some characters on the keyboard and type:

# cat /dev/usbkybd

Output:

No image "usb_keyboard_test.jpg" attached to Docs/Prog/Manual/DeviceSupport/DIO

The characters typed on the USB keyboard should show on the serial port terminal.

Top

USB Printing

usblp.ko device driver module for usb printing support. Type:

# modprobe usblp

Kernel should be configured with /dev/usblp0 device node. If not type:

# mknod /tmp/usblp0 c 180 0

/dev is in read-only file system so device node can be created under /tmp instead

This creates the character device driver with major number 180 and minor number 0. This should work unmodified with USB printers that accept raw text for printing using a default font.

A simple test is:

# echo “ABCDEFGH” > /dev/usblp0
'''or'''
# echo “ABCDEFGH” > /tmp/usblp0

Applications may be written to open “/dev/usblp0” to print to USB printer 0 instead of “/dev/ttyS1” to open COM2

Successful Tests

  • Okidata Microline 320 Turbo - Older versions of this printer do not have USB port
  • Hewlett Packard DeskJet 830C - Does not print page until filled so extra line feeds are required to fill the page to finish the print

Currently Developing

  • HP LaserJet P1020

Unsuccessful

  • HP LaserJet P1006 - Research indicates this printer requires host to send firmware update file to printer, and does not accept raw text but requires XQX stream protocol

Top

USB to PC communications

To load the driver for USB to PC communications type:

# modprobe g_serial use_acm=1

When the 825 is connected to the PC it will be recognized by the PC and if the driver is not already installed it will prompt for it. Refer to “gadget_serial.txt”

When the driver is installed the PC will appear to have another COM port. For testing on the PC you can then open a communications program such as HyperTerminal and set it to the appropriate COM port (which is actually a USB connection).

On the serial connection to the indicator type:

# echo “abcdefg” > /dev/ttygserial

“abcdefg” will then appear on the Hyperterm display.

In HyperTerminal, type:

123456

On the serial connection to the indicator type:

# cat < /dev/ttygserial

The received characters “123456” from the PC will then be displayed.

Top

Note: See TracWiki for help on using the wiki.