LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

MATLAB & Data Acquisition

Hi
I am a MATLAB user, but do not have any experience using their Data
Acquisition Toolbox. I am wondering if anyone in this newsgroup has
experience using MATLAB (alone or in combination with LabView) for
multichannel data acquisition and Signal
Processing Toolbox for real-time decision making? Would appreciate greatly
if you could share your
experiences - (any shortcomings/advantages?)

Thanks in advance
0 Kudos
Message 1 of 4
(4,087 Views)
DK,

I have experience only on the fringe of what you're trying to do. My task was
to take information from an aircraft sensor simulator and feed the data into a
matlab (simulink really) model of the aircraft dynamics, and then return the
aircraft states and such back to the simulation. This was done at 100Hz.
Servos were to be simulated in a different manner.

I took the a/c simulation from simulink, created a windows .dll and embedded
this into a LabView executive. The labview program talked mostly across
ethernet using udp/ip with the sensor simulator. Other inputs were read by
Labview using analog inputs, CAN bus and what not.

All and all, it worked quite nicely for what we were trying to do. As to
observations and biases:

An awful lot depends on your definition of realtime. In my situation, I
wouldn't even consider trying to run the model in the matlab environment.

Same goes with your robustness requirements. Using LabView on NT, I could not
guarantee that the OS wouldn't steal CPU and make me miss a frame (the
vernacular being that my platform was not a realtime, deterministic system).

Another downside of my approach was the effort required to develop the tlc
files for the realtime workshop to create the windows .dll. I had to recruit
the help of a very capable s/w dubbie, which the program could ill afford, and
which cost me many boxes of donuts ;).

On the upside, outside of creating the .dlls, I was able to build and code
this system without much outside help. I can do matlab/simulink, LabView
programming's a piece of cake and provides the benefits of compiled code.
Integration of NI cards for DAQ is relatively easy, but you may need to spend
some time sorting out your signal conditioning requirements.

Good luck and enjoy. Sounds like a fun project.

-Chris

DK wrote:

> Hi
> I am a MATLAB user, but do not have any experience using their Data
> Acquisition Toolbox. I am wondering if anyone in this newsgroup has
> experience using MATLAB (alone or in combination with LabView) for
> multichannel data acquisition and Signal
> Processing Toolbox for real-time decision making? Would appreciate greatly
> if you could share your
> experiences - (any shortcomings/advantages?)
>
> Thanks in advance
0 Kudos
Message 2 of 4
(4,086 Views)
DK a écrit :
>
> Hi
> I am a MATLAB user, but do not have any experience using their Data
> Acquisition Toolbox. I am wondering if anyone in this newsgroup has
> experience using MATLAB (alone or in combination with LabView) for
> multichannel data acquisition and Signal
> Processing Toolbox for real-time decision making? Would appreciate greatly
> if you could share your
> experiences - (any shortcomings/advantages?)
>
> Thanks in advance

Hi,

As Chris wrote, the weak point of Matlab for RT processing is speed.
Matlab is very slow, so you shouldn't expect the same speed as a
well-written C code. Using Matlab for Data Acquisition and RT
processing is OK provided you're not too ambitious !

Ben

--
---------------------------------------------------
Benoit LEP
RETTRE Signal Processing Engineer
Schneider Electric SA, Grenoble, France
Note : The opinions here are mine, not my company's
---------------------------------------------------
Message 3 of 4
(4,086 Views)
Hi,

Which data acquisition device are you planning to use?

-Rob
-----
Rob Purser
Manager, Test and Measurement
MathWorks
rob.purser@mathworks.com
0 Kudos
Message 4 of 4
(3,627 Views)