Converting LabView code to Matlab

  • Thread starter Jopi
  • Start date
  • #1
14
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...
 

Answers and Replies

  • #2
MATLABdude
Science Advisor
1,655
4
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
 

Related Threads on Converting LabView code to Matlab

  • Last Post
Replies
1
Views
1K
Replies
2
Views
13K
  • Last Post
Replies
2
Views
2K
  • Last Post
Replies
14
Views
4K
Replies
1
Views
1K
  • Last Post
Replies
2
Views
901
  • Last Post
Replies
3
Views
1K
Replies
1
Views
4K
  • Last Post
Replies
0
Views
5K
  • Last Post
Replies
0
Views
4K
Top