Short Answer
Comma-separated values (CSV) — a plain-text format in which each line is a record and the fields within it are separated by commas — is the default interchange format for engineering results. Simulation time histories, design-point parameter tables, and hydraulic or process-model outputs all travel between analysis tools, spreadsheets, and reporting scripts as CSV files. The simplicity that makes the format universal also limits it: a CSV file has no built-in notion of units, numerical precision, or the metadata (data types, object names, model locations) that gives results meaning. Those survive an export only if the exporting tool encodes them explicitly, through its options or through a structured CSV convention. This article explains what plain CSV loses, how vendors such as MathWorks, Ansys, and Innovyze preserve context in their formats and export dialogs, and how to configure an export so results remain trustworthy when they are reanalyzed or reimported.
What a CSV file can and cannot carry
Structurally, a CSV file is a table written as text. Each line is an independent record made of fields separated by commas, and an optional header line may name each column — a description that matches how Ansys documents its design-point exports from Workbench. Numbers are stored as character strings, so the text 12.345 states a magnitude but no unit; the receiving software decides how to interpret it. Three kinds of engineering context are routinely lost in a plain export:
- Units. A column of pressures is meaningless without knowing whether the values are in kPa, bar, or psi. Even when headers are present, they name the column without stating its unit unless the format or an export option provides for it.
- Precision. A file contains exactly the digits written to it. If the exporter writes values rounded for display rather than at the full stored precision of the calculation — roughly 15 to 17 significant digits for a standard double-precision number — every downstream calculation inherits that rounding.
- Metadata and structure. Data types, the interpolation method (how values between sampled points are reconstructed), source object paths, grouped signal hierarchies, and the identity of the run or simulation have no place in standard CSV, so generic files cannot record them.
Scope is a related concern: an export should make clear what was exported and from which simulation. Tool dialogs typically leave this to the engineer. The CSV Export dialog in Innovyze InfoWorks ICM, for example, exports results from one or more simulations for a selection of network objects; a Selection List restricts the export to chosen objects, while without one the results of all network objects are exported.
How structured formats and export options preserve context
Engineering software closes these gaps in two ways: vendor-defined structured CSV conventions that embed metadata in the file itself, and export dialogs whose options add units and descriptions to otherwise plain files.
Simulink’s structured CSV for simulation data
Since release R2026b, the Simulation Data Inspector (SDI) in MATLAB and Simulink has used a structured CSV file format for importing and exporting simulation data. The format supports multiple data types, including enumerations, fixed-point data (numbers represented with a fixed scaling, common in embedded systems), complex signals, and multidimensional signals. It also carries signal metadata — units, data types, block paths, and interpolation method — and can hold bus hierarchies (Simulink’s grouped signal structures) and multiple runs in a single file. Data exported in this format can be reimported without modifying the file: export with Simulink.sdi.exportRun or the export function on a run or signal object, and import through the SDI import dialog or Simulink.sdi.createRun. For CSV files that do not follow the structured format, MathWorks recommends writing a custom file reader based on the io.reader class.
Ansys Workbench’s extended CSV for design points
Workbench exports design-point parameter values — results computed for a named set of input parameter settings — to CSV in an extended file format that layers Workbench-specific conventions onto standard CSV. Values are separated by commas, each line is an independent record, and the header structure identifies the data: an optional line names each column, while a mandatory line identifies each parameter by an ID such as P1. Any line beginning with the # character is treated as a comment line and ignored. Two conventions bear directly on fidelity. First, numbers are locale-independent: the value 12.345 is always written with a decimal point, regardless of the computer’s regional settings, so the file reads the same everywhere. Second, values are always exported in the units as defined in Workbench, which means anyone reading the file must know which unit system was active at export time.
Export options that add units and descriptions
Where a tool writes plain CSV, its dialog options determine what survives. The export options dialog in InfoWorks WS Pro first offers a layout choice — all tables in one file or one file per object type — and notes that the same data is exported either way, with the choice depending on what the exported data will be used for. Three further options add context: include database field names, which provide column headers and are required for subsequent import back into InfoWorks WS Pro; include field descriptions, additional information useful when viewing the data outside the software; and include unit descriptions. In effect, units are preserved only if the option is switched on. This pattern is common across engineering tooling: the default output is maximally portable but silent about context, while the richer options trade a little simplicity for fidelity.
Choosing between plain and structured export
The right approach depends on where the data goes next. The table below summarizes the main options, using the formats described above as reference cases.
| Export approach | What it preserves | Typical use |
|---|---|---|
| Plain CSV with optional headers | Values only; units survive only if written into headers or accompanying notes | Quick interchange with spreadsheets and scripts; the engineer records context separately |
| Structured or extended CSV (Simulink SDI format; Workbench design-point conventions) | Values plus units, data types, parameter IDs, block paths, and hierarchy; built for lossless reimport | Round-tripping within the same tool and automated pipelines that understand the convention |
| Custom reader route (for example, the MATLAB io.reader class) | Maps an arbitrary CSV layout onto importable data | Legacy or third-party files that do not match a built-in format |
Because structured conventions are still CSV text, any application can open the file; only software that understands the convention, however, will interpret the metadata attached to it. Plain CSV therefore maximizes portability but shifts responsibility for units and context onto the engineer, while a structured format shifts that responsibility to the format itself.
A checklist for exporting without losing information
- Decide the destination first. If the data must return to the same tool, use its structured format and any options flagged as required for reimport — for example, the database field names required by InfoWorks WS Pro, or the SDI’s round-trip format. For exchange with other software, plain CSV with explicit unit annotations is usually more practical.
- Capture units explicitly. Enable unit-description options where offered, rely on structured metadata such as the SDI’s unit field, or write the unit into each column header yourself. Note the exporting tool’s unit system — Workbench exports design-point values in the units as defined in Workbench — so recipients are not left guessing.
- Write full precision. Prefer exporters or settings that write stored values rather than display-rounded ones, and prefer locale-independent number formats such as Workbench’s, which always uses a decimal point.
- Keep identifiers. Parameter IDs (P1 and so on), database field names, and field descriptions let a recipient map each column back to the model quantity it came from.
- Scope the export deliberately. Use Selection Lists in tools such as InfoWorks ICM to limit exported objects, and choose between a single file and one file per table — WS Pro exports the same data either way — based on how recipients will use the results.
- Validate by reimporting. Round-trip the file — import it back and compare values, units, and structure against the source — before distributing it. Where a built-in importer cannot parse a non-standard CSV, a custom reader such as MATLAB’s io.reader class is the appropriate remedy.
Common problems and remedies
- Numbers change or import as text. This is usually locale handling: some regions write 12,345 to mean twelve point three four five, while spreadsheet software may read the same text as twelve thousand three hundred forty-five. Workbench’s locale-independent convention exists to prevent exactly this problem; otherwise, agree on a decimal convention with every consumer of the file and verify a parsed sample.
- Units are missing after import. The file was plain CSV with no unit option enabled. Re-export with unit descriptions or structured metadata, or embed the unit in each column header as a last resort.
- Leading rows confuse the parser. Extended formats intentionally include comment lines (starting with #) and parameter-ID header rows, as in Workbench design-point files. Skip the comment lines and parse the ID row to map columns to parameters.
- Metadata disappears on reimport. Generic CSV readers ignore what they do not understand. Reimport through the tool’s native path — the SDI import dialog or Simulink.sdi.createRun, for instance — or use a custom reader that maps the layout explicitly.
- Reanalysis gives slightly different answers. Check whether the export wrote display-rounded values instead of stored precision. Re-export at full precision and confirm with a round trip that the values match.
- The tool refuses to import the file. Missing prerequisites are often the cause. InfoWorks WS Pro, for example, requires database field names in the CSV before it can import the data back, so the corresponding export option must be enabled.
Practical takeaways
CSV records only what is written down, so preserving engineering context is a matter of deliberate configuration. Prefer a structured format when data will return to the same tool, since formats such as Simulink SDI’s are built for lossless reimport. Enable explicit unit and description options when exchanging files widely, and state the unit system in accompanying notes when the format cannot carry it. Keep numbers locale-independent and at full stored precision, retain parameter IDs and field names, and validate every export by importing it back before it leaves your hands. When no format support exists, embedding the unit in each column header remains the simplest universal safeguard — but it depends on discipline, whereas a structured format makes fidelity the default.
FAQ
Does a CSV file store units?
No. Standard CSV stores text only. Units survive if the exporter adds them — through options such as InfoWorks WS Pro's unit descriptions, through embedded metadata as in Simulink SDI's structured CSV, or by writing the unit into each column header yourself.
Why do exported numbers sometimes look wrong in another program?
Most often because of locale differences in decimal separators: some regions write 12,345 for the value twelve point three four five. Ansys Workbench avoids this by always writing values such as 12.345 with a decimal point regardless of regional settings; other exporters may follow the computer's locale, so the parsing convention should be checked.
Can exported CSV be reimported without any loss?
Only if it follows the tool's structured format. MathWorks states that CSV exported from the Simulation Data Inspector can be reimported unchanged, while non-standard CSV requires a custom io.reader. InfoWorks WS Pro requires database field names to be included before it will import a CSV file.
Should I export all results to one CSV file or split them across files?
InfoWorks WS Pro exports the same data either way; the right choice depends on what the exported data will be used for. If files feed separate workflows or tools, one file per table or object type is usually easier to manage.
Leave a Reply