visual3d:documentation:pipeline:file_commands:import_data_from_ascii_file
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
visual3d:documentation:pipeline:file_commands:import_data_from_ascii_file [2024/06/19 12:50] – sgranger | visual3d: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 | + | ====== Import Data From ASCII File ====== |
+ | |||
+ | The command below will Import | ||
< | < | ||
- | 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 |
; | ; | ||
</ | </ | ||
- | ===== 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 | + | 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 |
- | ===== 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. | + | An example, the following commands will import events created in another program and convert them from time to frames via an expression command. |
< | < | ||
!============================================================================ | !============================================================================ | ||
- | ! this script will import | + | ! This script will import |
- | ! events | + | ! Events |
- | ! the ascii filename | + | ! The ASCII Filename |
- | ! the events in the metric | + | ! The events in the METRIC |
- | ! the event_label | + | ! the EVENT_LABEL |
!============================================================================= | !============================================================================= | ||
- | ! select | + | ! Select |
- | 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 | + | ! Expression |
- | evaluate_expression | + | Evaluate_Expression |
- | /expression=metric::event_import&:&:&:: | + | /EXPRESSION=METRIC::EVENT_IMPORT&:&:&:: |
- | /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 | + | ! Delete EVENT_IMPORT Folder |
- | delete_folder | + | Delete_Folder |
- | /signal_type=metric | + | /SIGNAL_TYPE=METRIC |
- | /folder=event_import | + | /FOLDER=EVENT_IMPORT |
; | ; | ||
</ | </ | ||
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