Test and Measurement Forum

Fast Streaming with VB.Net

Post your .Net discussions here

Fast Streaming with VB.Net

Postby Don.Holmes » Mon Apr 19, 2010 4:04 pm

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.
Don.Holmes
 

Re: Fast Streaming with VB.Net

Postby Robin » Tue Apr 20, 2010 10:06 am

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
Robin
Zen Master
Zen Master
 
Posts: 558
Joined: Fri Sep 19, 2008 10:17 am

Re: Fast Streaming with VB.Net

Postby Don.Holmes » Tue Apr 20, 2010 2:16 pm

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


Return to .Net Languages (C#, VB.Net, .)

Who is online

Users browsing this forum: No registered users and 0 guests