PicoScope 4262 streaming in labview

Post your LabVIEW discussions here
Post Reply
Bartek
Newbie
Posts: 0
Joined: Tue Jul 23, 2019 7:21 am

PicoScope 4262 streaming in labview

Post by Bartek » Tue Jul 23, 2019 7:38 am

Hello,

I would like to set sampling rate around 4 MS/s in a LabView code but I do not know how to do it. Following specification I see that it should be possible to set even 10 MS/s.
Could you please tell me how to set sampling rate biger than 1 MS/s in Picoscope4000ExampleStreaming.vi (this 1 MS/s is probably default)? Maybe I should use Picoscope4000ExampleBlock.vi for it?
Could you please send me VI for generator which is in this PicoScope?

Kind regards
Bartek N

AndrewA
PICO STAFF
PICO STAFF
Posts: 257
Joined: Tue Oct 21, 2014 3:07 pm

Re: PicoScope 4262 streaming in labview

Post by AndrewA » Fri Jul 26, 2019 8:55 am

Hi Bartek,

On the front panel in the streaming example you can set the sample rate under the 'Acquisition Settings' section.
Set 'Desired Sample Interval' to 250 and 'Time Units' to ns, giving 250ns = 4MHz sample rate.
The actual 'Sample Interval' is returned on the front panel, you may want connect the 'Time Units' to the front as it is not connected.
The driver will try and choose a timebase as close to the desired as possible.
All the actual sample rates can be calculated from the formula in the programmers guide-
page 7 of picoscope-4000-series-programmers-guide.pdf

Code: Select all

(n+1) / 10,000,000
Where n can be 0 to ((2^32)-1)
The fastest timebase in Block mode being 100 ns (10MHz), for streaming mode this is limited the scopes USB transfer rate to
10 MS/s for one channel or 6.7 MS/s for two channels.

For the other Block examples you need to use the timebase number 'n' as given in the formula above. In the 'Acquisition Settings' section of the front panel.

I have created a example for controlling the AWG, which is now on github-
32-bit PicoScope4000ExampleAWG.vi
64-bit PicoScope4000ExampleAWG.vi
You will also need the updated 32/64-bit version of the PicoScope4000.llb-
32-bit PicoScope4000.llb
64-bit PicoScope4000.llb

You can combine the code for the AWG and block or streaming capture modes.
There is example done for the 5000a API scopes here-
Pico 5243D - Sync scope acquisition with AWG signal output
For streaming you need to do the same, call the PicoScope4000AWG.vi after the PicoScope4000settings.vi.
Regards Andrew
Technical Specialist

Bartek
Newbie
Posts: 0
Joined: Tue Jul 23, 2019 7:21 am

Re: PicoScope 4262 streaming in labview

Post by Bartek » Fri Jul 26, 2019 11:22 am

Hi Andrew,

thank you very much for your very helpful answer :D.

Best regards
Bartek

Bartek
Newbie
Posts: 0
Joined: Tue Jul 23, 2019 7:21 am

Re: PicoScope 4262 streaming in labview

Post by Bartek » Wed Sep 18, 2019 9:34 am

Hi,

I have problem with fast capturing data directly to disk with no gap in continus data. I am using PicoScope4000ExampleStreaming.vi for PicoScope 4262. The sample interval is 200 ns (~5MS/s). For transfer I am using USB 2.0.
Currently the longest single data capture is just 10 s. After that time I can find only 10MS in the file but it should be 50MS.
How can I achieve better result?
Is it possible to capture simultaneously this amount of data from three PicoScopes 4262 using all channels?

Regards
Bartek

Post Reply