Changes to Import Data With a Pre-defined Filter in Script

From OriginLab Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 09:11, 3 September 2009 (edit)
Echo (Talk | contribs)

← Previous diff
Current revision (05:33, 19 November 2012) (edit) (undo)
Kathy (Talk | contribs)
(Summary)
 
(5 intermediate revisions not shown.)
Line 2: Line 2:
==Summary== ==Summary==
-Top import data with a pre-defined import filter, In version 7. you need to load ImportWiz workspace first and then load a saved Origin C file which call import funtions to use the specified filter.In Origin 8, there are two ways+In version 7.5, to import data from script using a pre-defined Import Wizard Filter (.OIF), one had to first load the ImportWiz workspace to ensure all necessary OC files are loaded and compiled.
-* Use impFile X-Function in script without compiling+In Origin 8, it is no longer necessary to load the ImportWiz workspace. Please see [http://ocwiki.originlab.com/index.php?title=OriginC:Importing_With_Filter this Orign C wiki page] page for details on how to call your own OC function to perform the import from script using a pre-defined filter.
-*:Please see the detail example in [http://wiki.originlab.com/~originla/wiki/index.php?title=LabTalk:Data_Import#impFile_X-Function_with_Sample_Filter Labtalk Guide wiki]+
-*Call a saved Origin C file +Also, in Origin 8 one could simply use the [http://wiki.originlab.com/~originla/wiki2/index.php?title=X-Function:ImpFile '''impFile'''] X-function from script to import a file using a pre-defined filter. In this case there is no need to write any OC code. Please see [http://wiki.originlab.com/~originla/wiki/index.php?title=LabTalk:Data_Import#impFile_X-Function_with_Sample_Filter this Labtalk Guide wiki page] for details.
-*:You can save needed code in a Origin C file and then call it in script. Please see detail examples in [http://ocwiki.originlab.com/index.php?title=OriginC:Importing_With_Filter Orign C wiki]+

Current revision


[edit] Summary

In version 7.5, to import data from script using a pre-defined Import Wizard Filter (.OIF), one had to first load the ImportWiz workspace to ensure all necessary OC files are loaded and compiled.

In Origin 8, it is no longer necessary to load the ImportWiz workspace. Please see this Orign C wiki page page for details on how to call your own OC function to perform the import from script using a pre-defined filter.

Also, in Origin 8 one could simply use the impFile X-function from script to import a file using a pre-defined filter. In this case there is no need to write any OC code. Please see this Labtalk Guide wiki page for details.