| RESPITE: The CASA Toolkit Page: Documentation: Block Library Index:BinaryOutputFile |
Write samples or frames to a raw headless data binary data file. Data may be written as either 1, 2, or 4 byte integers, or as 4 byte floating point numbers. The file name is supplied as a parameter. A file path and file extension may also be supplied.
The byte order of the data in the file must be specified using the BYTE_ORDER parameter. This must be set to either:
The input data is also copied to the block's output.
| Inputs | Meaning | Sample | 1-D frame | |
|---|---|---|---|---|
| in1 | signal channel 1 | YES | YES | YES |
| Outputs | Meaning |
|---|---|
| out1 | copy of in1 |
| Parameters | Type | Default | Meaning |
|---|---|---|---|
| FILE_NAME | String | - | The file to open |
| FILE_PATH | String | "" | Directory path to prefix to filename |
| FILE_EXTENSION | String | "" | Extension to postfix to filename |
| BYTE_ORDER | {BE, LE} | BE | BE=Big Endian, LE=Little Endian |
| BYTES_PER_SAMPLE | Integer | 2 | bytes per sample (either 1, 2, or 4) |
| FLOATING_POINT | Boolean | False | True=float point, False=Integer output |