2.7.27 impBin2d
Contents
Menu Information
Data: Import from File : Binary 2D Array
This option may not display by default. Use Data: Import from File: Customize to enable it.
This X-Function supports file re-import. See this topic for details.
Brief Information
Import binary 2d array file
Additional Information
Minimum Origin Version Required: 9.0
Command Line Usage
impBin2d fname:="C:\temp4096x5120.img"
X-Function Execution Options
Please refer to the page for additional option switches when accessing the x-function from script
Variables
| Display Name |
Variable Name |
I/O and Type |
Default Value |
Description |
|---|---|---|---|---|
| File Name | fname |
Input string |
|
The file(s) to be imported. Click the browse button beside the list box to open one or more files. Then the file names will be listed in the box. |
| Number of Columns | ncols |
Input int |
|
Specify the number of columns of the output matrix. |
| Byte Length | bytes |
Input int |
|
Specify the byte length of the import data.
|
| Signed/Unsigned | sign |
Input int |
|
Specify the type of data in the input file.
Option list:
|
| Big-Endian | bigend |
Input int |
|
Specify the byte order of the import data. The default setting is Little-Endian. |
| Header Bytes | offset |
Input int |
|
Specify the number of bytes in the binary file header section. |
| Transpose After Import | transpose |
Input int |
|
Check this to transpose the imported data. |
| Output | orng |
Output Range |
|
Specify the destination of imported data.
See the syntax here. |
Description
This function imports image data (.img files) and Origin binary matrix data (.b2d files) into matrix windows.
Example
For example, you want to import a binary 2D data into a matrix. The byte length of the file is two. And the file has no header bytes. To import it into a matrix which has 256 columns, you can do the following steps:
- Click the New Matrix button
on the Standard toolbar to create a new matrix. - Select Data: Import from File: Binary 2D Array from the main menu to open the dialog box fo the impBin2D X-Function.
- Choose the file that you want to import, and then click the Open button.
- Enter 256 in the Number of Columns edit box.
- Click the OK button to import the files into the matrix.