The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 personalized import filter
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Dayor

Germany
1 Posts

Posted - 10/17/2016 :  07:42:16 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi,
in trying to construct my own import filter i've ran into a problem I can't seem to solve. the header of all my files (which is given by the measurement software and cannot be changed) is as followed:

"Comment y-axis"
"Long name x-axis unit x-axis" "Long name y-axis"

As I will later only import the x-axis of the first dataset and afterwards only the y-axis, it is import that the comment is written in each y-axis.
Is it possible to define longname comment etc by position alone and individually for x and y axis?
Can anyone please tell me how to fit this into an import filter?

Thanks.

Hideo Fujii

USA
1582 Posts

Posted - 10/17/2016 :  4:04:16 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Dayor,

> "Comment y-axis"
> "Long name x-axis unit x-axis" "Long name y-axis"
> As I will later only import the x-axis of the first dataset and afterwards only the y-axis,
> it is import that the comment is written in each y-axis.
> Is it possible to define longname comment etc by position alone and individually for x and y axis?

Though I cannot figure out exactly what you want to achieve from which kind of the source data
structure, I suspect and suggest the following:

The header of the first row for the Y Comment is at the first field, therefore it would be placed
as a comment of the first column against your intention to place in the second column.
To achieve what you want, you can place the following LabTalk command in the
"Script after Each File Import" box at the advanced filter options page:
col(2)[C]$=col(1)[C]$;
to copy the first column's Comment to the second column. After importing all files, you may need
to delete the X column for each Y dataset.

Hope my suggestion helps.

--Hideo Fujii
OriginLab
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000