[Scilab] Plot oscilloscope big csv export

Some days ago I tried to learn more about SPA (Simple Power Analysis attack), I take my Rigol scope and set the Long Memory Mode.

I stored the trace in CSV format on my usb key and searched for a way to print a csv with 1 Mega samples… You can forget about Gnumeric, LibreOffice or Excel, I found some « projects » but really nothing fancy (or even usable). Last option Scilab or Matlab. I tried Scilab some time ago and was a little disappointed (no documentation or resources). But it’s Free !

This time it was a good surprise, the console has the code/path completion and a variables watching window ! To be simple Scilab support CSV import and plotting without too much problems :)

First code (and really bad one, deprecated you can find on some website):

my_data = read_csv(filename);

Why bad one ? Because it will generate you a String Matrix with col_num * samples elements… And the only way to use that stuff later is to do an eval() on each… If you have some hours to lose that’s a good way :D

Second code ( the one I use):

stacksize("max"); //to avoid import problem
values = csvRead('NewFile0.csv', ',', '.', 'double'); //take care to set separator and decimal sign as you need

Full trace view (1M sample/1 channel)
full trace

Zoomed trace view

Deprecated read_csv – Function Help
csvRead – Function Help


Une réflexion au sujet de « [Scilab] Plot oscilloscope big csv export »


Entrez vos coordonnées ci-dessous ou cliquez sur une icône pour vous connecter:

Logo WordPress.com

Vous commentez à l'aide de votre compte WordPress.com. Déconnexion /  Changer )

Photo Google

Vous commentez à l'aide de votre compte Google. Déconnexion /  Changer )

Image Twitter

Vous commentez à l'aide de votre compte Twitter. Déconnexion /  Changer )

Photo Facebook

Vous commentez à l'aide de votre compte Facebook. Déconnexion /  Changer )

Connexion à %s