Load Labview Binary Data

バージョン 1.2.0.0 (2.17 KB) 作成者: Jeremy Smith
labviewload.m loads in binary data files output by Labview.
ダウンロード: 2.4K
更新 2010/5/6

ライセンスの表示

This script loads Labview binary data files into Matlab. I only tested double precision and boolean data files but I'm sure it'll work on any other numeric type given the appropriate precision input into the labviewload.m script. I tested it up to a three dimensional double array but there is no limitation in the code which limits it to only three dimensions.

It can load data files which have been repeatedly written to as long as each array is the same size. It's an extremely simple script (46 lines minus the help info) so it's easy to modify for more complex Labview binary files.

Example usage:
D = labviewload('BinaryData.bin',3); % Load a binary file consisting of a three dimensional double array

D = labviewload('BooleanData.bin',1,'int8'); % Load a binary file consisting of a one dimensional boolean array

Keep in mind that the second input is the NUMBER of dimensions of the array within the binary file and not the actual dimensions.

It outputs a cell array of arrays. For one and two dimensional arrays you can simply use cell2mat to convert it into an even more convenient format.

Tested on Matlab R2007a and Labview 8.2.

引用

Jeremy Smith (2024). Load Labview Binary Data (https://www.mathworks.com/matlabcentral/fileexchange/27195-load-labview-binary-data), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2007a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersLabVIEW についてさらに検索
タグ タグを追加

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
バージョン 公開済み リリース ノート
1.2.0.0

- ~13 times faster on a test file after adding preallocation
- Fixed reshaping

1.1.0.0

- Improved description, no code change

1.0.0.0