visual3d:documentation:definitions:file_formats: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:ascii_format [2024/07/16 19:25] – created sgranger | visual3d:documentation:definitions:file_formats:ascii_format [2026/03/09 07:41] (current) – Reorganized page and removed references to hidden commands. wikisysop | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ====== |
| - | Visual3D reads and writes the C3D data file format developed by Andrew Dainis and Doug McGuire in 1987. The C3D formatted file is a compact binary data file used as a convenient and efficient means for storing 3D coordinate and analog data, with all associated parameters, for a single measurement trial. The [[Visual3D: | + | Visual3D reads and writes the [[visual3d: |
| - | Data file stored in formats other than the C3D format must be translated into the C3D Format. | + | Data file stored in formats other than the C3D format must be translated, either by the user or internally by Visual3D, |
| - | There are a wide variety of ASCII formatted Data files. Visual3D will load many of these files into Visual3D; translating them into C3D format in the process. | + | ===== Supported Formats ===== |
| - | It is quite a challenge to read all varieties | + | There a number |
| - | ASCII files that can be imported. | + | ==== Visual3D |
| - | Users that create their own custom file formats may be able to adapt their own file format | + | The [[visual3d: |
| - | A universal ASCII file converter may be downloaded | + | This data file can be exported |
| - | === P2D_Format | + | ==== P2D Format ==== |
| - | The P2D file format was part of the origin MOVE3D software written by Tom Kepple in Dr. Steven Stanhope’s | + | The [[visual3d: |
| - | === Visual3D_ASCII_Format | + | ==== JSON Format ==== |
| - | Visual3D ASCII file format | + | Signal data can be exported to [[visual3d: |
| - | Visual3D exports data into several file formats. The simplest and default file format for data export to ASCII files is the following: | + | ==== FSV Format ==== |
| - | This data file can be exported | + | The **Import_Fsv_Files** Visual3D plugin is a fairly general ASCII file format translator to C3D, that may be suitable for a variety of ASCII files. The FSV/TSV file formats were originally developed by Manfred Berger |
| - | This data file can be imported to Visual3D using the pipeline command [[Visual3D: | + | ===== Opening an ASCII File ===== |
| - | Report data can be exported from the report tab [[# | + | A Visual3D ASCII file can be opened in the Visual3D workspace directly using the FILE OPEN menu option or the FILE_OPEN command. In order for Visual3D to interpret this standalone file correctly, it is important that a signal be included specifying the time. |
| - | === FSV_Format === | + | One of the constraints on the file import is that the first line of the signal column must match an open C3D file. This allows Visual3D to recognize which file to add the data to. For ANALOG and TARGET |
| - | + | ||
| - | The **Import_Fsv_Files** Visual3D plugin is a fairly general ASCII file format translater to c3d, that may be suitable for a variety | + | |
| - | + | ||
| - | === JSON_Format === | + | |
| - | + | ||
| - | Signal | + | |
| - | + | ||
| - | === Kinemetrix === | + | |
| - | + | ||
| - | The Import_Kinemetrix_Files Visual3D plugin | + | |
| - | + | ||
| - | ==== Opening a text file ==== | + | |
| - | + | ||
| - | A visual3D | + | |
| - | + | ||
| - | In order for Visual3D to interpret this standalone | + | |
| |- | |- | ||
| Line 60: | Line 44: | ||
| |5 | |5 | ||
| - | ==== Importing data from an ASCII file ==== | + | ==== Working with DERIVED Data ==== |
| - | Visual3D | + | For DERIVED signals all rows are added to the data file within |
| - | [[Visual3D: | + | ===== Exporting |
| - | **/ | + | |
| - | **;** | + | There are several methods for exporting |
| - | Visual3D allows the importing of data to a C3D file from an ASCII file. See the description of the default ASCII file format for Visual3D. | + | |
| - | One of the constraints on the file import is that the first line of the signal column must match an open C3D file. This allows Visual3D to recognize which file to add the data to. For ANALOG and TARGET (POINT) data the following rules apply: 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. | + | ==== Via the Data Tree ==== |
| - | === Import ASCII signals adds the signals to the DERIVED folder in the data tree === | + | {{: |
| - | I would like these signals | + | - Select one of the signals |
| + | - A dialog appears that contains | ||
| + | - Selecting | ||
| - | ==== Export Signals to an ASCII file Using Data Tree ==== | + | ==== Via Pipeline Command |
| - | {{DataTreeExportASCII.gif}}\\ | + | The Visual3D pipeline command [[Visual3D: |
| - | Select | + | - Visual3D ASCII; and |
| + | - P2D. | ||
| - | Selecting | + | The following dialog appears when the Export_Data_To_ASCII_File command is edited within |
| - | == Pipeline Command for Exporting Signals to an ASCII File == | + | {{: |
| - | The Visual3D pipeline command exports ASCII data to one of 2 formatted data files (Visual3D default and P2D). | ||
| - | For Example: | + | ==== From a Report Dialog ==== |
| - | |**[[Visual3D:Documentation:Pipeline:File_Commands: | + | Data can be exported directly from a [[visual3d:documentation:reports:reports_overview|Report graph]] to an ASCII-formatted text file. |
| - | |/ | + | - Select one of the graphs in the edit report dialog. A button will appear below the graph list box titled ”Export Selected”. |
| - | |! / | + | - Select this button to pop up a dialog for exporting |
| - | |/ | + | |
| - | |/ | + | - a P2D formatted file. |
| - | |! / | + | - The options exist to save the raw data (e.g. frame by frame) or to save time normalized |
| - | |/ | + | |
| - | |! / | + | |
| - | |! / | + | |
| - | |! / | + | |
| - | |! / | + | |
| - | |! / | + | |
| - | |! / | + | |
| - | |! / | + | |
| - | |! / | + | |
| - | |! / | + | |
| - | |! / | + | |
| - | |! / | + | |
| - | |! / | + | |
| - | |! / | + | |
| - | |! / | + | |
| - | |! / | + | |
| - | |**; | + | |
| - | The following dialog appears when the EXPORT_DATA_TO_ASCII_FILE command has been added to the pipeline | + | The picture below shows a highlighted graph and selecting a [[Visual3D: |
| - | {{exportascii.png}} | + | {{: |
| - | \\ | + | ===== Exporting 6 Degree of Freedom Data ===== |
| + | It is possible to export [[visual3d: | ||
| - | ==== Export Data From Report Dialog ==== | + | This example file contains the ORIGIN and ROTATION matrix for the [[Visual3D: |
| - | Select one of the graphs in the edit report dialog. A button will appear below the graph list box titled ”Export Selected”. Selecting this button will pop up a dialog for exporting the data from the graph to an ASCII file; either a Visual3D ASCII formatted file or a P2D formatted file. The options exist to save the raw data (e.g. frame by frame) or to save time normalized data (e.g. a specified number of frames) using the properties of the graph template (e.g. start frame and end frame). | + | | |c: |
| + | | |ORIGIN | ||
| + | | |KINETIC_KINEMATIC |KINETIC_KINEMATIC |KINETIC_KINEMATIC |KINETIC_KINEMATIC |KINETIC_KINEMATIC |KINETIC_KINEMATIC |KINETIC_KINEMATIC |KINETIC_KINEMATIC |KINETIC_KINEMATIC |KINETIC_KINEMATIC |KINETIC_KINEMATIC |KINETIC_KINEMATIC | | ||
| + | | |LSK | ||
| + | |ITEM|X | ||
| + | |1 | ||
| + | |2 | ||
| + | |3 | ||
| + | |4 | ||
| + | |5 | ||
| - | The picture below shows a highlighted graph and selecting a [[Visual3D: | + | Or in the following |
| - | {{exportreport.png}} | + | > |
| - | ==== Export 6 degree of freedom data ==== | + | | |c: |
| - | + | | |ORIGIN | |
| - | It is possible to export 6 degree of freedom data to an ASCII format as either an ORIGIN | + | | |LINK_MODEL_BASED |
| - | + | | |LSK | |
| - | Exporting the position and orientation of segment RFT as an ORIGIN and Quaternion | + | |ITEM|X |
| + | |1 | ||
| + | |2 | ||
| + | |3 | ||
| + | |4 | ||
| + | |5 | ||
| - | \\ | + | ==== Example: Export as ORIGIN and QUATERNION ==== |
| + | The command below will export the position and orientation of segment RFT as an ORIGIN and Quaternion. | ||
| - | [[Visual3D: | + | < |
| + | Export_Data_To_ASCII_File | ||
| ! /FILE_NAME= | ! /FILE_NAME= | ||
| / | / | ||
| Line 150: | Line 134: | ||
| ! / | ! / | ||
| ; | ; | ||
| + | </ | ||
| - | \\ | + | ==== Example: Export |
| - | Exporting the position and orientation of segment RFT as an ORIGIN and ROTATION | + | |
| - | [[Visual3D: | + | The command below will export the position and orientation of segment RFT as an ORIGIN and ROTATION matrix. |
| - | \\ | + | < |
| - | + | Export_Data_To_ASCII_File | |
| - | + | ||
| - | [[Visual3D: | + | |
| ! /FILE_NAME= | ! /FILE_NAME= | ||
| / | / | ||
| Line 172: | Line 154: | ||
| ! / | ! / | ||
| ; | ; | ||
| + | </ | ||
| - | === 6 DOF ASCII FORMAT === | + | **NOTE**: Visual3D |
| - | + | ||
| - | This example file contains the ORIGIN and ROTATION matrix for the [[Visual3D: | + | |
| - | + | ||
| - | | |c: | + | |
| - | | |ORIGIN | + | |
| - | | |KINETIC_KINEMATIC |KINETIC_KINEMATIC |KINETIC_KINEMATIC |KINETIC_KINEMATIC |KINETIC_KINEMATIC |KINETIC_KINEMATIC |KINETIC_KINEMATIC |KINETIC_KINEMATIC |KINETIC_KINEMATIC |KINETIC_KINEMATIC |KINETIC_KINEMATIC |KINETIC_KINEMATIC | | + | |
| - | | |LSK | + | |
| - | |ITEM|X | + | |
| - | |1 | + | |
| - | |2 | + | |
| - | |3 | + | |
| - | |4 | + | |
| - | |5 | + | |
| - | + | ||
| - | Or in the following format | + | |
| - | + | ||
| - | > | + | |
| - | + | ||
| - | | |c: | + | |
| - | | |ORIGIN | + | |
| - | | |LINK_MODEL_BASED | + | |
| - | | |LSK | + | |
| - | |ITEM|X | + | |
| - | |1 | + | |
| - | |2 | + | |
| - | |3 | + | |
| - | |4 | + | |
| - | |5 | + | |
| - | + | ||
| - | ==== Other ASCII Formats ==== | + | |
| - | + | ||
| - | The following ASCII commands read slightly different flavors of ASCII signals. The names are derived from the customers that have requested the importer. If C-Motion provided you with information on the command, you can make the call using the command name you were givin; even though you may not see the command listed in the pipeline. | + | |
| - | + | ||
| - | \\ | + | |
| - | **Import_Frappier_Analog_Signals**\\ | + | |
| - | **Import_NTNU_AnalogSignals**\\ | + | |
| - | **Import_Cresswell_AnalogSignals**\\ | + | |
| - | **Import_Natick_AnalogSignals** | + | |
| - | + | ||
| - | \\ | + | |
| - | This command was written for Frappier Acceleration products but has been modified to accomodate many different flavors of ASCII files from our customers. The command has several aliases as you can see from the list. As of Visual3D | + | |
| - | + | ||
| - | The name of the ASCII file containing the ANALOG signals is expected to have the same name as the C3D file; eg. trial1.c3d and trial1.anc | + | |
| - | + | ||
| - | The basic format of the file is: | + | |
| - | + | ||
| - | \\ | + | |
| - | + | ||
| - | + | ||
| - | |File_Type: |Analog | + | |
| - | |Board_Type: | + | |
| - | |Trial_Name: | + | |
| - | |Name | + | |
| - | |Rate | + | |
| - | |0.000 | + | |
| - | |0.001 | + | |
| - | + | ||
| - | [[ | + | |
| - | + | ||
| - | ==== Example ==== | + | |
| - | + | ||
| - | Specifying a ROOT FOLDER and a list of subject folders. Each subject folder contains a set of C3D files. For example, | + | |
| - | Subject1 | + | |
| - | Trial16.c3d | + | |
| - | Subject2 | + | |
| - | Trial16.c3d | + | |
| - | Subject3 | + | |
| - | Trial16.c3d | + | |
| - | And so on ... | + | |
| - | Open each C3D file and export a signal to a filename whose prefix is the same as the C3D file. | + | |
| + | < | ||
| + | [ XYZ local ] = [R2] [XYZ global] | ||
| + | </ | ||
visual3d/documentation/definitions/file_formats/ascii_format.1721157915.txt.gz · Last modified: by sgranger
