12-18-2013 06:29 AM
Hi again,
I am trying to extract data from a specific binary file (extension .elf, zipped and attached) containing 21 fields and of block size 1158. There are about 5000 or so blocks in the file. They are mostly individual values of double or int type and present no challenge to read or extract. However, one of the above fields is 512 shorts in size (F spectrum) and I would like the data plugin to create an individual channel for each of the blocks it extracts this field from. In other words Channel F1 (512 in size) for Block 1, Channel F2 (512 in size) for Block 2 and so on. The said field starts at offset 42.
So as I understand it :
oBlock.BlockWidth =1158
oBlock.Position = 42
oBlock.BlockLength = 512
I cannot seem to extract the channels in the way I need them, hence this message. Help is most appreciated.
Binary file attached.
Best regards,
01-21-2014 01:57 PM
Hi tspc,
I'm running your DataPlugin and loading the FS channel from your *.elf file. It's not clear to me what's missing. The Block.Position property is the starting byte (zero-indexed) of the first value from the first channel you want to read in the Block. The Block.BlockWidth property is the number of bytes between successive measurements of the same channel. The Block.BlockLength is the number of values for each channel in the Block.
Can you please explain what is missing in the data you read with the DataPlugin you submitted?
Brad Turpin
DIAdem Product Support Engineer
National Instruments