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
 Import data in Origin
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

aaly

Germany
6 Posts

Posted - 06/03/2019 :  10:30:26 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin):
Operating System:

Hello!

I want to make an import filter to import different set of data.
I tried import wizard in the beggining, but it does not fulfill the demand.
I also tried programming in Origin C, but i am not so good at it and no success there too.
Finally I made a filter in Python which was working for some data, but as I need my data in Origin,is there anyway I can use my Python filter in Origin?

And what is the best way to make an import filter in Origin?
Any help will be really appreciated.

best regards,
Ali

ahmad

Echo_Chu

China
Posts

Posted - 06/04/2019 :  05:31:50 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi, Ali

You can run Python in Origin. Please look at the help document below to see whether it works for you.
https://www.originlab.com/doc/python


However, if using Import Wizard, for different set of data, I think you should use different import filter.

Could you let me know how you fail to use Import Wizard to do the job so that we can see what is the best way for you.

Echo
Originlab Technical Support
Go to Top of Page

aaly

Germany
6 Posts

Posted - 06/07/2019 :  06:57:42 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks a lot for your reply!

I have the data from the same machine but with different number of header lines. The import wizard does not auto determine where the header ends. For example, in my case the header should end at the line 'Z-Curve'. And the question is, how do I make it stop there ? Do I have to write a program for that ? If yes, where should I write this program ?
And thanks for sharing with me the Python link. But I want to make an import filter in Python and somehow run it in orgin instead of Importwizard. Is it possible ? If yes, how will I be able to connect Python with Origin.
I really appreciate your help.

regards,
Ali
quote:
Originally posted by Echo_Chu

Hi, Ali

You can run Python in Origin. Please look at the help document below to see whether it works for you.
https://www.originlab.com/doc/python


However, if using Import Wizard, for different set of data, I think you should use different import filter.

Could you let me know how you fail to use Import Wizard to do the job so that we can see what is the best way for you.

Echo
Originlab Technical Support



ahmad

Edited by - aaly on 06/07/2019 06:58:16 AM
Go to Top of Page

Echo_Chu

China
Posts

Posted - 06/11/2019 :  05:14:31 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply

Hi, Ali

Sorry for reply late

Usually if you write a C file and import data with User Defined method it should work for your case. But I am a little surprised that Import Wizard can not automatically detect the headers. Could you send one or two files to us so that we can further identify? You can send the file to tech@originlab.com.

To run Python in Origin and import data in Origin, you can use SetData function. Please look at the page below for further reference.

https://www.originlab.com/doc/python/PyOrigin/Classes/Column-SetData
https://www.originlab.com/doc/python/PyOrigin/Classes/Worksheet-SetData

Echo
OriginLab Technical Support
Go to Top of Page

aaly

Germany
6 Posts

Posted - 06/11/2019 :  05:53:24 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks for the reply.

I have sent you the file. Please check it, and let me know!



ahmad
Go to Top of Page

Echo_Chu

China
Posts

Posted - 06/11/2019 :  10:56:15 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi, Ali

I got it. I will follow up with you from the email.

Thanks, Echo
OriginLab Technical Support
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