Pico logger 1216 - doesn't run

Post your .Net discussions here
Post Reply
petro
User
User
Posts: 4
Joined: Tue Sep 08, 2009 8:28 am

Pico logger 1216 - doesn't run

Post by petro »

" & reading Call UsbAdc11CloseUnit(opened) ' Close unit Else MsgBox("Unable to open ADC ") End If End Sub
-->
Hello,

I'm a bit confused with drivers.

What kind of driver I need in order to get values from Picologger 1216 ?

Im thinking about usbadc11.dll at moment.
by the code Excel's example (usbadc11.xls) Picologger 1216 seems works fine.
Piclog software works fine too.

Can you help me pls ?
Thank in advance

O.S. : Windows XP
Product : usb Picologger 1216


Code: Select all

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

        ' Open Adc11 on USB
        '1 Check that the driver(optional) 
        '2 Open the unit 
        '3 Set trigger mode (optional) 
        '4 Set sampling mode  
        '5:      .Run()
        '6.Wait until ready 
        '7:      .Get(values)
        '8.Close the unit 

   opened = UsbAdc11OpenUnit()   ' Open unit
   If opened <> 0 Then
      MsgBox("OK")
      UsbAdc11SetInterval(opened, 1000000, 1, 7, 1) 'Set Sampling mode
      UsbAdc11Run(opened, 1, 0) ' Run()

       Do While Ready = 0
           Ready = UsbAdc11Ready(opened)  '<----- doesnt work
       Loop 

        Dim reading As Integer
        ok = UsbAdc11GetValue(opened, 7, reading) ' GetValue

        TextBox1.Text = TextBox1.Text & "------>" & reading

        Call UsbAdc11CloseUnit(opened) ' Close unit

        Else
            MsgBox("Unable to open ADC ")
        End If
    End Sub