MATLAB script for aquadopp?

Up to Current profilers and current meters

MATLAB script for aquadopp?

Posted by Jan Erik Stiansen at February 12. 2003
Is there any MATLAB script for prosessing of Aquadopp data availible on the net?

MATLAB script for aquadopp?

Posted by Jan Erik Stiansen at February 13. 2003
Hello, Jan Erik!

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

MATLAB script for aquadopp?

Posted by Jan Erik Stiansen at February 13. 2003
Hi Jan-Erik,

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

MATLAB script for aquadopp?

Posted by Jan Erik Stiansen at March 13. 2003

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/software

 

The 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

MATLAB script for aquadopp?

Posted by Jan Erik Stiansen at March 13. 2003
More good news:
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

MATLAB script for aquadopp?

Posted by Jan Erik Stiansen at May 22. 2003
Hej,
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

MATLAB script for aquadopp?

Posted by Jan Erik Stiansen at May 23. 2003
Hei!

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

MATLAB script for aquadopp?

Posted by Jan Erik Stiansen at June 05. 2003
Hello!

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

MATLAB script for aquadopp?

Posted by Jan Erik Stiansen at June 13. 2003
Thanks for this matlab script update for the profiler, just what I was looking for before the bugs in ExploreP drove me insane!

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

MATLAB script for aquadopp?

Posted by Jan Erik Stiansen at June 16. 2003
Thanks again for this, I have been using this quite a bit now loading my *.adp files into matlab.

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

MATLAB script for aquadopp?

Posted by Jan Erik Stiansen at June 18. 2003
Thank you for the feedback!
We will fix the bug immediately, and also add Cell Size, Blanking and Number Of Cells.


Best regard,
Kristoffer Dybvik, Nortek

MATLAB script for aquadopp?

Posted by Jan Erik Stiansen at July 10. 2003
If you are still working on the matlab script, we just noticed that the field clockdeploy seems to give a date that is a month out.  Not a big problem but thought you might want to know!  (actually the only reason I found it was someone told me I had sent them the wrong data file!;)

Cheers
Craig

MATLAB script for aquadopp?

Posted by Jan Erik Stiansen at August 13. 2003
Hello!

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

MATLAB script for aquadopp?

Posted by Jan Erik Stiansen at September 04. 2003
Hi

The discussion continues with a new release
in this topic.

Re: MATLAB script for aquadopp?

Posted by Peta Campbell at July 22. 2009

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

Re: MATLAB script for aquadopp?

Posted by P.J. Rusello at July 22. 2009

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.

Re: MATLAB script for aquadopp?

Posted by Christian Schwarz at September 06. 2010

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

Re: MATLAB script for aquadopp?

Posted by P.J. Rusello at September 07. 2010

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.

 

Re: MATLAB script for aquadopp?

Posted by P.J. Rusello at September 21. 2010

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.

Re: MATLAB script for aquadopp?

Posted by Camille Couzi at December 16. 2010

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.

 

Re: MATLAB script for aquadopp?

Posted by P.J. Rusello at December 17. 2010

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.

Re: MATLAB script for aquadopp?

Posted by Eva Kwoll at January 25. 2011

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

Re: MATLAB script for aquadopp?

Posted by P.J. Rusello at January 25. 2011

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.

Re: MATLAB script for aquadopp?

Posted by Eva Kwoll at January 26. 2011

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

Re: MATLAB script for aquadopp?

Posted by P.J. Rusello at January 26. 2011

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.

Re: MATLAB script for aquadopp?

Posted by Eva Kwoll at January 26. 2011

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

Re: MATLAB script for aquadopp?

Posted by P.J. Rusello at January 26. 2011

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.

 

Powered by Ploneboard
Document Actions
Log in


Forgot your password?
New user?