Test and Measurement Forum

Fast Streaming DLL Call

Post your VB and VBA discussions here

Fast Streaming DLL Call

Postby krazyjoe » Fri Apr 10, 2009 7:29 pm

Does anyone have a call to ps3000_run_streaming_ns that is known to work. When I try to run it, it only returns 0. I don't know if the problem is my declare statement. I declare the function from the DLL as follows:

"Declare Function ps3000_run_streaming_ns Lib "ps3000.dll" (ByVal handle As Short, ByVal sample_interval As Long, ByVal time_units As Long, ByVal max_samples As Long, ByVal auto_stop As Short, ByVal noOfSamplesPerAggregate As Long, ByVal overview_buffer_size As Long) As Short"

Any help would be appreciated greatly. Thanks.
krazyjoe
Active User
Active User
 
Posts: 5
Joined: Tue Jan 20, 2009 4:05 pm

Postby Robin » Tue Apr 14, 2009 9:17 am

Have you looked at streamingTests.cpp in the SDK? This is a C++ example that demonstrates fast streaming.

Robin
Robin
Zen Master
Zen Master
 
Posts: 558
Joined: Fri Sep 19, 2008 10:17 am

Postby krazyjoe » Wed Apr 15, 2009 5:58 pm

Yes, I have looked at streamingTests.cpp. As best as I can tell I am calling the procedure correctly. I am working with VB.
I call the function as follows:
"StreamOK = ps3000_run_streaming_ns(PSHandle, 200, 2, 150000, 0, 1, 18349)"
krazyjoe
Active User
Active User
 
Posts: 5
Joined: Tue Jan 20, 2009 4:05 pm


Return to VB and VBA (Excel, Access)

Who is online

Users browsing this forum: No registered users and 0 guests