Component: CSV Read/Write (File): Difference between revisions
No edit summary |
m Text replacement - "class="wikitable" style="width:60%; background-color:#FFFFFF;"" to "class="mtx-class-macrotable wikitable"" |
||
| Line 75: | Line 75: | ||
===AddInteger=== | ===AddInteger=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| Line 94: | Line 94: | ||
===AddNumber=== | ===AddNumber=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| Line 113: | Line 113: | ||
===AddString=== | ===AddString=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| Line 132: | Line 132: | ||
===CloseFile=== | ===CloseFile=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| Line 146: | Line 146: | ||
===NextRow=== | ===NextRow=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| Line 160: | Line 160: | ||
===OpenFile=== | ===OpenFile=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| Line 184: | Line 184: | ||
===ReadAsNumber=== | ===ReadAsNumber=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| Line 208: | Line 208: | ||
===ReadAsString=== | ===ReadAsString=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| Line 232: | Line 232: | ||
===SequentialReadNumber=== | ===SequentialReadNumber=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| Line 246: | Line 246: | ||
===SequentialReadString=== | ===SequentialReadString=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| Line 260: | Line 260: | ||
===SetSequentialIndex=== | ===SetSequentialIndex=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| Line 280: | Line 280: | ||
==Property reference== | ==Property reference== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]] | ||
Revision as of 14:15, 13 July 2026
| Author | Matrix TSL |
| Version | 1.0 |
| Category | File |
CSV Read/Write component
A component to simplify the task of creating and dumping data to a CSV file that can be loaded into Microcoft Excel or LibreOffice Math to create nice charts and graphs. Requires one of the File components to provide access to the file system.
Detailed description
No detailed description exists yet for this component
Examples
Simple example file to generate a two column CSV file that can be loaded into Microsoft Excel or LibreOffice Math.
The CSV Read/Write component is for simulation or App Developer.
For an embedded CSV read write see the File component
CSV Component used with App Developer -> File component:
CSV Test AD
The component requires linking to a File component to provide access to the file system for simulation and runtime, this could be the File SD, File RPI or File AppDeveloper components.
Macro reference
AddInteger
| AddInteger | |
| Adds an integer number to the CSV followed by a comma. This will form a single column of data in the CSV file. | |
| data | |
| Return | |
AddNumber
| AddNumber | |
| Adds a number to the CSV followed by a comma. This will form a single column of data in the CSV file. | |
| data | |
| Return | |
AddString
| AddString | |
| Adds a string to the CSV followed by a comma. This will form a single column of data in the CSV file. | |
| data | |
| Return | |
CloseFile
| CloseFile | |
| Closes the file and finishes off any pending writes ready for use in an external application. | |
| Return | |
NextRow
| NextRow | |
| Move to the next row in the file | |
| Return | |
OpenFile
ReadAsNumber
| ReadAsNumber | |
| Reads the contents of a cell as a number. | |
| Column | |
| Row | |
| Return | |
ReadAsString
| ReadAsString | |
| Reads the contents of a cell as a string | |
| Column | |
| Row | |
| Return | |
SequentialReadNumber
| SequentialReadNumber | |
| Reads the contents of a cell as a number. Automatically moved to the next data cell after a read. | |
| Return | |
SequentialReadString
| SequentialReadString | |
| Reads the contents of a cell as a string. Automatically moved to the next data cell after a read. | |
| Return | |
SetSequentialIndex
| SetSequentialIndex | |
| Sets the index for sequential reads. Index is automatically reset to 0 after a file open. | |
| Index | |
| Return | |
Property reference
| Properties | |
| LinkTo | |
Component Source Code
Please click here to download the component source project: FC_Comp_Source_CSV_Writer.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_CSV_Writer.fcfx