MATLAB script for aquadopp?
I'm sorry, but no Matlab scripts as far as I know. However we do have a program for reviewing Aquadopp files. We will add it to our support/download site in a few days.
I'll let you know when it is there.
Best regard,
Kristoffer Dybvik, Nortek
Here is a simple script that decodes and plots Aquadopp current meter data. When it is through, you have the data in Matlab's memory, so you can work on it. It might not correctly decode all the different variations of Aquadopp formats, but you should not have too much trouble adapting it.
-Lee Gordon
The program/mex-file bin2mat converts binary *.aqd-files to MATLAB *.mat-files.
Follow this link to download bin2mat:
http://www.nortek-as.com/en/support/softwareThe zip file should be
containing:
bin2mat.dll - a matlab mex file, i.e. a program that can be called from MATLAB just like an ordinary m-file.
bin2mat.m - help file for bin2mat
bin2mat.exe - a stand allone dos program
ReadMe.txt - Help
We think you will it is fast and easy to use even with large files. Typical time for converting a 80 MB file on a modern computer is 1-2 minutes
Please repport any bugs here on the forum.
Kristoffer Dybvik
ExploreAQD (Display of Aquadopp data) is available
in the support area. Login to the user room and you can download this free utility.
Kristoffer Dybvik\n\n
<!--EDIT
if I got all that right, this bin2mat-Files don't help me to get my Aquadopp Profiler measurements into Matlab. It can't read .adp or .prf-files. If you have any helpful scripts for Matlab with the profiler-data that you would share, I would appreciate that a lot!
Thanks!
Maik
The current version of bin2mat reads Aquadopp files (*.aqd). Very soon there will be a new version reading Aquadopp PROFILER files too.
I'll keep you informed!
Best regards,
Kristoffer, Nortek AS
Here is a new version of bin2mat. It reads Aquadopp-files (*.aqd), Aquadopp Profiler-files (*.prf) and Vector-files (*.vec), and makes matlab-files (*.mat) that can be loaded into the Matlab workspace.
Please report any buggs to inquiry@nortek.no or here!
Known bugs:
-The README and help is not updated yet.
-Sometimes, when called from a m-file, bin2mat will crash.
-When converting large files, Matlab might run out of memory. (This is a Matlab/Windows problem)
Best regards,
Kristoffer Dybvik, Nortek
I did note however that a couple of vital bits of info do not appear to be extracted, namely the blanking distance and the cell size.
Cheers
Craig
I have found that the fields .Verror and .status do not appear to be correct when I use dec2bin in matlab. It may be that I am not using this correctly for the way these fields are encoded, but I cross checked against a file where these values were not changing and the matlab results were changing.
Thanks Again
Craig
We will fix the bug immediately, and also add Cell Size, Blanking and Number Of Cells.
Best regard,
Kristoffer Dybvik, Nortek

Cheers
Craig
We are still working on it, and it will be fixed in the next version. Sorry for not answering until now. Holidays, you know...
Kristoffer
Hi,
I have downloaded the bin2mat file however it doesn't seem to be working for me. Each time I try to use it an error message appears saying:
??? Invalid MEX-file ... bin2mat.dll is not a valid Win32 application.
I was wondering if anyone knew how to fix this?
Thanks
Peta
Hi Peta,
Can you tell me what type of computer and operating system you're running this under. Also, since you're receiving an error regarding a MEX file it would help to know which version of Matlab you're using.
P.J.
Hey P.J.,
I have the same error as above mentioned in Petas comment:
??? Invalid MEX-file '..\bin2mat.dll': ..\bin2mat.dll is not a valid Win32 application.
I use a Pentium4 with windows XP SP3 as an operating system and matlab version 7.7.
Do you know what may cause this problem?
Thanks
Christian
Hi Christian,
I never heard back from Peta, but there are potentially a couple of things going on:
1. bin2mat.dll needs to be rewritten and/or recompiled for Matlab 7.7
2. bin2mat.dll needs to be recompiled for Windows XP SP3
I unfortunately can't help with either as I don't have the source code. I'll see if I can get an answer for you though.
P.J.
Hi Christian,
Some good news and some bad news. bin2mat will not be updated anytime soon to work with more recent versions of Matlab. However, I emailed Nick Mortimer at CSIRO in Australia and he will be setting up a Google Code repository for his routines to decode the binary files into Matlab. He's trying to do this this week, so when I receive confirmation I will post a link to the code repository. Sorry for the delay and I hope this hasn't caused any problems with your analysis.
P.J.
Hi,
I have red all the comments on this discussion and I would like to know if there has be any new version of bin2mat.
In fact, I am trying to use the command
bin2mat('C:\Nortek\Data\test.aqd') from a script or the command window, in order to get "test.mat" in my C:\Nortek\Data directory.
However, when I write that, I get an error:
??? Attempt to execute SCRIPT bin2mat as a function:
H:\Work\bin2mat\bin2mat.m
So as I can understand, my computer is trying to run the bin2mat.m as a program (and it is only a file full of comments), instead of running the bin2mat.dll as it should be.
What can be the problem? I am running Matlab 7.6.0 (R2008a) on a Windows Server Enterprise 2007.
Thanks in advance for your comments,
C Couzi.
Hi Camille,
bin2mat will likely not be updated to work with current versions of Matlab in the near future unfortunately. However, if you run the *.exe version from the Windows command line there should be no issues. I've tested this with a sample data file from an Aquadopp and it produced valid output. So, while you can't run the utility from within Matlab, you can use it from the Windows command line.
P.J.
Hi,
is there an update available on the google code repository of Nick Mortimers code? I found a link elsewhere in the forum (from 2007) but can't seem to get it running on my version of Matlab (7.4.0) on Windows XP. The error prompt is that the .dll module could not be found although it is located in the path. The loadlibrary function is also not possible because of the missing header file. Does anybody have experience with this error message? I am working on vector data and it would be cumbersome to load the ascii files into matlab.
Thanks!
Eva
Hi Eva,
Nick's work is done outside of Nortek, it was simply a resource we've mentioned in the past as an alternative to the bin2mat routine we provide. Please note the bin2mat executable works under Windows but the associated m-file does not work under any recent version of Matlab. I would recommend using the bin2mat.exe if you need a means to convert the Aquadopp files to matlab binary files.
P.J.
Hi P.J.
I have been using bin2mat.exe but somehow the velocity output is an order of magnitude smaller than expected (and seen when having a glance at the converted .dat file). Now, I am not sure if it's exactly an order of magnitude so I was looking for another tool to convert my binary files. Did you ever hear of a similar problem when using bin2mat.exe?
Thanks,
Eva
What type of data are you converting? There's a velocity scaling factor that might be coming into play with that, especially if you're looking at data from a Vector.
P.J.
The data have been recorded by a vector, measuring continuously at high frequency. The header information gives the unit for velocity outputs as m/s. Where would I find information on the velocity scaling factor to check if that might be the case?
Thanks, Eva
Is you export one of your files to ASCII, take a look at the header file and the velocity scaling will be reported there. Let me check exactly how that factor is supposed to work for the data conversion.
P.J.
Hi Mary,
A lot of the post processing you do will depend on what exactly you are trying to get from the measurements. As a star I would recommend looking through the data quality indicators (i.e. SNR and correlation for the Vector and correlation for the HR Profiler). You should also check out the Pulse Coherent Primer available here: http://www.nortekusa.com/lib/technical-notes/tn-027-pulse-coherent-primer
I'm not certain if anyone has made specific matlab scripts available for post processing yet as a lot of this analysis winds up being one off analysis schemes. The Vector data can be analyzed in our software ExploreV and the HR Profiler data can be loaded into Storm for some basic processing and quality control.
P.J.

