Fast Streaming with VB.Net

Post your .Net discussions here
Post Reply
Don.Holmes

Fast Streaming with VB.Net

Post by Don.Holmes »

The PS2000 Module does not have a declaration for fast streaming. If I create one, the function returns the handle instead of 1 or 0.

Declare Function ps2000_run_streaming_ns Lib "c:\ps2000.dll" (ByVal handle As Integer, ByVal sample_interval As Long, ByVal time_units As Integer, ByVal max_samples As Long, ByVal auto_stop As Integer, ByVal noOfSamplesPerAggregate As Long, ByVal overviewbuffersize As Long) As Integer

The same is true with ps2000_get_streaming_last_values.

Are these functions not available to VB.Net?

I am using the latest version of ps2000.dll with a 64 bit machine.

Robin
Advanced User
Advanced User
Posts: 558
Joined: Fri Sep 19, 2008 10:17 am

Re: Fast Streaming with VB.Net

Post by Robin »

Hi Don

The VB6 example doesn't include fast streaming, but you should be able to implement fast streaming.

I think you need to check your data types as they are not necessarily the same in VB.net as VB6. For example, a managed long is 64 bit.

Hope this helps

Robin

Don.Holmes

Re: Fast Streaming with VB.Net

Post by Don.Holmes »

Thanks Robin. I changed the long to integer and that cleared up the problem.

Post Reply