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/06/19 12:47] – sgranger | visual3d:documentation:definitions:file_formats:ascii_format [2025/05/20 20:53] (current) – WORK IN PROGRESS. 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: | + | ====== ASCII Format ====== |
- | data file stored | + | Visual3D reads and writes the [[visual3d: |
- | there are a wide variety of ascii formatted | + | 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 |
- | 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@c-motion.com 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 ===== |
- | ascii files that can be imported. | + | There a number of ASCII file formats |
- | users that create their own custom file formats may be able to adapt their own file format fairly simply. if a user has an ascii file format that visual3d does not currently import, please contact support@c-motion.com and we will either create a file importer for you, or provide you with an sdk to create your own visual3d plugin. | + | ==== P2D_Format ==== |
- | a universal ascii file converter may be downloaded from the [[https://www.c-motion.com/ | + | The [[visual3d: |
- | ==== p2d_format | + | ==== Visual3D_ASCII_Format |
- | the p2d file format | + | The [[visual3d: |
+ | * This data file can be exported from Visual3D using the pipeline command [[Visual3D:Documentation: | ||
+ | * This data file can be imported to Visual3D using the pipeline command [[Visual3D: | ||
+ | * Report data can be exported from the report tab [[# | ||
- | ==== visual3d_ascii_format | + | ==== FSV_Format |
- | visual3d ascii file format for importing | + | The **Import_Fsv_Files** Visual3D plugin is a fairly general ASCII file format |
- | visual3d exports data into several file formats. the simplest and default file format for data export to ascii files is the following: | + | ==== JSON_Format ==== |
- | this data file can be exported | + | Signal |
- | this data file can be imported to visual3d using the pipeline command [[visual3d: | + | ===== Opening a text 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. |
- | ==== fsv_format ==== | + | In order for Visual3D to interpret this standalone file correctly, it is important that a signal be included specifying the time. |
- | the **import_fsv_files** visual3d plugin is a fairly general ascii file format translater 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 currently used by qualisys and innovision. | + | |- |C:\ExampleData\ExampleWalk.c3d|C:\ExampleData\ExampleWalk.c3d|Filename |
- | + | |- |ANALOGTIME | |
- | ==== json_format ==== | + | |- |FRAME_NUMBERS |
- | + | |- |ORIGINAL | |
- | signal data can be exported to json format (javascript object notation) using the [[index.php? | + | |ITEM|0 |X |Component. (ANALOG |
- | + | ||
- | ==== kinemetrix ==== | + | |
- | + | ||
- | the import_kinemetrix_files visual3d plugin is an ascii file format translator to c3d. these files are produced by kinemetrics. this is a preliminary importer because we had only one example file to work with. ; | + | |
- | + | ||
- | ===== opening a text 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. | + | |
- | + | ||
- | |- |c:\exampledata\examplewalk.c3d|c:\exampledata\examplewalk.c3d|filename | + | |
- | |- |analogtime | + | |
- | |- |frame_numbers | + | |
- | |- |original | + | |
- | |item|0 |x |component. (analog | + | |
|1 | |1 | ||
|2 | |2 | ||
Line 58: | Line 45: | ||
|5 | |5 | ||
- | ===== importing | + | ==== Importing |
- | visual3d | + | Visual3D |
- | [[visual3d:documentation:pipeline:file_commands:import_data_from_ascii_file|import_data_from_ascii_file]] | + | [[Visual3D:Documentation:Pipeline:File_Commands:Import_Data_From_ASCII_File|Import_Data_From_ASCII_File]] |
- | **/file_name=**c:\exampledata\test command input signals\testinputdata.txt\\ | + | **/FILE_NAME=**c:\exampleData\Test Command Input Signals\testInputData.txt\\ |
**;** | **;** | ||
- | visual3d | + | 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 | + | 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 |
- | ==== import ascii signals adds the signals to the derived | + | === Import ASCII signals adds the signals to the DERIVED |
- | i would like these signals added to the analog | + | I would like these signals added to the ANALOG |
- | ===== export signals | + | ==== Export Signals |
- | datatreeexportascii.gif\\ | + | {{: |
- | select | + | Select |
- | selecting | + | Selecting |
- | === pipeline command | + | == Pipeline Command |
- | the visual3d | + | The Visual3D |
- | for example: | + | For Example: |
- | |**[[visual3d:documentation:pipeline:file_commands:export_data_to_ascii_file|export_data_to_ascii_file]]**| | | + | |**[[Visual3D:Documentation:Pipeline:File_Commands:Export_Data_To_ASCII_File|Export_Data_To_ASCII_File]]**| | |
- | |/signal_types=analog | + | |/SIGNAL_TYPES=ANALOG |
- | |! /signal_folder=original | + | |! /SIGNAL_FOLDER=ORIGINAL |
- | |/signal_names=emg8 |signal names | | + | |/SIGNAL_NAMES=EMG8 |Signal Names | |
- | |/file_name=c:\demo files\example1\test.txt | + | |/FILE_NAME=C:\demo files\Example1\test.txt |
- | |! /signal_components= |signal component. this is a legacy parameter, if using version 5 or later, please use component_sequence. | | + | |! /SIGNAL_COMPONENTS= |Signal Component. This is a legacy parameter, if using version 5 or later, please use COMPONENT_SEQUENCE. | |
- | |/component_sequence=x |signal component | + | |/COMPONENT_SEQUENCE=X |Signal Component |
- | |! /signal_precision= |indicates | + | |! /SIGNAL_PRECISION= |Indicates |
- | |! /start_label= |event label indicating the first frame of data to be exported. | + | |! /START_LABEL= |Event Label indicating the first frame of data to be exported. |
- | |! /end_label= |event label indicating the last frame of data to be exported. | + | |! /END_LABEL= |Event Label indicating the last frame of data to be exported. |
- | |! /event_sequence= |event sequence the signals should be exported between (ex. lhs+lhs,rhs+rhs) | | + | |! /EVENT_SEQUENCE= |Event sequence the signals should be exported between (ex. LHS+LHS,RHS+RHS) | |
- | |! /exclude_events= |if an event sequence contains one of the events listed in this parameter (ex. bad,bad) the event sequence will not be exported. | + | |! /EXCLUDE_EVENTS= |If an event sequence contains one of the events listed in this parameter (ex. BAD,BAD) the event sequence will not be exported. |
- | |! /use_point_rate=false |analog | + | |! /USE_POINT_RATE=FALSE |ANALOG |
- | |! /normalize_data=false |option | + | |! /NORMALIZE_DATA=FALSE |Option |
- | |! /normalize_points=101 |number | + | |! /NORMALIZE_POINTS=101 |Number |
- | |! /export_mean_and_std_dev=false |option | + | |! /EXPORT_MEAN_AND_STD_DEV=FALSE |Option |
- | |! /use_p2d_format=false |see the description | + | |! /USE_P2D_FORMAT=FALSE |See the Description |
- | |! /use_xml_format=false | + | |! /USE_XML_FORMAT=FALSE |
- | |! /use_json_format=false | | | + | |! /USE_JSON_FORMAT=FALSE | | |
- | |! /use_short_filename=false |the file path for each c3d file will not be exported when set to true | | + | |! /USE_SHORT_FILENAME=FALSE |The file path for each C3D file will not be exported when set to TRUE | |
- | |! /export_empty_signals=false | + | |! /EXPORT_EMPTY_SIGNALS=FALSE |
- | |! /export_without_header=false |the headers (filename, signal type, signal folder, signal name, signal component) will not be exported when set to true. | | + | |! /EXPORT_WITHOUT_HEADER=FALSE |The headers (FILENAME, SIGNAL TYPE, SIGNAL FOLDER, SIGNAL NAME, SIGNAL COMPONENT) will not be exported when set to TRUE. | |
|**; | |**; | ||
- | the following dialog appears when the export_data_to_ascii_file | + | The following dialog appears when the EXPORT_DATA_TO_ASCII_FILE |
- | exportascii.png | + | {{:exportascii.png}} |
\\ | \\ | ||
- | ===== export data from report dialog ===== | + | ==== Export Data From Report Dialog |
- | select | + | Select |
- | the picture below shows a highlighted graph and selecting a [[visual3d:documentation:visual_3d_formating:json_formats|json output format]]. | + | The picture below shows a highlighted graph and selecting a [[Visual3D:Documentation:Visual_3D_Formating:JSON_Formats|JSON output format]]. |
- | exportreport.png | + | {{:exportreport.png}} |
- | ===== export | + | ==== Export |
- | it is possible to export 6 degree of freedom data to an ascii format as either an origin | + | It is possible to export 6 degree of freedom data to an ASCII format as either an ORIGIN |
- | exporting | + | Exporting |
\\ | \\ | ||
- | [[visual3d:documentation:pipeline:file_commands:export_data_to_ascii_file|export_data_to_ascii_file]] | + | [[Visual3D:Documentation:Pipeline:File_Commands:Export_Data_To_ASCII_File|Export_Data_To_ASCII_File]] |
- | ! /file_name= | + | ! /FILE_NAME= |
- | /signal_types=frame_numbers+link_model_based+link_model_based | + | /SIGNAL_TYPES=FRAME_NUMBERS+LINK_MODEL_BASED+LINK_MODEL_BASED |
- | /signal_names=time+origin+quaternion | + | /SIGNAL_NAMES=TIME+ORIGIN+QUATERNION |
- | /signal_folder=original+rft+rft | + | /SIGNAL_FOLDER=ORIGINAL+RFT+RFT |
- | ! /start_label= | + | ! /START_LABEL= |
- | ! /end_label= | + | ! /END_LABEL= |
- | ! /use_point_rate=false | + | ! /USE_POINT_RATE=FALSE |
- | ! /normalize_data=false | + | ! /NORMALIZE_DATA=FALSE |
- | ! /normalize_points=101 | + | ! /NORMALIZE_POINTS=101 |
- | ! /export_mean_and_std_dev=false | + | ! /EXPORT_MEAN_AND_STD_DEV=FALSE |
- | ! /use_p2d_format=false | + | ! /USE_P2D_FORMAT=FALSE |
; | ; | ||
\\ | \\ | ||
- | exporting | + | Exporting |
- | [[visual3d:documentation:kinematics_and_kinetics:six_degrees_of_freedom#6_dof_tracking|[ xyz local ] = [r2] [xyz global]]] | + | [[Visual3D:Documentation:Kinematics_and_Kinetics:Six_Degrees_of_Freedom#6_DOF_Tracking|[ XYZ local ] = [R2] [XYZ global]]] |
\\ | \\ | ||
- | [[visual3d:documentation:pipeline:file_commands:export_data_to_ascii_file|export_data_to_ascii_file]] | + | [[Visual3D:Documentation:Pipeline:File_Commands:Export_Data_To_ASCII_File|Export_Data_To_ASCII_File]] |
- | ! /file_name= | + | ! /FILE_NAME= |
- | /signal_types=frame_numbers+link_model_based+link_model_based | + | /SIGNAL_TYPES=FRAME_NUMBERS+LINK_MODEL_BASED+LINK_MODEL_BASED |
- | /signal_names=time+origin+rotation | + | /SIGNAL_NAMES=TIME+ORIGIN+ROTATION |
- | /signal_folder=original+rft+rft | + | /SIGNAL_FOLDER=ORIGINAL+RFT+RFT |
- | ! /start_label= | + | ! /START_LABEL= |
- | ! /end_label= | + | ! /END_LABEL= |
- | ! /use_point_rate=false | + | ! /USE_POINT_RATE=FALSE |
- | ! /normalize_data=false | + | ! /NORMALIZE_DATA=FALSE |
- | ! /normalize_points=101 | + | ! /NORMALIZE_POINTS=101 |
- | ! /export_mean_and_std_dev=false | + | ! /EXPORT_MEAN_AND_STD_DEV=FALSE |
- | ! /use_p2d_format=false | + | ! /USE_P2D_FORMAT=FALSE |
; | ; | ||
- | ==== 6 dof ascii format ==== | + | === 6 DOF ASCII FORMAT |
- | this example file contains the origin | + | This example file contains the ORIGIN |
- | | |c:\data\mvc002.c3d|c: | + | | |c:\Data\mvc002.c3d|c: |
- | | |origin | + | | |ORIGIN |
- | | |kinetic_kinematic | + | | |KINETIC_KINEMATIC |
- | | |lsk |lsk |lsk |lsk |lsk |lsk |lsk |lsk |lsk |lsk |lsk |lsk | | + | | |LSK |LSK |LSK |LSK |LSK |LSK |LSK |LSK |LSK |LSK |LSK |LSK | |
- | |item|x |y |z |0 | + | |ITEM|X |Y |Z |0 |
|1 | |1 | ||
|2 | |2 | ||
Line 186: | Line 173: | ||
|5 | |5 | ||
- | or in the following format | + | Or in the following format |
> | > | ||
- | | |c:\data\mvc002.c3d|c: | + | | |c:\Data\mvc002.c3d|c: |
- | | |origin | + | | |ORIGIN |
- | | |link_model_based | + | | |LINK_MODEL_BASED |
- | | |lsk |lsk |lsk |lsk |lsk |lsk |lsk |lsk |lsk |lsk |lsk |lsk | | + | | |LSK |LSK |LSK |LSK |LSK |LSK |LSK |LSK |LSK |LSK |LSK |LSK | |
- | |item|x |y |z |0 | + | |ITEM|X |Y |Z |0 |
|1 | |1 | ||
|2 | |2 | ||
Line 201: | Line 188: | ||
|5 | |5 | ||
- | ===== other ascii formats ===== | + | ==== Other ASCII Formats |
- | the following | + | The following |
\\ | \\ | ||
- | **import_frappier_analog_signals**\\ | + | **Import_Frappier_Analog_Signals**\\ |
- | **import_ntnu_analogsignals**\\ | + | **Import_NTNU_AnalogSignals**\\ |
- | **import_cresswell_analogsignals**\\ | + | **Import_Cresswell_AnalogSignals**\\ |
- | **import_natick_analogsignals** | + | **Import_Natick_AnalogSignals** |
\\ | \\ | ||
- | this command was written for frappier acceleration | + | This command was written for Frappier Acceleration |
- | the name of the ascii file containing the analog | + | The name of the ASCII file containing the ANALOG |
- | the basic format of the file is: | + | The basic format of the file is: |
\\ | \\ | ||
- | |file_type: |analog | + | |File_Type: |Analog |
- | |board_type:|pci-mio-64e| | | | | | | + | |Board_Type:|PCI-MIO-64E| | | | | | |
- | |trial_name:|test |#channels:|6 | + | |Trial_Name:|Test |#Channels:|6 |
- | |name |fx1 |fy1 |fz1 |mx1 |my1 |mz1 | | + | |Name |Fx1 |Fy1 |Fz1 |Mx1 |My1 |Mz1 | |
- | |rate |1000 | + | |Rate |1000 |
|0.000 | |0.000 | ||
|0.001 | |0.001 | ||
Line 231: | Line 218: | ||
[[ | [[ | ||
- | ===== example ===== | + | ==== 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. | ||
- | 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. | ||
- | }}}}}} |
visual3d/documentation/definitions/file_formats/ascii_format.1718801248.txt.gz · Last modified: 2024/06/19 12:47 by sgranger