How to acquire data and generate signals at the same time using ni-daq on session-based interface

6 次查看(过去 30 天)
Hi all,
I've tried search how can I use input and output simultaneously using ni-daq.
But I don't have any background knowledge about device and daq toolbox, Only can do analog input and output separately.
I have used session-based interface and my ni-daq model is usb-6356.
I want to make my system,whenever ni-daq get external trigger signal, transmit signal and acquire signal simultaneously.
Is there any function acquire data and generate signals at the same time on session based interface?
And how can I make the system do analog input and analog output whenever daq get external trigger?

回答(1 个)

Brahmadev
Brahmadev 2024-5-17
You can use the "readwrite" function to simultaneously read and write device channel data
Refer to the following documentation for more information:
Also, you can refer to the following example to start a multi-trigger acquisition based on an external trigger:
Hope this helps!

类别

Help CenterFile Exchange 中查找有关 Simultaneous and Synchronized Operations 的更多信息

产品


版本

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by