Rank: 1700 based on 84 downloads (last 30 days) and 4 files submitted
photo

Gordon

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Gordon View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
21 May 2012 Write String Value to Windows Registry A function the writes a string value to a key in the windows registry Author: Gordon windows, registry, regedit, winqueryreg, write, string 18 0
31 Aug 2009 Read ID3 (version 2 only) from an MP3 File Reads in the ID3 tags from an MP3 file. It can only handle ID3v2 tags. Author: Gordon mp3 tag id3 id3v2 met..., mp3, id3, id3v2, tag, tags 20 0
31 Aug 2009 MP3 Tag Reader (ID3 version 1.0 only) Reads in the ID3v1 tags from an MP3 file Author: Gordon mp3 id3 id3v1 tags re..., mp3, id3, id3v1, tag, tags 14 0
26 May 2009 How to load / call functions from a VB DLL A brief overview on how to create a DLL in VB .Net which can be used from within Matlab. Author: Gordon vb, visual basic, dll, matlab, function, dynamic 32 3
  • 5.0
5.0 | 2 ratings
Comments and Ratings by Gordon View all
Updated File Comments Rating
21 Aug 2011 avisynthReader Read videos into matlab using avisynth. (Avisynth has to be installed on your system) Author: Ivar Eskerud Smith

Great functions, I've been looking to use avisynth in Matlab for ages, wish I'd found this earlier.

Remember to download avisynth installation and source from http://www.avisynth.org so you can compile the mexfile and get things to run

25 Jun 2010 Multi progress bar A new "shiny" progress-bar with multiple bars in a single window, time-estimates and more. Author: Ben Tordoff

Looks good, but It doesn't seem to work well with small increments, unless I am missing something.
For the code below, the progress bar finishes much earlier than the main loop.

multiWaitbar( 'Task 1',0);
for k=1:1000
multiWaitbar( 'Task 1','Increment',k/1000 );
pause(0.01)
fprintf('%d / %d <%1.4f>\n',k,1000,k/1000);
drawnow
end

Comments and Ratings on Gordon's Files View all
Updated File Comment by Comments Rating
20 Feb 2012 How to load / call functions from a VB DLL A brief overview on how to create a DLL in VB .Net which can be used from within Matlab. Author: Gordon Keiko

28 Nov 2011 How to load / call functions from a VB DLL A brief overview on how to create a DLL in VB .Net which can be used from within Matlab. Author: Gordon Jonathan

I tried this and had no success. It seems that (at least in 2011 versions), that when registering the file using regasm.exe, it is necessary to use the /codebase option. For example using the Windows command prompt (run as administrator) from the directory that the file is located):

c:\...\...\>c:\windows\microsoft.net\framework\v4.0.30319\regasm.exe VB_Dll_Demo.dll /codebase

Under the 64 bit version of Matlab, do the same thing except use framework64 instead of framework:

c:\...\...>c:\windows\microsoft.net\framework64\v4.0.30319\regasm.exe VB_Dll_Demo.dll /codebase

I used .net framework 4.0 and compiled as "anycpu", selecting "register for COM interop". It warned that the name wasn't strong when I ran regasm so the .dll should be signed to avoid problems.

07 Aug 2009 How to load / call functions from a VB DLL A brief overview on how to create a DLL in VB .Net which can be used from within Matlab. Author: Gordon Couto, Miguel

Ok, now I've got the answer to my previous question. Each object's display method is assigned to a matlab function (m-file), then the call from simulink is made using the block "MATLAB Function". That's it, so easy.

But, I'm still thinking about those COM objects...how to start a xserver in C s-function and then use the object's methods? Is this senseless??

What if the dll was made in C++, was it easier to use the library in simulink s-functions?

04 Aug 2009 How to load / call functions from a VB DLL A brief overview on how to create a DLL in VB .Net which can be used from within Matlab. Author: Gordon Couto, Miguel

I did what u told and it works! Great! Thanks.
Do you know how to use the object's methods in Simulink?

Contact us