Read_Binary_Sequence (Rd_Bin_Sequence)
Synopsis
Reads in a sequence of numbers from a binary file into a uniform field.
Input Port
Parameters
Filename
|
UIfileSB
|
name of the file to read
|
skip initial bytes
|
UIfield
|
number of bytes to skip
|
number of dimensions
|
UIfield
|
dimensionality of the field to be read in.
|
dimension 1 dimension 2 dimension 3
|
UIfield
|
dimensionality of the field to be read in.
|
byte order
|
UIfield
|
Specifies the byte order
|
number of variables
|
UIfield
|
number of variables to be read
|
vector length
|
UIfield
|
for each variable the veclen will be read
|
data type
|
UIoptionMenu
|
selects the type for each variable
|
label (optional)
|
UIfield
|
label for nodedata per variable
|
units (optional)
|
UIfield
|
units for the nodedata per variable.
|
Read File
|
UIbutton
|
causes file to be read
|
Output Port
field
|
Mesh_Unif+Node_Data
|
Description
Read_Binary_Sequence (the Network Editor name is shortened to Rd_Bin_Sequence) reads in one or more arrays from a binary file that contains only the contents of the array with no extra information such as array dimensions, data types, etc. into a uniform field. The reader does not make any assumptions about the structure (dimensions) or data type of the input data. All information about the structure and the data type must be specified. Each array in the input file is mapped to a separate node data component. The UI uses the term "variables," which corresponds both to the number of arrays in the original data file and the number of components in the resulting field.
Input
parent
The UI parent, of type UIconnection.
Parameters
Filename
A file dialog box in which you select the file to read.
skip lines
An integer that specifies the number of lines in the file to skip. The default is_0.
number of dimensions
A typein box that is used to specify the dimensionality of the field to be read.
dimension1 dimension2 dimension3
A typein box that is used to specify the dimensionality of the field to be read.
byte order
An optionMenu that is used to specify the byte order or use the same one as the machine.
number of variables
int. The number of variables that are to be set.
vector length
A typein box used to sepecify the length of the vector
data type
Radio box items that specify the type of the output data. The allowed values are byte, short, int, float, double, and string.
label
A string used for the node data label.
units
A string used for the node data units.
Read File
A button to activate the module.
Output Port
out_fld
field. Output 3D Rectilinear field data.
Example
Not available
File
v/modules.v
See also related modules