09-14-2015 09:25 PM
I have a friend that wants to use LabVIEW to controll a stepper motor.
I have been looking for manuals on how to create control application module but I have had no luck.
We need to create an interface between the computer and the stepper motor conrtoller. I ASSUME that would be a USB port.
I have just not been able to find the basic instructions to create LabVIEW application module.
Can anyone steer me to the instuctions?
Bob Macklin
Seattle, Wa
09-14-2015 10:08 PM
Suppose someone asked you the same question, but substituted "C++" or "Java" for LabVIEW. Wouldn't you say "Take a class" or "Buy a book and study it" or "Find some tutorials and take them"? There are no "answers", only spending the time to learn and develop some skill with the language. Do a Web Search for LabVIEW Tutorials, or LabVIEW Beginner, or look for the tutorial lists that are frequently posted here in the Forums.
Bob Schor
09-15-2015 05:34 AM
bobmacklin wrote:
We need to create an interface between the computer and the stepper motor conrtoller. I ASSUME that would be a USB port.
First, you need to decide on a stepper motor controller and what interface you want it to have. Personally, I would look for something with a serial (RS-232) interface. Then you just use VISA to send your commands to the stepper motor through a serial port (most likely a USB-232 converter). There are a few examples in the example finder (Help->Find Examples) for serial communications.
09-15-2015 07:14 AM
My problem right now is learning to use LabVIEW to create a test module.
I am very familiar with the serial (COM:) interface. I have programmed several USB serial devices using VC++.
I need to learn to do it using LabVIEW. I have learned to create a project but I don't know how to opwn the Front Panel Editor.
Bob Macklin
Seattle, Wa
09-15-2015 07:24 AM
Great, hopefully your knowledge of other languages will help you get started. If you haven't seen already there are lots of free online tutorials for learning LabVIEW and some other NI tools. Checkout the links at the bottom.
https://decibel.ni.com/content/docs/DOC-40451
Now for your particular task if you are using a COM port to talk to a device, I usually start with a shipped exampled. Go to Help >> Find Examples. And search for Simple Serial. Here is an example that will open a COM port using a VISA resource, send a command, wait some amount of time, then read the response. Look at the block diagram to see how it opens the port using various settings, where it sends the *IDN?\n request, where it waits, and where it reads the response.
Real applications are usually more complicated then this, and hopefully use syncronous serial modes where it can find the end of the message for you based on a termination character. This is usually wrapped in a while loop that keeps executing until the user stops it somehow, usually by closing the window and using the event structure but that might be a bit advanced. Most new developers people just drop a button on the front panel to stop which is the more simple, but less scalable option.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
09-15-2015 07:29 AM
3 Hour Introduction
6 Hour Introduction
LabVEW Basics
Self Paced training for students
Self Paced training beginner to advanced, SSP Required
LabVIEW Wiki on Training
Learning NI
Getting Started with NI Products
09-15-2015 08:02 AM
Thanks, this got me to a starting point. Now to HACK on it and learn how it works!
Bob Macklin
Seattle, Wa
09-15-2015 11:04 AM
@bobmacklin wrote:
My problem right now is learning to use LabVIEW to create a test module.
I am very familiar with the serial (COM:) interface. I have programmed several USB serial devices using VC++.
I need to learn to do it using LabVIEW. I have learned to create a project but I don't know how to opwn the Front Panel Editor.
Bob Macklin
Seattle, Wa
LabVIEW Core 1 | 10/26/2015 08:30 a.m. PDT to 10/28/2015 05:00 p.m. PDT |
TLG Learning 109460 12822 SE 32nd Street #200 Bellevue, WA 98005 |