Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Real Time Data Acquisition using MATLAB

Does anyone know to Acquire Real Time Data using NI-cDAQ9178 hardware, what kind of configuration steps or program has to be developed for MATLAB?

0 Kudos
Message 1 of 7
(9,252 Views)

Hi Gagz,

 

The easiest way to implement this in MATLAB is using Mathwork's Data Acquisition Toolbox software, which can be found here.

 

The 9178 is listed in the supported devices page, which can be found here.

 

I hope this helps.

 

0 Kudos
Message 2 of 7
(9,239 Views)
Glad to get a reply so instantly. But the thing is i am using MATLAB version R2009 and the toolbox is compatible with the version above it like R2010. I don’t know if this is really the case. Any thoughts on that?
Thanks
0 Kudos
Message 3 of 7
(9,234 Views)

Hi Gagz,

 

The Data Acquisition Toolbox has been around since before R2009, so I imagine the current installer will either support R2009, or you could get in contact with Mathworks and I'm sure they could provide you with a copy of the older software. It seems the 64-bit version is only compatible with National Instruments hardware, but the 32-bit version is compatible with all listed DAQ hardware.

 

Hope this helps,

0 Kudos
Message 4 of 7
(9,231 Views)

Hi Laurence,

 

Is there any other way of prohramming and acquiring the data from the National Instrument into the MATLAB that you are aware of?

 

Thanks

Gagz

0 Kudos
Message 5 of 7
(9,226 Views)

I have had a search around the forums and there is a post here about using DAQmx drivers using the loadlibrary() function.

 

Other then that I do not know other methods offhand. A more in depth search of the forums may reveal other ways.

0 Kudos
Message 6 of 7
(9,217 Views)

I've had a look around the forums, and this post seems to offer two other solutions:

 

http://forums.ni.com/t5/Multifunction-DAQ/NI-DAQmx-Data-Acquisition-tool-with-Matlab-R2012a/m-p/1923...

 

The first is to package the MATLAB code as a Mathscript module, which LabVIEW can import.

 

More details can be found here: http://zone.ni.com/devzone/cda/tut/p/id/3502

 

The second is to use the DAQmx Tools for MATLAB, but this is older software and may not work with later versions:

 

NI-DAQmx Tools for The Mathworks, Inc. MATLAB® Software

https://sine.ni.com/apps/utf8/nigb.main?code=GB_EVALDAQTOOLS

 

MATLAB® is a registered trademark of The MathWorks, Inc.

0 Kudos
Message 7 of 7
(9,206 Views)