Attribute VB_Name = "DeclareFunctions"
'Hard
Public Declare Function DevConnect Lib "HTLAHard.dll" (ByVal nDeviceIndex As Integer) As Boolean
Public Declare Function InitDevice Lib "HTLAHard.dll" (ByVal nDeviceIndex As Integer) As Boolean
Public Declare Function SetCmdLA Lib "HTLAHard.dll" (ByVal nDeviceIndex As Integer) As Boolean
Public Declare Function Set_Sample_Rate Lib "HTLAHard.dll" (ByVal nDeviceIndex As Integer, ByVal sel As Integer) As Integer
Public Declare Function Set_SampleDepth Lib "HTLAHard.dll" (ByVal nDeviceIndex As Integer, ByVal depth As Long) As Integer
Public Declare Function Set_PWMV Lib "HTLAHard.dll" (ByVal nDeviceIndex As Integer, ByVal AV As Double, ByVal BV As Double) As Integer
Public Declare Function Set_Pre_Tri Lib "HTLAHard.dll" (ByVal nDeviceIndex As Integer, ByVal PrT As Integer) As Integer
Public Declare Function Set_Trig_En Lib "HTLAHard.dll" (ByVal nDeviceIndex As Integer, ByVal EnA As Integer, ByVal EnB As Integer) As Integer
Public Declare Function Set_Tri_Logic Lib "HTLAHard.dll" (ByVal nDeviceIndex As Integer, ByVal logic As Integer) As Integer
Public Declare Function Set_Trig_Parameter Lib "HTLAHard.dll" (ByVal nDeviceIndex As Integer, ByVal num As Integer, trigP As trig) As Integer
Public Declare Function ReadCollectStatus Lib "HTLAHard.dll" (ByVal nDeviceIndex As Integer) As Long
Public Declare Function ReadSrcData Lib "HTLAHard.dll" (ByVal nDeviceIndex As Integer, pSrcData As Long, ByVal nLen As Long, ByVal nPreT As Integer) As Boolean
Public Declare Function ReadLogicData Lib "HTLAHard.dll" (ByVal nDeviceIndex As Integer, LogicData As Long) As Boolean

'Draw

Public Declare Function HTDrawLABusSignalVB Lib "HTDisplayDll.dll" (ByVal hDC As Long, ByVal left As Long, ByVal top As Long, ByVal right As Long, ByVal bottom As Long, ByVal r As Byte, ByVal g As Byte, ByVal b As Byte, pData As Long, ByVal nDataLen As Long, ByVal nCenterData As Long, ByVal fPT As Double, ByRef nSH As Long, ByVal nStyle As Integer, ByVal nFormat As Integer) As Integer
Public Declare Function HTDrawLASquareSignalVB Lib "HTDisplayDll.dll" (ByVal hDC As Long, ByVal left As Long, ByVal top As Long, ByVal right As Long, ByVal bottom As Long, ByVal r As Byte, ByVal g As Byte, ByVal b As Byte, pData As Long, ByVal nDataLen As Long, ByVal nCenterData As Long, ByVal fPT As Double, ByVal nSH As Long) As Integer

