LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Matlab and Labview

Here's the situation:

I am running Matlab 5.2 (use it to do stuff like design controllers, data
analysis, etc). Anyway, I am curently working on an
instrumentation/control system. I'd like to use Labview for the
instrumentation design and then use Matlab to actually implement the
controller. My question is, do matlab and labview communicate directly in
real time ? Has anyone out there attempted something similar to
what I am proposing? Thanks for your help.

-K
0 Kudos
Message 1 of 5
(8,769 Views)
> I am running Matlab 5.2 (use it to do stuff like design controllers, data
> analysis, etc). Anyway, I am curently working on an
> instrumentation/control system. I'd like to use Labview for the
> instrumentation design and then use Matlab to actually implement the
> controller. My question is, do matlab and labview communicate directly in
> real time ? Has anyone out there attempted something similar to
> what I am proposing? Thanks for your help.

Version 5.1 of LabVIEW instroduces a Matlab script node that allows
for you to import or type Matlab scripts into the formula node, and
at runtime, LV will use ActiveX to pass data and the script to Matlab,
get the script processed by Matlab, and return the results to LV.

It is also possible to use ActiveX to do similar ope
rations without
using the new node. As for whether this is in realtime, it depends on
what you mean. This will be two applications communicating over RPC
wrapped in COM and going through ActiveX Automation. It will be
reasonably predictable as to how long the computation will take, and
it will be faster than sharing data between the products using file I/O,
but it will not be small in size or blazingly fast.

Greg McKaskle
0 Kudos
Message 2 of 5
(8,767 Views)
In article
,
kocfrege@kingcong.uwaterloo.ca says...
>
>
>Here's the situation:
>
>I am running Matlab 5.2 (use it to do stuff like design controllers, data
>analysis, etc). Anyway, I am curently working on an
>instrumentation/control system. I'd like to use Labview for the
>instrumentation design and then use Matlab to actually implement the
>controller.

My question is, do matlab and labview communicate directly in
>real time ? Has anyone out there attempted something similar to
>what I am proposing? Thanks for your help.

Do you have LabView version 5.1? With this version, there is the MatLab
script node, similar to the formula node, where LabView and MatLab
communicate in real time. Als
o, HiQ is bundled with version 5.1 and there is
a new script node for that too.

Andrew
0 Kudos
Message 3 of 5
(8,767 Views)
How about Lookout? I have tried to get DDE-connection from Lookout to
Matlab without success. Are you familiar with that?

More information, see the mail in comp.soft-sys.matlab:

Subject: DDE-link from Lookout to Matlab?
Date: Wed, 28 Apr 1999 11:20:33 +0300
From: Sakari Lukkarinen

/Sakari

Andrew Levick wrote:
>
> In article
> ,
> kocfrege@kingcong.uwaterloo.ca says...
> >
> >
> >Here's the situation:
> >
> >I am running Matlab 5.2 (use it to do stuff like design controllers, data
> >analysis, etc). Anyway, I am curently working on an
> >instrumentation/control system. I'd like to use Labview for the
> >instrumentation design and then use Matlab
to actually implement the
> >controller.
>
> My question is, do matlab and labview communicate directly in
> >real time ? Has anyone out there attempted something similar to
> >what I am proposing? Thanks for your help.
>
> Do you have LabView version 5.1? With this version, there is the MatLab
> script node, similar to the formula node, where LabView and MatLab
> communicate in real time. Also, HiQ is bundled with version 5.1 and there is
> a new script node for that too.
>
> Andrew
0 Kudos
Message 4 of 5
(8,767 Views)
In article pc1.uwaterloo.ca>,
Kingsley Fregene wrote:
>
> Here's the situation:
>
> I am running Matlab 5.2 (use it to do stuff like design controllers, data
> analysis, etc). Anyway, I am curently working on an
> instrumentation/control system. I'd like to use Labview for the
> instrumentation design and then use Matlab to actually implement the
> controller. My question is, do matlab and labview communicate directly in
> real time ? Has anyone out there attempted something similar to
> what I am proposing? Thanks for your help.

In case using Mathematica instead of Matlab is an option for you, we have
developped a link between Mathematica and LabVIEW which would fit your
needs very well
. It is based on MathLink (Wolfram Research
interapplication communication protocol) instead of ActiveX. We have a
paper reporting a real-time control of a mobile robot using the link that
will be published in the next issue of LTR. You can download the paper
from our homepage http://www.e-notebooks.com. It includes somebenchmark
data. You can find more information about Mathematica Link for LabVIEW at
http://www.e-notebooks.com/products/link/. There is a downloadable
version of the manual.


--== Sent via Deja.com http://www.deja.com/ ==--
---Share what you know. Learn what you don't.---
Message 5 of 5
(8,767 Views)