05-27-2008 09:02 PM
hi,
i've got one equation of voltage regulation. so i did create program for that in matlab.and want to use it in formula node in labview.but i don't know how to do that.can someone please help me for that?
regards
bhavin
05-28-2008 08:38 AM - edited 05-28-2008 08:39 AM
If you have already written Matlab code it is easier to import it straight into a Mathscript node. If you use a Formula node you need to translate m- syntax to c-syntax which may take longer. Note that the Mathscript node
may not support all the functions you used in Matlab so you may need to replace them with native LabVIEW functions. If you want to add inputs/outputs in your program you can just right-click on the border of the node to do that.
These structures can be on the block diagram under Programming>> Structures.
KostasB
NI UK Applications Engineering
06-03-2008 02:21 AM
06-03-2008 01:15 PM
Hello,
You might also want to consider the MATLAB Script Node. You can use your MATLAB code and the MATLAB engine from LabVIEW.
MATLAB® is a registered trademark of The MathWorks, Inc.