LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass 1D array into matlab?

1 had 2 1-D array

array1 = 1D array signed 32-bit integer numeric
array2 = 1D array double-precision floating-point numeric

how do i pass this 2 arrays to matlab script??

help....as i'm very new to both labview and matlab.

thks,lyn
0 Kudos
Message 1 of 2
(3,767 Views)
LabVIEW has a Matlab Script Node (Programs >> Mathematics >> Formula) that you can use to interface between the two programs. To pass arrays into the script node do the following:
1. Right-click on the left edge and select "Add Input"
2. Give the input a variable name in the termainal that was created.
3. Right click on the terminal and select Choose Data Type >> Real Vector.

You can now wire the 1D array to this terminal. You enter your Matlab Commands as text inside the node and you can create outputs the same way to created inputs.
0 Kudos
Message 2 of 2
(3,767 Views)