C# ps3000_fastStreaming

Post your .Net discussions here
Post Reply
verter
Newbie
Posts: 0
Joined: Mon Nov 24, 2014 4:21 pm

C# ps3000_fastStreaming

Post by verter »

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
2.3.8.9 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
ps3000_get_streaming_last_values().
6. Display or process the data.

Code: Select all

[size=85]ps3000_open_unit(handle);
            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 );

            }
            ps3000_close_unit(handle);[/size]

Karunen
Advanced User
Advanced User
Posts: 194
Joined: Thu Nov 21, 2013 9:22 am

Re: C# ps3000_fastStreaming

Post by Karunen »

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,
Karunen

Technical Specialist
Pico Technology

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

Re: C# ps3000_fastStreaming

Post by verter »

Thank you for your reply, I'll send it immediatly.

Post Reply