 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Jake Guest
|
Posted: Thu Jun 26, 2003 7:21 pm Post subject: Using MatLab with C++ Builder |
|
|
Anybody have any experience/anecdotes/advice regarding using C++ Builder
with MatLab?
|
|
| Back to top |
|
 |
Chris Thompson Guest
|
Posted: Thu Jun 26, 2003 9:20 pm Post subject: Re: Using MatLab with C++ Builder |
|
|
Back in grad school I wrote some C code that allowed us to control some
laboratory instrumentation from MATLAB. It was pretty cool because the
"mex" routines collected large amounts of data, and MATLAB made it possible
to perform complex calculations on the data in near real time.
It took a little time for me to understand how mex files work. Probably the
best advice I can give you is pretty obvious: study the examples that come
with MATLAB and write some VERY simple routines before you try to tackle
anything complicated. I think my first mex program did something silly like
squaring an integer. It's possible that I may still have some of my old
code--e-mail me if you want me to check.
I haven't written any mex files using BCB, so I can't offer any BCB-specific
advice. However, I recently used BCB to write a data-acquisition program
that creates MATLAB data files. I found it pretty trivial to write
older-style files (MATLAB version 4?). It's more complicated to write files
in the current format, but the MATLAB docs explain things pretty well.
Good luck!
Chris
"Jake" <johnjac76[nospam]@comcast.net> wrote
| Quote: | Anybody have any experience/anecdotes/advice regarding using C++ Builder
with MatLab?
|
|
|
| Back to top |
|
 |
Alisdair Meredith Guest
|
Posted: Fri Jun 27, 2003 8:40 am Post subject: Re: Using MatLab with C++ Builder |
|
|
Jake wrote:
| Quote: | Anybody have any experience/anecdotes/advice regarding using C++ Builder
with MatLab?
|
MatLab happily exports a DLL interface that we use here without
problems.
I'm not invovled in the MatLab related projects, so don't know how hard
we push it, but have not heard of any special C++Builder problems.
Only problem we did have was running the client software with optional
mat-lab functionality on PCs without MatLab installed. No DLLs, apps
can't start. This was easily solved by wrapping calls through a dynamic
loader.
--
AlisdairM
Team Thai Kingdom
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|