visual3d:documentation:definitions:file_formats:visual3d_ascii_format
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
visual3d:documentation:definitions:file_formats:visual3d_ascii_format [2024/06/19 12:47] – sgranger | visual3d:documentation:definitions:file_formats:visual3d_ascii_format [2025/03/18 19:00] (current) – [Component String] Organized information into a table. wikisysop | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | visual3d exports data into several file formats. the simplest and default file format for data export to ascii files is the following: | + | ====== Visual3D ASCII Format ====== |
- | **any signal** that can be seen in the data tree (in signal and event processing mode) can be exported to a c3d file. | + | Visual3D exports |
- | |- |c:exampledataexamplewalk.c3d|filename | + | **Any signal** that can be seen in the Data Tree (in Signal and Event Processing Mode) can be exported to a C3D file. |
- | |- |emg9 |signal name | | + | |
- | |- |analog | + | |- |C:ExampleDataExampleWalk.c3d|Filename |
- | |- |original | + | |- |EMG9 |Signal Name | |
- | |item|x |component. (analog | + | |- |ANALOG |
+ | |- |ORIGINAL | ||
+ | |ITEM|X |Component. (ANALOG | ||
|1 | |1 | ||
|2 | |2 | ||
Line 14: | Line 16: | ||
|5 | |5 | ||
- | \\ | + | The file contains data in columns. |
- | the file contains data in columns. | + | |
- | ====== time data ====== | + | ===== Time Data ===== |
- | visual3d | + | Visual3D |
- | an example header: | + | ^ Time Label ^ Description ^ |
+ | | TIME | This is a column containing the time at the [[visual3d:documentation: | ||
+ | | ANALOGTIME | This is a column containing the time at the [[visual3d: | ||
+ | | DERIVEDTIME | This is a column containing the time at a DERIVED rate. DERIVED signals can have any sampling rate that is an integer multiple of the POINT rate. Each ASCII file permits only one DERIVEDTIME signal. If there is more than one DERIVEDTIME signal, you will need to import multiple text files; one for each DERIVEDTIME.| | ||
- | | |filename | + | An example header: |
- | | |time |analogtime | + | |
- | | |frame_numbers|frame_numbers|frame_numbers| | + | | |FILENAME |
- | | |original | + | | |TIME |ANALOGTIME |
- | |item|x |x |x | | + | | |FRAME_NUMBERS|FRAME_NUMBERS|FRAME_NUMBERS| |
+ | | |ORIGINAL | ||
+ | |ITEM|X |X |X | | ||
|1 | |1 | ||
- | \\ | ||
- | |||
- | |||
- | ===== time ===== | ||
- | |||
- | thss is a column containing the time at point rate | ||
- | |||
- | ===== analogtime ===== | ||
- | |||
- | this is a column containing the time at analog rate | ||
- | |||
- | ===== derivedtime ===== | ||
- | |||
- | this is a column containing the time at derived rate. | ||
- | |||
- | derived signals can have any sampling rate that is an integer multiple of the point rate. each ascii file permits only one derivedtime signal. | ||
- | |||
- | it there is more than on derivedtime signal, you will need to import multiple text files; one for each derivedtime. | ||
- | |||
- | ====== signal units ====== | ||
- | all signals are stored in mks units. | + | ===== Component String ===== |
- | ====== exporting data ====== | + | Deciding what character to use for representing a signal component has resulted in some flip flopping over the years. The final straw in our decision was the introduction of a 4x4 [[visual3d: |
- | this data file can be exported from visual3d | + | On the other hand, using numerical values has other controversial issues. For example, Matlab won't read a number as a string and apparently there are .m files that treat the component as a string. |
- | ====== importing data ====== | + | Here are the current decisions. |
- | this data file can be imported to visual3d | + | ^ Signal Type ^ Returned Component Strings ^ |
+ | | [[visual3d: | ||
+ | | [[visual3d: | ||
+ | | [[visual3d: | ||
+ | | [[visual3d: | ||
+ | | [[visual3d: | ||
+ | | [[visual3d: | ||
+ | | [[visual3d: | ||
+ | | [[visual3d: | ||
+ | | [[visual3d: | ||
+ | | [[visual3d: | ||
+ | | [[visual3d: | ||
+ | | [[visual3d: | ||
- | ===== first row ===== | + | The exception is that Visual3D allows a character to be added to a number. For example C0 instead of 0 |
+ | ===== Signal Units ===== | ||
- | one of the constraints on the file import is that the first line of the signal column must match a c3d file in the visual3d workspace. this allows visual3d to recognize which file to add the data to. | + | All signals are stored |
- | ====== number of analog | + | ===== Importing |
- | for analog and target (point) | + | This data file can be imported to Visual3D using the pipeline command [[Visual3D:Documentation: |
- | if there are fewer frames of data in the ascii file than there are in the c3d file, the signal is padded with frames of data containing data_not_found. | + | This data file can be exported from Visual3D using the pipeline command [[Visual3D: |
- | **note:** for derived signals all rows are added to the data file within visual3d without truncation or padding. this is partly because derived signals cannot be exported to the c3d file at this point, so there is no conflict with the c3d file format. | + | ===== Number of Analog and Point Frames ===== |
+ | The following rules apply for ANALOG and TARGET (POINT) data: | ||
+ | * if there are more frames of data in the ASCII file than there are in the C3D file, the ASCII signal is truncated. | ||
+ | * if there are fewer frames of data in the ASCII file than there are in the C3D file, the signal is padded with frames of data containing DATA_NOT_FOUND. | ||
+ | **Note:** For DERIVED signals all rows are added to the data file within Visual3D without truncation or padding. This is partly because DERIVED signals cannot be exported to the C3D file at this point, so there is no conflict with the C3D file format. | ||
visual3d/documentation/definitions/file_formats/visual3d_ascii_format.1718801253.txt.gz · Last modified: 2024/06/19 12:47 by sgranger