필터 지우기
필터 지우기

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

조회 수: 3 (최근 30일)
Ayesha
Ayesha 2024년 1월 16일
댓글: Ayesha 2024년 1월 16일
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에서 Controller Creation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by