Exporting and importing CSV files

Introduction

In various situations, it’s often useful to export captured signals as CSV or to generate signals that are provided in CSV format. CSV (Comma Separated Values) is a standard way of encoding data in a text format and is usually used as a mean of transferring data from one software to another (export to CSV in software, and import from CSV in another software).

Although any ScanaStudio workspace can be exported as a CSV file, only devices that are capable of generation can import CSV data.

Exporting as CSV

To export captured samples in CSV format, open the “Workspace” pannel and click “Export as CSV” as shown in the image below.

Exporting logic signals

You can either export the logic signals, or the raw data from a decoder (if a protocol decoder is added to the workspace).

You can choose to either export all captured samples or, in case of a massive capture, you can place markers in your workspace to mark the beginning and the end of the data to be exported. In that latter case, you need to change the “Start” and/or the “end” options in the CSV Export panel.

You can also specify several options like the format of the separator or the decimal format.

Importing a CSV file

While it’s not possible to import CSV files in ScanaStudio’s waveform area directly, a CSV file can be fed to a generator-capable logic analyzer device. This effectively allows you to generate a pattern that is already defined in a CSV file.

The CSV importer script that offers this feature is described in detail in this knowledge-base article.