Importing and uploading Data files to your Collimator models
It is possible to upload some data files to Collimator and use them as source data in models. The
Data Sourceblock can then be used to generate signals from a pre-uploaded CSV file.
The Collimator graphical modelling language is statically typed. This means that, prior to running a simulation, the model is analyzed and every signal is assigned a fixed type. At present the language supports two base types:
- double (64-bit floating point values).
Support for integers, vectors and matrices is forthcoming.
Data can also be imported directly in the model editor. Upload files by clicking the
+button next to Others in the project browser pane on the left of the editor.
The following is the text content of a valid CSV file accepted by Collimator’s Data Source block.
The first “header” line is optional and may be omitted. In that case, the
columnparameter may only be a number (the column’s index, starting from 0).
Numbers can be formatted like integers like
12, floating pointer numbers like
13.37or using scientific representation like