02-15-2013 04:55 PM
02-15-2013 05:15 PM
@PA_UW wrote:
size(val)
should be something like
3 277453
The example above is NOT three U8 values. Neither 277 or 453 can be represented using 8 bits. Are you sure that Matlab is expecting U8 values?
02-15-2013 05:19 PM
You misunderstand - I was just saying what matlab will respond with when the file is properly loaded and the size(val) command is run the 3 represents 3 columns/channels and the 277453 is the number of samples per channel.
02-15-2013 05:23 PM
@PA_UW wrote:
You misunderstand - I was just saying what matlab will respond with when the file is properly loaded and the size(val) command is run the 3 represents 3 columns/channels and the 277453 is the number of samples per channel.
Ok, that is a different story than.
02-15-2013 05:25 PM
Just on a sidenote, in addition to the simplifications already pointed out, your code is still crawling with bugs. For example you definitely need to wire the offset output of the header subVI to the offset input of the second subVI. Without that, the header will get immediately overwritten (just open the resulting mat file in notepad to see).
02-15-2013 05:38 PM
Thank-you so much for your help. I was just doing a quick and dirty hack with the example given trying to get a readable .mat file - definitely not refined programming - thanks for taking the time to find that error.