Academic Hardware Products (myDAQ, myRIO)

cancel
Showing results for 
Search instead for 
Did you mean: 

MPC on myRIO

Hello!

 

I'm working on implementing robust predictive controllers and I'm trying to implement it on a myRIO system. For now I have the MPC.VI created and I don't have a clue how can I implement it on the myRIO system. I tried with the examples and in internet but I'm also lost. My MPC.VI where has to be implemented in the tree project? At the Chassis on the FPGA Target or at the RT Main.VI?

 

Regards,

 

Carlos

0 Kudos
Message 1 of 5
(5,411 Views)

Carlos,

 

You should put it at RT Main.VI  (Not under FPGA) But if you have any special toolkits, then you should ensure those are deployed properly.

 

Thanks,

Ajay.

--
Ajay MV


Message 2 of 5
(5,390 Views)

Hi,

forst of all, where do you want to run the MPC algorithm?

It is not the same to run it on FPGA or Real-Time target.

 

How did you implement it? floarintg-foint/fixed-point?

 

cheers,

ale

 

-----------

www.ped-board.com

Message 3 of 5
(5,361 Views)

Thanks for the response!

 

I want to implement it on the RT Target, I think I've done it, but I'm not sure about what you asked about the implementation. Float-point or fixed point? What is that about? Sorry, can you explain me?

 

Another question, do you know if the implementation can work witht the MATHSCRIPT RT module? I can design the controller on MATLAB and implement it on the MyRIO with MATHSCRIPT. I'm not sure about the efficiency on this way.

 

Thanks in advance,

regards,

 

Carlos

0 Kudos
Message 4 of 5
(5,358 Views)

Carlos,

 

Yes, NI provides MathScrip for RT.  Check out here http://www.ni.com/labview/mathscript/ ...  You could download it's evaluation software here (http://ftp.ni.com/evaluation/labview/ekit/other/downloader/2015MSRT-Win_downloader.exe) and check out if that works for you..

 

With this , you have to add the mathscript module to your RT target from NI MAX, and deploy your code with mathscript.  You can user your .m files from Matlab or Octave.

 

Thanks,

Ajay.

--
Ajay MV


0 Kudos
Message 5 of 5
(5,336 Views)