looking for vb.net streaming mode example

Post general discussions on using our drivers to write your own software here
Post Reply
TimOster
Newbie
Posts: 0
Joined: Mon Dec 01, 2014 5:36 pm

looking for vb.net streaming mode example

Post by TimOster » Tue Jun 19, 2018 4:54 pm

Where can I find a streaming mode example for vb.net? The GitHub only has block mode. I've got that working, now I'd like to add streaming.

Thanks.

Hitesh
Site Admin
Site Admin
Posts: 2810
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: looking for vb.net streaming mode example

Post by Hitesh » Thu Jun 21, 2018 8:50 am

Hi Tim,

We do not currently have an example for streaming in VB .NET for the ps2000 driver although we may look to provide one in the future.

In the meantime, the PS2000Imports.vb file contains definitions for the functions from the ps2000Wrap.dll that can be used for fast streaming acquisition. There is an example of the code flow that you can use in the Excel example for this driver.

Hope this helps.
Hitesh

Technical Support Engineer

Martyn
Site Admin
Site Admin
Posts: 3301
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: looking for vb.net streaming mode example

Post by Martyn » Thu Jun 21, 2018 9:44 am

Alternatively look at the C# example and convert it :)
Martyn
Technical Support Manager

TimOster
Newbie
Posts: 0
Joined: Mon Dec 01, 2014 5:36 pm

Re: looking for vb.net streaming mode example

Post by TimOster » Fri Jun 29, 2018 5:05 pm

OK, where is the C# example?

TimOster
Newbie
Posts: 0
Joined: Mon Dec 01, 2014 5:36 pm

Re: looking for vb.net streaming mode example

Post by TimOster » Fri Jun 29, 2018 6:32 pm

OK, downloaded the c# files from GitHub. After looking at them, I see that you are using unsafe code. That can not be translated to vb.net.

VB.net does not support unmanaged code, so that won't work.

I'll work with the VBA example.

Post Reply