Jump to content

kinimod

Members
  • Posts

    6
  • Joined

  • Last visited

Profile Information

  • Location
    Germany

Contact Methods

  • Personal Website
  • Twitter Name
    -

LabVIEW Information

  • Version
    LabVIEW 8.6
  • Since
    2007

kinimod's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hi Pieter, unfortunately no. I didn't investigate this further. Best Dominik
  2. Hi Jim, does the library support reading of structures created with MATLAB. Currently i'm having trouble with this. In the example I try to read a simple Matlab struct contained in d.mat, having one field "a" (scalar double) and one field "b" (vector double). Apparently there is something wrong with the type input (test_cluster.ctl) on the matio read VI. The attached example fails with an error message complaining about a connector pane mismatch. Any help would be appreciated Best Dominik test_matio_read_struct.vi test_cluster.ctl d.mat.zip
  3. Hi Jim, now I have problems converting large tdms files (about 70MB) to a mat file. The matio library fails with an "Out of memory" error. Is some part of the library leaking memory or is this simply a misusage of the library VIs on my side? Attached is one minimal VI that reproduces the problem. The waveform_array_to_cluster_array SubVI transforms the waveform array read from the tdms file into a cluster array to be written by the matio library. Dominik test_tdms_to_mat.vi waveform_array_to_cluster_array.vi
  4. Hi Jim, thanks for the quick reply. This solved the previously reported problem. Unfortunately there is another issue: when column vectors are created in MATLAB, e.g. n x 1 arrays, they are not correctly read by the library. The variable returned just contains a single element. This does not occur, if row vectors, e.g. 1 x n arrays are created. Further, when chaining multiple read-mat VIs it would be convenient to have a copy of the endianess input as output. And maybe it would be nice if one could specify the name of a variable to read from the file instead of having to read them sequentially in alphabetic order. Nevertheless the library is very useful already . Best regards Dominik
  5. Hi Jim, thanks for the quick reply. Having waveforms as timeseries objects would be nice. But writing arrays of clusters would already be fine, since converting waveforms to clusters is straightforward. Writing and subsequent reading of waveforms from LabView works (see attached test_matio_waveform.vi). Dominik test_matio.vi test_matio_waveform.vi
  6. Nice work. Unfortunately writing an array of clusters does not work. There seems to be no variable in the mat file. If i understood correctly an array of clusters should be mapped to a cell array of structs or a struct array in Matlab. Another issue (maybe related to the one above): Writing a waveform does not work as well, although this is essentially just a LV cluster.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.