Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Write 2D array row-by-row in Level 5 MAT-File Format

I want to write a 2D array row-by-row in "Level 5 MAT-File Format"

Example 2D array:

123
456
789

3 write operations, 123, append 456, append, 789.

 

So far, I've looked at Matio VIs in VIPM, the Matlab data plug-in and VIs posted by users in the forums.  I want to know a route that works with minimal hassle.  Can anyone confirm if row-by-row is possible?  Would I be better to save as TDMS, then convert to .mat as a post processing step?

0 Kudos
Message 1 of 3
(2,245 Views)

Hi Bmann,

 

I struggle a bit to understand what your precise question is:

 

1) Which programming language would you like to use? You posted in the Measurement Studio, but mention VIs which are LabVIEW code.

2) What would you like to achieve specifically? Your example 2D array looks to me like a 1D array and you append element-by-element and not row-by-row.

3) In terms of appending data: this is independent of the file format and it should be as easy in MAT as in TDMS. Thus row-by-row is easily possible in any format and I would recommend against TDMS and then converting.

 

Cheers,

Andreas
CLA, CTA
0 Kudos
Message 2 of 3
(2,200 Views)

now sure how I ended up on Measurement Studio board, apologies.

I've re-posted the query here:

 

https://forums.ni.com/t5/LabVIEW/Write-2D-array-row-by-row-in-Level-5-MAT-File-Format/m-p/3906922#M1...

 

0 Kudos
Message 3 of 3
(2,195 Views)