LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview Matlab Exchange Data

Hi,

 

I am trying to do data exchange between Labview and Matlab. Matlab will send data to Labview, and Labview will send back the processed data to matlab. The data sent and received at one time are only 2 values. Is there any simple way which allow me to do this? Thank you in advanced.

0 Kudos
Message 1 of 15
(6,571 Views)

Hi, the simplest way to do it (assuming you running Windows) is to use a Matlab script.

 

_________________________________________________________________________________________________
LV 8.2 at Windows & Linux


0 Kudos
Message 2 of 15
(6,561 Views)

If Matlab support TCP/IP, that could be another option.

0 Kudos
Message 3 of 15
(6,549 Views)

 


@mishklyar wrote:

Hi, the simplest way to do it (assuming you running Windows) is to use a Matlab script.

 


How does it work? Are you assuming both matlab and labview program running on the same computer?

 

0 Kudos
Message 4 of 15
(6,538 Views)

 


@KateB wrote:

If Matlab support TCP/IP, that could be another option.


I am not sure about that. if so, how can that be done?

 

0 Kudos
Message 5 of 15
(6,531 Views)

Another idea: [link removed] 

0 Kudos
Message 6 of 15
(6,529 Views)

 


 

How does it work? Are you assuming both matlab and labview program running on the same computer?

 


 

There is a "MATLAB script" you can put on block diagram... Just search the help.

  Yes, it assumes Matlab and Labview on the same machine.

Otherwise, there many more creative solutions...

What exactly do you need? What tools are you more familiar? 

 

Michael.

_________________________________________________________________________________________________
LV 8.2 at Windows & Linux


0 Kudos
Message 7 of 15
(6,504 Views)

Hi pippo2tan!

 

Are your values only on MATLAB? If you're using Simulink you could use NI SIT (https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000kIlMSAU&l=en-US).

In any case, you could easily map your  "workspace" variables  into Simulinks signals.

 

(On a side note, SIT uses an automatic generated UDP connection between LV and SL to exchange data).

 

Cheers.

 

Gaspar

0 Kudos
Message 8 of 15
(6,493 Views)

 


@mishklyar wrote:

 


 

How does it work? Are you assuming both matlab and labview program running on the same computer?

 


 

There is a "MATLAB script" you can put on block diagram... Just search the help.

  Yes, it assumes Matlab and Labview on the same machine.

Otherwise, there many more creative solutions...

What exactly do you need? What tools are you more familiar? 

 

Michael.


thanks Micheal.alright.. actually, i have labview running on one computer which takes care of the data acquisition and estimation vi. the result of this vi will need to be sent to another computer which running matlab program in simulink. I try to avoid using the matlab script in labview because the matlab program is very complicated. therefore, i am looking for some kind of communication link between labview and simulink. I tried the serial communication and have no issue with using VISA. but in matlab i seemed to have problem. do you have any idea how to solve this issue? thanks.

 

0 Kudos
Message 9 of 15
(6,476 Views)

 


@gpollano wrote:

Hi pippo2tan!

 

Are your values only on MATLAB? If you're using Simulink you could use NI SIT (https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000kIlMSAU&l=en-US).

In any case, you could easily map your  "workspace" variables  into Simulinks signals.

 

(On a side note, SIT uses an automatic generated UDP connection between LV and SL to exchange data).

 

Cheers.

 

Gaspar


thank you. it seems that i have this toolkit. Did you use this toolkit before? how does it actually work? 

 

0 Kudos
Message 10 of 15
(6,473 Views)