DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Binary File Problem

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,

 

Download All
0 Kudos
Message 1 of 2
(5,690 Views)

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

0 Kudos
Message 2 of 2
(5,321 Views)