How to connect simulink and NI 6341?

조회 수: 6 (최근 30일)
hengyu
hengyu 2020년 7월 20일
답변: Shaunak 2025년 6월 11일
I want to generate a signal in simulink, and output it by ni 6341. But i don't how to achieve it, could you help me?

답변 (1개)

Shaunak
Shaunak 2025년 6월 11일
It is my understanding that you want to generate a signal in Simulink and output it using an NI PCIe-6341 data acquisition (DAQ) device.
To achieve this, you need to use the Data Acquisition Toolbox from MathWorks and the appropriate “NI-DAQmx Support Package” in Simulink. Here's how you can do it:
  • Use signal generator blocks (like Sine Wave, Step, or Signal Builder) in Simulink to create your desired waveform.
  • Install the NI-DAQmx driver and the NI DAQ Support Package for Simulink (available from the Add-On Explorer).
  • In your Simulink model, add the block: Analog Output (Simulink Support Package for NI DAQ Devices).
  • Configure the block by selecting NI PCIe-6341 and choose the analog output channel.
  • Set the sample rate, signal amplitude, and timing to match your hardware requirements.
For further reference on how to send signals from Simulink to an NI device, you may visit the following link:
For more information on supported hardware and integration with NI DAQ in Simulink, refer to this documentation from MathWorks linked below:
Hope this helps!

카테고리

Help CenterFile Exchange에서 Simulink에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by