User Tools

Site Tools


visual3d:documentation:pipeline:file_commands:import_data_from_ascii_file

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
visual3d:documentation:pipeline:file_commands:import_data_from_ascii_file [2024/06/19 12:50] sgrangervisual3d:documentation:pipeline:file_commands:import_data_from_ascii_file [2024/07/17 15:45] (current) – created sgranger
Line 1: Line 1:
-the command below will import signals from an ascii file formatted using the [[visual3d:documentation:definitions:file_formats:visual3d_ascii_format|visual3d_ascii_format]].+====== Import Data From ASCII File ====== 
 + 
 +The command below will Import signals from an ASCII file formatted using the [[Visual3D:Documentation:Definitions:File_Formats:Visual3D_ASCII_Format|Visual3D_ASCII_Format]].
  
 <code> <code>
-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 
 ; ;
 </code> </code>
  
-===== filename =====+==== Filename ====
  
-it is important to note that if you want the data imported to an existing file in the workspace, the first row must contain the entire file name (including path) or visual3d won't know which c3d file to add to.+It is important to note that if you want the data imported to an existing file in the workspace, the first row must contain the entire file name (including path) or Visual3D won't know which c3d file to add to.
  
-===== command =====+==== Command ====
  
-an example, the following commands will import events created in another program and convert them from time to frames via an expression command. they will be placed in the event_label folder.+An example, the following commands will import events created in another program and convert them from time to frames via an expression command. They will be placed in the Event_Label folder.
  
 <code> <code>
 !============================================================================ !============================================================================
-this script will import events in frames from ascii into the metric folder +This script will import Events in frames from ASCII into the METRIC Folder 
-events are labeled lhs1lhs2lhs3rhs1rhs2 +Events are labeled LHS1LHS2LHS3RHS1RHS2 
-the ascii filename must be the same as the v3d active filename  +The ASCII Filename must be the same as the V3D ACTIVE filename  
-the events in the metric folder will be converted into frames and placed in +The events in the METRIC folder will be converted into frames and placed in 
-! the event_label folder+! the EVENT_LABEL folder
 !============================================================================= !=============================================================================
  
-select active file +Select active file 
-select_active_file  +Select_Active_File  
-/file_name=*mb007.smt +/FILE_NAME=*mb007.smt 
-! /query+! /QUERY
 ; ;
  
-import_data_from_ascii_file +Import_Data_From_Ascii_File 
-/file_name=*mb007.txt+/FILE_NAME=*mb007.txt
 ; ;
  
-loop to convert events from time to frames for 4 hs reps +Loop to convert events from time to frames for 4 HS reps 
-for_each +For_Each 
-/iteration_parameter_name=index +/ITERATION_PARAMETER_NAME=INDEX 
-/items=lhs1+lhs2+lhs3+rhs1+rhs2+/ITEMS=LHS1+LHS2+LHS3+RHS1+RHS2
 ; ;
  
-expression to convert events wrt time +Expression to convert events wrt time 
-evaluate_expression  +Evaluate_Expression  
-/expression=metric::event_import&:&:&::index&[1]&/parameters::point::rate  +/EXPRESSION=METRIC::EVENT_IMPORT&:&:&::INDEX&[1]&/PARAMETERS::POINT::RATE  
-/result_name=::index +/RESULT_NAME=::INDEX 
-/result_type=event_label +/RESULT_TYPE=EVENT_LABEL 
-/result_folder=original+/RESULT_FOLDER=ORIGINAL
 ; ;
  
-end_for_each +End_For_Each 
-/iteration_parameter_name=index+/ITERATION_PARAMETER_NAME=INDEX
 ; ;
  
-delete event_import folder to clean up +Delete EVENT_IMPORT Folder to clean up 
-delete_folder +Delete_Folder 
-/signal_type=metric +/SIGNAL_TYPE=METRIC 
-/folder=event_import+/FOLDER=EVENT_IMPORT
 ; ;
 </code> </code>
Line 61: Line 63:
 \\ \\
 \\ \\
-[[visual3d:documentation:pipeline:general_information:pipeline_commands_reference|back to pipeline commands reference]]+[[Visual3D:Documentation:Pipeline:General_Information:Pipeline_Commands_Reference|Back to Pipeline Commands Reference]]
  
  
  
visual3d/documentation/pipeline/file_commands/import_data_from_ascii_file.1718801429.txt.gz · Last modified: 2024/06/19 12:50 by sgranger