From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

is there method to communicate between labview and matlab?

I am using Smart Camera NI 1762, is Lab view understand matlab code?

can I upload m file to labview?

Thanks,

Mahmoud

0 Kudos
Message 1 of 4
(8,677 Views)

Have you looked at MathScript?  It is built in to LabVIEW and uses very similar syntax:

http://www.ni.com/labview/mathscript/

Also see: http://www.ni.com/analysis/matlab.htm

-Karl

0 Kudos
Message 2 of 4
(2,629 Views)

Any updates to this?

Ideally I would like to import m files directly into LabVIEW. So we simply update the m file and the changes automatically propagate to LabVIEW.

The link above does not function.

0 Kudos
Message 3 of 4
(2,629 Views)

You have two options the Mathscript Node or the Matlab script node.

Mathscript requires that the mathscript module in LabVIEW be installed. Mathscript syntax is similar to that of Matlab. http://zone.ni.com/reference/en-XX/help/373123C-01/lvtextmathmain/labview_mathscript/

Matlab script node requires LabVIEW Full or Pro, as well as an installation of Matlab on the computer. It works by using the Matlab script server to execute the m-files directly in Matlab. http://zone.ni.com/reference/en-XX/help/371361J-01/gmath/matlab_script_node/

Both options will allow you to refer to m-files on disk that can be modified independent of the LabVIEW code.

0 Kudos
Message 4 of 4
(2,629 Views)