10-06-2010 12:06 PM
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).
10-07-2010 10:14 AM
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
10-07-2010 12:19 PM - edited 10-07-2010 12:20 PM
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.
10-07-2010
02:05 PM
- last edited on
01-24-2025
10:49 AM
by
Content Cleaner
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:
Cheers,
Patrick Corcoran
Application Engineering Specialist | Control
National Instruments