Error in Port Widths or dimensions for NI USB 6363 when connected to simulink.

2 次查看(过去 30 天)
Hi,
I have S-Function for MPC controller and I want to deploy it to the hardware in real time using NI DAQ USB 6363. My S-Functions run well in simulation when I connect it to plant model and the output of plant model at "mo" of s function/mpc controller. But after sucessful simulations I want to send output of controller to plant using Analog Output channel of daq board and also to received sensor signal at "mo" i connected analog input channel of usb 6363.
For Information:
My State Matrixes used in MPC controlle are A is 4x4, B = 4x1, C = 1x4
But when I run simulation in real time using stop time "inf" it gives me following error .
  2 个评论
Ayesha
Ayesha 2024-1-16
First run model.m file
then open MPCSolver.slx file no need to panic after looking at my circuit,
then type mpcDesigner in matlab command window
after this an app will open please go to open session and uplaod mpc_01.mat file
then click on export
once its done then open MPC_NI_Devices.slx file
you will find following
So I need your help to solve above mentioned issue, if possible
For S-Function file I made a seperate folder SFunctionTarget you can access s-function file from there which I posted in my main question. "MPC_S_Function"
all these files are made in 2021a

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Data Acquisition Toolbox Supported Hardware 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by