Borrar filtros
Borrar filtros

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

3 visualizaciones (últimos 30 días)
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 comentarios
Ayesha
Ayesha el 16 de En. de 2024
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

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Controller Creation en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by