Method: GetBinaryBlock for File
- Updated2024-09-12
- 1 minute(s) read
DataPlugin > Methods > Method: GetBinaryBlock for File
Method: GetBinaryBlock for File
Reads a binary file and returns the channel values contained in the file.
| Note The file pointer of the binary file does not move when a BinaryBlock is read. |
Set oBinaryBlock = Object.GetBinaryBlock
| Object | File Object with this method |
| oBinaryBlock | BinaryBlock Returned object |
The following example reads a binary file that contains four channels with 32-bit integer values:
Dim oBlock : Set oBlock = File.GetBinaryBlock() Dim oChn1 : Set oChn1 = oBlock.Channels.Add("Channel1", eI32) Dim oChn2 : Set oChn2 = oBlock.Channels.Add("Channel2", eI32) Dim oChn3 : Set oChn3 = oBlock.Channels.Add("Channel3", eI32) Dim oChn4 : Set oChn4 = oBlock.Channels.Add("Channel4", eI32)