‎05-10-2007 06:46 AM
‎05-10-2007 06:54 AM
Hi,
You'll need to tell us a bit more about what you're trying to do, and what your timing requirements are. GETDATA, GETSAMPLE, and PEEKDATA are part of Data Acquisition Toolbox for MATLAB, which lives on top of Windows. There's other products that operate on real time kernels that typically sacrifice throughput and ease of use in order to reduce latency.
All the best,
-Rob
‎05-10-2007 08:56 PM
‎05-11-2007 05:49 AM
Hi,
If I understand the problem, I think the solution is to continously acquire the signal, and call GETDATA while you are acquiring. Start the acquisition, and let it run continuously in the background, grab data using GETDATA, and then process the result, and output to the circuit using PUTDATA. You can continuously output a varying signal as well, but you just have to keep up with the D/A to do so.
-Rob
‎05-11-2007 09:54 AM
‎05-11-2007 04:43 PM
Hello.
What DAQ card are you using to take these measurements? Any chance of posting the code here so our dedicated users can look into this?
Brian F
Applications Engineer
National Instruments
‎05-11-2007 08:45 PM
‎05-14-2007 10:22 AM
‎05-14-2007 05:09 PM
You code looks fine. You're using Traditional NIDAQ rather than NI-DAQmx, which changes the performance picture a bit. I'm also not sure what version of Data Acquisition Toolbox and MATLAB you're using. The acquisition continues in the background, so the time to execute the GETDATA function is the time to bring the data back into MATLAB. As Brian mentions this may be a result of the hardware you're running.
-Rob
‎05-15-2007 01:51 AM