Search code examples
matlablabview

Can a Matlab script node in Labview communicate during execution?


In Labview, can a Matlab script node (or a Mathscript node) in a block diagram communicate (that is, read inputs and update outputs) during its execution ?

Put another way, can such a script node communicate with other elements on the block diagram during its execution, without waiting for the script to terminate ?


Solution

  • I don't think that it is possible. I've never seen anyone be able to pass information from inside the MathScript node to the outside (a.k.a rest of the block diagram) world while it is executing. You can pass information from one MathScript node to another and from the node to the LabVIEW MathScript Window if you use globals. These globals are different than the LabVIEW global variable though.

    Grant Heimbach LabVIEW Product Manager grant.heimbach@ni.com