K8061 ReadAnalogChannel

Hello,

After assembly of a K8061 chart, I would like to read the analogical entries (AD1-AD8)

My small concern, I manage to read (with connection chart) my values of test (fixed; ex: 0v or 3v)

But, of the variable values, (via potentiometer). Not possible.

Here example of my code (textbox): VB2005

‘Private Sub TextBox1_Change()
‘Dim AD1 As Long
‘Dim CardAddress As Long

‘AD1 = ReadAnalogChannel(CardAddress, 1)
‘ActiveSheet.Range("B1").Value = AD1
‘UserForm1.TextBox1.Value = ActiveSheet.Range("B1")
         ‘UserForm1.Repaint
‘End Sub  

With the K8055 chart, that functions perfectly.

(perhaps because of the DDL “timer”?)
Private Declares Function SetTimer Lib “user32” (_ ByVal HWnd Long Ace, ByVal nIDEvent Long As, _ ByVal uElapse Long Ace, ByVal lpTimerFunc Ace Long) Long AcePrivate Declares Function KillTimer Lib “user32” (_
ByVal HWnd Long Ace, ByVal nIDEvent As Long) Ace Long

You have solutions for reading variable analogical entries on K8061.

Thank you, the answer is close for

To get the variable values, you have to use the timer with the K8061 too - I think.