LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to link the matlab script into the Labview

 

Hi. Sorry for disturbance.

 

I want to ask you about my problem. In this LabVIEW, i want to measure the parameter of s11 and s21.

So, the data that i got, i want to manipulate in Matlab script. I have done the coding in the block diagram. So, how to link with it?

 

This is the flow that i need:

1. Measure s11empty , s21empty , s11full and s21full

2. After finish the measurement, data that i got save in c:\Data\*******.dat automatically

3. Then, the data will be manipulated in Matlab script (as shown in block diagram)

4. Show the graph.

 

Please refer the attachment. 

 

Need your help.

Thank you. 

0 Kudos
Message 1 of 3
(2,418 Views)

If you right click on the border of the MATLAB script node you will see 'Add Input' and 'Add Output' options. Select one, give it a name, and then right click again to 'Choose Data Type'.

 

Bear in mind that because Matlab deals in Matrices that you may have to convert any array data you have to or from a matrix.

 

Atttached a really brief update of you script node which I don't know if works as don't have Matlab on the machine I'm currently working on, but should give you the general idea.

 

Hope that helps,

David Clark
CLA | CTA
IDEX Biometrics UK Ltd
Hampshire, England
0 Kudos
Message 2 of 3
(2,359 Views)

Thank for idea.

 

Unfortunately, my labview 2009 version 9.0 can't open the file. 

So, how? 

 

Thank you.

0 Kudos
Message 3 of 3
(2,342 Views)