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/03 17:27] – removed 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: | ||
| + | ====== ASCII Format ====== | ||
| + | |||
| + | Visual3D reads and writes the [[visual3d: | ||
| + | |||
| + | Data file stored in formats other than the C3D format must be translated, either by the user or internally by Visual3D, into the C3D Format. One popular alternative format is ASCII-formatted text files. There are a wide variety of these ASCII-formatted files and Visual3D will load many of them; translating them into C3D format in the process. It is quite a challenge to read all varieties of ASCII formatted files, but we do our best to accommodate data that our users collect. If Visual3D does not import your formatted files, contact support@has-motion.ca and request that we implement your format. We recognize that the first task to analyze your data is to be able to load the files, so we try hard to make sure that users have their data. | ||
| + | |||
| + | ===== Supported Formats ===== | ||
| + | |||
| + | There a number of ASCII file formats that are commonly used within the biomechanics community that Visual3D can import. | ||
| + | |||
| + | ==== Visual3D ASCII Format ==== | ||
| + | |||
| + | The [[visual3d: | ||
| + | |||
| + | This data file can be exported from Visual3D using [[Visual3D: | ||
| + | |||
| + | ==== P2D Format ==== | ||
| + | |||
| + | The [[visual3d: | ||
| + | |||
| + | ==== JSON Format ==== | ||
| + | |||
| + | Signal data can be exported to [[visual3d: | ||
| + | |||
| + | ==== FSV Format ==== | ||
| + | |||
| + | 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 from Innovision Systems and are used by Qualisys and Innovision. | ||
| + | |||
| + | ===== Opening an ASCII File ===== | ||
| + | |||
| + | 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. | ||
| + | |||
| + | 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. | ||
| + | |||
| + | |- | ||
| + | |- | ||
| + | |- | ||
| + | |- | ||
| + | |ITEM|0 | ||
| + | |1 | ||
| + | |2 | ||
| + | |3 | ||
| + | |4 | ||
| + | |5 | ||
| + | |||
| + | ==== Working with DERIVED Data ==== | ||
| + | |||
| + | 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. | ||
| + | |||
| + | ===== Exporting Signals to an ASCII File ===== | ||
| + | |||
| + | There are several methods for exporting data from Visual3D' | ||
| + | |||
| + | ==== Via the Data Tree ==== | ||
| + | |||
| + | {{: | ||
| + | |||
| + | - Select one of the signals in the data tree using a click of the Left Mouse Button. | ||
| + | - A dialog appears that contains two tabs. One tab is a graph of the signal, the other tab is a list of the data values. | ||
| + | - Selecting the Export ASCII button causes a browse window to appear to save the data to a Visual3D ASCII formatted data file. | ||
| + | |||
| + | ==== Via Pipeline Command ==== | ||
| + | |||
| + | The Visual3D pipeline command [[Visual3D: | ||
| + | - Visual3D ASCII; and | ||
| + | - P2D. | ||
| + | |||
| + | The following dialog appears when the Export_Data_To_ASCII_File command is edited within the [[visual3d: | ||
| + | |||
| + | {{: | ||
| + | |||
| + | |||
| + | ==== From a Report Dialog ==== | ||
| + | |||
| + | Data can be exported directly from a [[visual3d: | ||
| + | - 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 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). | ||
| + | |||
| + | The picture below shows a highlighted graph and selecting a [[Visual3D: | ||
| + | |||
| + | {{: | ||
| + | |||
| + | ===== Exporting 6 Degree of Freedom Data ===== | ||
| + | |||
| + | It is possible to export [[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 | ||
| + | |||
| + | ==== Example: Export as ORIGIN and QUATERNION ==== | ||
| + | |||
| + | The command below will export the position and orientation of segment RFT as an ORIGIN and Quaternion. | ||
| + | |||
| + | < | ||
| + | Export_Data_To_ASCII_File | ||
| + | ! /FILE_NAME= | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | ! / | ||
| + | ! /END_LABEL= | ||
| + | ! / | ||
| + | ! / | ||
| + | ! / | ||
| + | ! / | ||
| + | ! / | ||
| + | ; | ||
| + | </ | ||
| + | |||
| + | ==== Example: Export as ORIGIN and ROTATION ==== | ||
| + | |||
| + | The command below will export the position and orientation of segment RFT as an ORIGIN and ROTATION matrix. | ||
| + | |||
| + | < | ||
| + | Export_Data_To_ASCII_File | ||
| + | ! /FILE_NAME= | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | ! / | ||
| + | ! /END_LABEL= | ||
| + | ! / | ||
| + | ! / | ||
| + | ! / | ||
| + | ! / | ||
| + | ! / | ||
| + | ; | ||
| + | </ | ||
| + | |||
| + | **NOTE**: Visual3D exports the following rotation matrix: | ||
| + | |||
| + | < | ||
| + | [ XYZ local ] = [R2] [XYZ global] | ||
| + | </ | ||
visual3d/documentation/definitions/file_formats/ascii_format.1720027628.txt.gz · Last modified: by sgranger
