Test and Measurement Forum

ps4000 streaming

Post your VB and VBA discussions here

ps4000 streaming

Postby 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)

Posts: 0
Joined: Sun Aug 15, 2010 11:00 am

Re: ps4000 streaming

Postby 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)
Site Admin
Site Admin
Posts: 169
Joined: Tue Aug 17, 2010 9:00 am
Location: St. Neots

Return to VB and VBA (Excel, Access)

Who is online

Users browsing this forum: No registered users and 0 guests