LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TCP/IP communication with Matlab

Since LabVIEW unwisely depends on Microsoft only constructs to communicate with Matlab, has anybody succeeded in piping commands/data from a LabVIEW session running on a Mac / Linux to a Matlab session running on the same machine ? Use of MathScript is not an option since MathScript does not have all the toolboxes and more critically, does not offer a programmatic way of saving plots (the print command).

0 Kudos
Message 1 of 4
(3,883 Views)

While I am not closely familiar with the communication functions available in Matlab, would Datasockets offer a viable method for transferring data between the software sets? 

 

Fundamentally, when you evaluate the system you are working to implement I believe rhetorically we should review what functions Matlab offers LabVIEW does not? Does the system need live communication between the 2 environments, or is saving a data file compatible with both systems (binary, ASCII) a more effective method? Which program needs to host the UI for the system as both posses independent methods of saving plotted data. 

 

Have you explored the ActiveX automation options available for both LabVIEW and Matlab in the Mac environment? 

Patrick Corcoran
Application Engineering Specialist | Control
National Instruments

0 Kudos
Message 2 of 4
(3,856 Views)

Thanks for your response.

 

If I understand you correctly, datasockets (such as TCP/IP or UDP) could be a viable solution.

 

Matlab offers superior plotting capabilities (the ability to programmatically print the plots to files - this is a major advantage on MathScript for the most basic applications) as well as toolbox support (such as image manipulation). While the toolboxes are not needed for a majority of my applications, I need one solution that covers all my needs. My view is that using Matlab as the data analysis and plotting end is the most universal and robust solution.

 

Does Mac even have ActiveX ? Matlab on Mac uses X11, so I am a little unsure about what you are hinting at.

0 Kudos
Message 3 of 4
(3,849 Views)

Yes, Microsoft has provided COM tools for the MAC OS. This article provides a brief overview.

 

Also, LabVIEW has a number of tools for configuring and programmtically printing and saving plots. I do not believe it appropriate to discuss notions of platform superiority. I simply would like you and future forum readers to be aware of the tools available in LabVIEW for plotting tasks:

 

 

Customizing Graphs and Charts

 

 

Cheers, 

Patrick Corcoran
Application Engineering Specialist | Control
National Instruments

0 Kudos
Message 4 of 4
(3,836 Views)