Recent

Author Topic: Really big array on Raspberry Pi  (Read 5009 times)

Thaddy

  • Hero Member
  • *****
  • Posts: 14204
  • Probably until I exterminate Putin.
Re: Really big array on Raspberry Pi
« Reply #15 on: February 17, 2019, 01:25:48 pm »
2 at that size of the array the amount of time required to save it make it looked like the program hanged but it works
That's a design problem and not related the the Raspberry Pi perse: it depends more on the medium to which you write. It can happen on the fasted hardware if the media lags.
So it is really not always the processor that limits this. That's likely not the bottleneck.
I suppose you want to store hardware samples to disk. I write audio applications on the raspberry pi and write my samples to disk in blocks of 64 -128-256 or 512 bytes to achieve near real-time latencies.
The Raspberry Pi keeps up with such small blocks. Even a Raspberry Pi 1 B
Maybe you can rewrite your application in a similar manner.  I know that e.g. the scope hats do the same and these produce an awful lot of data..
See e.g.
https://www.electronicsweekly.com/news/design/test-and-measurement-2/design-make-10mhz-scope-hat-raspberry-pi-2018-02/
https://www.diymat.co.uk/using-raspberry-pi-arbitrary-waveform-generator-simple-scope-using-universal-plus-hat/
« Last Edit: February 17, 2019, 01:35:55 pm by Thaddy »
Specialize a type, not a var.

 

TinyPortal © 2005-2018