Skip certain block in LoadWave command

Hi,

 

I have a general text data with several data blocks, containing a few columns in each block. Is there method that I can skip an entire block in LoadWave command?

I cannot specify the index and the number of columns to skip because the number of columns in each block changes from one file to another.

test data (60 bytes)

I don't think you can tweak the number of columns on a per-block basis. Do you have fixed line ranges of the blocks to load? If yes you could use one LoadWave command for each block and pass separate column ranges for it.

>Is there method that I can skip an entire block in LoadWave command?

No.

One solution is to load everything and then delete what you don't want.

Another is to programmatically examine the files to determine which lines you want to load and then call LoadWave multiple times. This example may provide a starting point.

 

 

Thanks for the all comments. I have solved this issue by loading blocks as matrix and then delete the unnecessary blocks, using LoadWave commands with general text flag.

Then, I could decompose the blocks into columns and save as 1D waves.

Forum

Support

Gallery

Igor Pro 9

Learn More

Igor XOP Toolkit

Learn More

Igor NIDAQ Tools MX

Learn More