CSV importer script documentation - ikalogic/ScanaStudio-scripts-v3 GitHub Wiki

CSV importer

This signal builder script allows the user to build logic signals directly from a CSV file. In other words, the CSV file is imported into a workspace, and can later be generated using a compatible device.

Script capabilities

  • Signal builder

Compatible logic analyzer devices

Building (importing) signals from a CSV file

To import signal from a CSV file, simply go to the "Signal Builder" menu, and click "add builder". From the list of builder scripts, choose "CSV importer", then select the CSV file to be imported.

CSV structure

There are two different ways to structure a CSV file and both are supported:

  1. Each line in the CSV file represents a different sample. The period of each sample (and also the period of each line in the CSV file) is fixed. ex:
0 ; 1 ; 1 ; 1
0 ; 1 ; 1 ; 1
1 ; 1 ; 1 ; 1
1 ; 0 ; 1 ; 1
0 ; 0 ; 1 ; 1
  1. Each line in the CSV file represents a transition on one or several channels. In this CSV structure, a dedicated column is needed for the timestamp of each transition. The timestamp is expressed in seconds, and starts from 0s, ex:
0.000000000;1;0;1;1
0.000007920;0;1;1;1
0.000018920;1;0;0;0
0.000026800;1;1;1;1
0.000036480;0;1;1;1
0.000043040;0;1;0;1
0.000050400;1;1;0;1
0.000055760;0;1;1;0

CSV formats

This script can adapt to several CSV format:

  • The separator can be configured to any character like a comma, a semi-column or a space.
  • The decimal point (for the timestamp) can be configured to either a dot (.) or a comma (,)

Licence

This document is distributed under the terms of the GNU General Public License GPLv3.

Copyright IKALOGIC SAS 2019