ps4000 streaming

Post your VB and VBA discussions here
Post Reply
Posts: 0
Joined: Sun Aug 15, 2010 11:00 am

ps4000 streaming

Post by eki » Mon Feb 07, 2011 7:50 pm

Can somebody help with steaming mode in ps4000 and VB code.
I copied the VBA code from ps4000.xls to my VB6 code. The GetData works well, but the sreaming locks the whole VB. I think it stops at line "newSamples = AvailableData(handle)" What can cause this?
(PicoScope 4424)


Site Admin
Site Admin
Posts: 169
Joined: Tue Aug 17, 2010 9:00 am
Location: St. Neots

Re: ps4000 streaming

Post by Chris » Tue Feb 08, 2011 2:04 pm

The example needs to be ammended, as follows....

Declare Function AvailableData Lib "ps4000Wrap.dll" (ByVal handle As Integer, ByRef startIndex As Long) As Long

Dim startIndex As Variant
newSamples = AvailableData(handle, startIndex)

Post Reply