Origin Version (Select Help-->About Origin): 7.5 SR5 Operating System: XP German
Hi
when I want to import lenghty ascii files into a worksheet with the import assistant I have the option to skip every nth line in order to reduce the amount of data e.g. if the source file is very long (4000 rows or so im my case).
Is it possible to set this option with a Labtalk command? I did not find a hint in the help files!
The Import Wizard is controlled by Origin C and I don't believe there is a corresponding ASCII Import property. If you save an import filter from the IW you can change skip value in the filter using an Origin C function like the one below. The new skip value will then be used the next time you use the filter. (strFilter is the name of the filter file without the OIF extension and I've assumed that you saved the file to your User Files path.)
thanks for your help. I decided to go an other way because I need to use an automatic routine, i.e. a Labtalk script. I just import the whole stuff and then work with the draft mode (Entwurfsmode) of the graphic display in order to reduce the amount of displayed datapoints. That does the job for the moment. The ORIGIN people should, however, think of including a skip command into the ascii import features of LabTalk. That would be useful.