When ever I run the following code in VB it always returns 0 for ps3000_run_block and I can't figure out why. (I have the 3206)
ok = ps3000_get_timebase(ps3000_handle, 5, 100, time_interval, time_units, 4, max_samples)
freq = ps3000_set_siggen(ps3000_handle, 2, 1000, 1000, 1, 100, False, False) running = ps3000_run_block(ps3000_handle, 100, 5, 4, time_indisposed)
If ok Then
Do
ready = ps3000_ready(ps3000_handle)
If ready Then
Exit Do
End If
Loop
Call ps3000_stop(ps3000_handle)
ok = ps3000_get_values(ps3000_handle, Values_a(0), Values_b(0), values_c(0), values_d(0), overflow, 1000)
Else
List1.AddItem ("Error running PicoScope")
End If
I downloaded the vb driver again to see if it would work and it crashes at the same point as the vb driver that I received with my Picoscope. I suspect it is crashing at the line ps3000_run_block, this is why I tried it myself but with no success Are you able to replicate this problem? If not could you send me a different piece of code to try or suggest any corrections to the code in post 1?