Fast Streaming DLL Call

Post your VB and VBA discussions here
Post Reply
krazyjoe
User
User
Posts: 5
Joined: Tue Jan 20, 2009 4:05 pm

Fast Streaming DLL Call

Post by krazyjoe »

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.

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

Post by Robin »

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

Robin

krazyjoe
User
User
Posts: 5
Joined: Tue Jan 20, 2009 4:05 pm

Post by krazyjoe »

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

Post Reply