02-11-2013 12:37 PM
I am working on a project that needs to send data from Labview to matlab. Labview is measuring parameters from sensors using a DAQ. These values are sent to Matlab. Matlab treates the data and sends other values back to Labview. These values are adjustments to some devices connected to Labview. This system aims at keeping a constant biological environment. How would I make Matlab and Labview interface?
Thanks in advance
Josh
02-11-2013 03:06 PM - edited 02-11-2013 03:09 PM
We are attempting to build a closed loop Bioreactor. This bioreactor will have pressure, flow rate, load cell, linear actuator, and measuring a few other things. We need to receive this data through labview. Then we have ideal values we are trying to reach. So then Labview sends the data it received to Matlab where it computes forumals using the data collected. So if the value we calculate is too high then we need Matlab to tell Labview to decrease flow rate or vice versa. How do we interface Labview to Matlab and then Matlab to Labview?
02-11-2013 03:06 PM
We are attempting to build a closed loop Bioreactor. This bioreactor will have pressure, flow rate, load cell, linear actuator, and measuring a few other things. We need to receive this data through labview. Then we have ideal values we are trying to reach. So then Labview sends the data it received to Matlab where it computes forumals using the data collected. So if the value we calculate is too high then we need Matlab to tell Labview to decrease flow rate or vice versa. How do we interface Labview to Matlab and then Matlab to Labview?
02-11-2013
03:11 PM
- last edited on
04-26-2025
09:24 PM
by
Content Cleaner
What type of NI hardware are you using? Is this Real-time or just running on a desktop?
Couple of ideas:
Brad
02-11-2013 03:15 PM
Sounds like you don't need real-time. Take a look at MATLAB's Instrument toolbox. I believe LV ships by default with everything you need to setup a TCP/IP socket connection between the two of them.
(BTW - the Simulation Ineterface toolkit I linked needs MATLAB to have the Real-Time workshop and it's $$$)
02-11-2013 10:09 PM
Couple of options I forgot:
-If it is just "formulas" you are looking for and you are not calling a lot of built-in matlab functions or helper code, make sure you look at the Matlab Script Node in Labview.
-You can still use matlab compiler or the realtime workshop to compile your MATLAB code to a .dll that can be called by LV.
02-13-2013 09:54 AM
Hey I took screen shots of all the labview systems I have and Matlab 2012 that I am running to let you know what we are running.