02-23-2016 02:49 AM
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
02-25-2016 03:44 AM
02-27-2016 11:23 AM
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
-----------
02-27-2016 11:30 AM
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
02-28-2016 03:53 PM - last edited on 02-26-2024 11:14 AM by migration-bot
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.