Converting LabView code to Matlab

  • Thread starter Thread starter Jopi
  • Start date Start date
  • Tags Tags
    Code Matlab
Click For Summary
SUMMARY

The discussion focuses on converting a LabView program to a new measurement setup control program using MATLAB. The user intends to design the program from scratch rather than directly converting the code. Key tools mentioned include MATLAB's GUIDE for GUI development and the importance of establishing reliable communication with hardware before implementing the GUI. The conversation also highlights the possibility of integrating LabView functionality within MATLAB.

PREREQUISITES
  • Familiarity with MATLAB programming
  • Understanding of GUI development using MATLAB GUIDE
  • Knowledge of data acquisition techniques
  • Basic concepts of instrument control and communication protocols
NEXT STEPS
  • Research MATLAB GUIDE for creating user interfaces
  • Explore MATLAB Instrument Control Toolbox for hardware communication
  • Learn about MATLAB callbacks for GUI functionality
  • Investigate methods for integrating LabView with MATLAB
USEFUL FOR

Engineers, software developers, and researchers involved in measurement systems who are transitioning from LabView to MATLAB for control and data acquisition tasks.

Jopi
Messages
11
Reaction score
0
Hi,
this is not actually a homework question, but as it has mostly to do with computer science, I thought this would be the appropriate place.
At work we have a measurement setup which is currently controlled by a LabView program. My task is to move the code from LabView to Matlab. I don't necessarily need/want to convert the code directly from LabView to Matlab, there are tools for that, but instead desing a new measurement setup control program using Matlab based on the old program in LabView.
I'm familiar with programming in Matlab, but I've never done any GUI and data acquisition stuff before. I was wondering what is the best way to do this in Matlab? For the GUI, I guess the best way is to use the GUIDE -editor, though I'm not sure if it is able to do everything that LabView does.
Instrument control I've not even begun to think about...
 
Physics news on Phys.org
In the future, you might want to ask questions like this in the Computer Science subforum (or better yet, Mathematical Software or Programming sub-sub-forums, but the distinctions get blurred there most of the time).

Regarding the meat and potatoes of your problem, you'll need to figure out how your hardware is controlled, and whether or not there's an abstracted way of dealing with it (i.e. a high-level DLL, or driver that accepts / outputs text, or some such). As I'm more of an EE than a computer science type, I'd suggest getting core functionality going (in terms of being able to achieve basic and reliable communications) through the control line first before making a GUI, but that's probably just me.

When I used Guide (back in MATLAB 6.5 or thereabouts), it just helped me create a (bare bones) layout; you still need to design the GUI functionality (what buttons / windows display what, and when) and write all your callbacks (stuff that happens when you click, press a button, instrument melts down, etc.)

To complicate matters, you can call LabView and LabView functionality from MATLAB, and vice-versa:
https://www.physicsforums.com/showthread.php?t=308217
 

Similar threads

Replies
6
Views
4K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 11 ·
Replies
11
Views
7K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
11K
  • · Replies 12 ·
Replies
12
Views
4K