03-17-2013 04:16 PM
Hi,
I have a PCI-6052E and a PCI-6071E and I have a program in Matlab which interacts the cards with traditional DAQ driver.
Is it possible to synchronize the two cards using RTSI or something? If so, what should I do in matlab to achieve this?
I'm a little confused because I'm not sure if this can only be done using DAQmx.
Thanks!
Solved! Go to Solution.
03-19-2013 10:18 AM
Hi zlyhere,
Your best bet is to use DAQmx since it has a simpler API, supported, and is much more stable. However, if you'd really like to use TDAQ to accomplish this, you can follow this example (written in LabVIEW)
https://decibel.ni.com/content/docs/DOC-6643
The key point is that there are functiosn that allow you to route a start trigger and route signals between the devices. The difference between TDAQ and NI-DAQmx is that NI-DAQmx is much easier to configure. If you need a reference for the functions, please browse to Start menu » All Programs » National Instruments » NI-DAQ » Traditional NI-DAQ {Function Reference Help, User Manual}
Lastly, does your m file use C calls? Or is it using a toolbox?
03-21-2013 10:56 AM
Hi Che,
I see. I asked about traditional DAQ only because I inherited the cards and some old programs from other people. But I think your suggestion is right. I'd better use DAQmx.
The old program I had is using Matlab's data acquisition toolbox, not C calls. Do you think C calls will be easier and more efficient?
Thanks!
03-22-2013 03:59 PM
Hi zlyhere,
Using DAQmx would definitely be the best choice.
In terms of using C vs the Data Acquisition Toolbox for The MathWorks Inc, Matlab® Software, I'd recommend the toolbox for ease of use. MathWorks develops the toolbox, so they should have documentation regarding how to synchronize the cards.
If you find that you need more functionality, you can fall back to C. The documentation is available at
Start menu » All Programs » National Instruments » NI-DAQ » Text-Based Code Support » NI-DAQmx C Reference Help
Matlab® is a registered trademark of The MathWorks, Inc.
Cheers!
03-22-2013 04:08 PM
Sounds great! Thanks!