How to control Sampling Rate and how to record data continously
luisfer
Posts: 12
Hi,
I would like to know how could I change the sampling rate of the PropScope in order to get the maximum sampling rate in all the timescales.
I need to know as well how could I record data continously, not to get 1024 points every x time. I would like to save datas during 10 seconds without stoping.
Thank you
Luisfer
I would like to know how could I change the sampling rate of the PropScope in order to get the maximum sampling rate in all the timescales.
I need to know as well how could I record data continously, not to get 1024 points every x time. I would like to save datas during 10 seconds without stoping.
Thank you
Luisfer
Comments
The PropScope supports two modes: sampling and streaming. When the timescale is slow enough (I think slower than 20ms/div) to continuously send all samples over the usb connection, then PropScope goes into "streaming" mode, where you see all samples moving from right to left. Of course you can pause the acquisition at any time or otherwise change acquisition options.
When you set the timescale knob to a faster timescale, the scope will take a set of samples and transfer them to be displayed. The sampling rate is calculated to return 20 divisions of data- a bit over 1024 samples. This lets you pause and then scroll back/forth up to 2 screens- or zoom in/out. Maximum sampling rate is 25MSPS.
Hanno
I understood how works the PropScope, but my question might be, how could I change this way of work?, and if I am able get the proper software in order to be able to get samples during, let's say, a few seconds in a faster scale than 20ms with the maximum sampling rate.
I am working in a student project and I need to get the real software to modify it.
I'm still not sure you need to change anything- please state exactly what you want the scope to do.
PropScope electronics are open-source- however, the application and firmware are not.
Hanno
At lower speeds, it would be possible to use a loop and write the samples directly to hub ram, which would limit you to a maximum possible 32Kb of samples, minus code space. The Propeller chip does not have access to enough RAM to take several seconds of samples at maximum speed. If the samples were 8 bit, 3 seconds at 25 million samples per second is 3 megabytes of ram.
In short, there's a good chance the PropScope is not technically capable of what you want it to do.
Yes, the Propeller's hardware, like anything else, puts limitations on what can be done. Main issues are the Propeller's speed, memory size and USB connection speed. The PropScope actually uses 2 10bit ADC's- and samples all 32bits every sample. So it's filling memory at up to 25*4=100MB or 800Mbit/sec. My other product, ViewPort doesn't allow trigger AFTER the samples have been taken- but does sample all 32bits at up to 100Msps- for a data rate of 400MB or 3.2Gbit/sec. The Propeller is very powerful!
Hanno
The other question I had was, How can I control the Propscope working with LabView?
PropScope has a DDE server built in. You can use DDE clients like Labview, Excel, Matlab or programs written in .NET, python to read and write data to/from the PropScope. It does take a fair bit of work, but it's fairly flexible, some info is here:
http://hannoware.com/viewport/clients.php
Hanno
Try the latest here: http://forums.parallax.com/showthread.php/123627-Latest-PropScope-software