Test and Measurement Forum

C# ps3000_fastStreaming

Post your .Net discussions here

C# ps3000_fastStreaming

Postby verter » Tue Jan 20, 2015 8:40 pm

Dear Sir or Madam,
I write to ask you about some troubles with your explain in SDK. In your knee-type explain writing in C# language for PicoScore 3425 there is not entry instruction to program “main()”. Moreover, some functions in one are absent too. I have corrected this code, and have eliminated syntactical errors, but this program still does not boot. Can you help me with this problem and give me some advice?
To discard any questions, I can give you parameters of fast streaming mode. Here they are:
1)measurement goes in one port,
2)there are 128000 sampling points,
3) discreteness is equal to 1 microsecond,
4) pickup of trigger is immediate,
5)dates are not aggregation.
I hope you understand my problem well and I look forward to hearing from you soon.
Yours faithfully,Verter.

P.S. there is the file with my program(visual studio 2010 express, windows xp32).

ps3000pg.en r4 Using fast streaming mode
This is the general procedure for reading and displaying data in fast streaming mode:
1. Open the oscilloscope using ps3000_open_unit().
2. Select channel ranges and AC/DC switches using ps3000_set_channel().
3. Set the trigger using ps3000_set_trigger().
4. Start the oscilloscope running using ps3000_run_streaming_ns().
5. Get a block of data from the oscilloscope using
6. Display or process the data.

Code: Select all
            ps3000_set_channel(handle, Channel.ChannelA, true, Coupling.DC, Range.Range10V);
            ps3000_set_trigger2(handle, 5, 0, 0, 0, 0);
            ps3000_run_streaming_ns(handle, 1, TimeUnits.MicroSeconds, 128000, true, 1, 150000);

            while (ps3000_stop(handle) == 1)

                ps3000_get_streaming_values_no_aggregation(handle, startTime, A0, B0, C0, D0, Overf0, TrigA, TrigN, NV );

Posts: 0
Joined: Mon Nov 24, 2014 4:21 pm

Re: C# ps3000_fastStreaming

Postby Karunen » Thu Jan 22, 2015 9:56 am

Hi Verter,

Can you tell me how you are importing the functions from the dll?

It does not look like you are outputting to the variable.

Please note that example may not even grab any values, as you can stop data collection at any time.

It might be better to run using block mode to collect the data points you want.

If you want to send your code to support@picotech.com I can take a look at it for you.

Kind Regards,

Technical Specialist
Pico Technology
Advanced User
Advanced User
Posts: 194
Joined: Thu Nov 21, 2013 9:22 am

Re: C# ps3000_fastStreaming

Postby verter » Sun Jan 25, 2015 7:44 am

Thank you for your reply, I'll send it immediatly.
Posts: 0
Joined: Mon Nov 24, 2014 4:21 pm

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

Who is online

Users browsing this forum: No registered users and 0 guests