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 ?
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 firstname.lastname@example.org
Absolutely and perfectly possible. Wire inputs, create outputs, if data should change potentially during running the script, create multiple scripts instead, introduce breakpoints, or run subscripts in a loop and check data on every iteration, updating selectively.
By the way, the Matlab script node, and the MathScript node are two different things, look it up.
Mr product manager above does not have a clue of what he's talking about.