LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Where Do I Start?

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

0 Kudos
Message 1 of 8
(2,694 Views)

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

0 Kudos
Message 2 of 8
(2,675 Views)

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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 8
(2,636 Views)

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

0 Kudos
Message 4 of 8
(2,608 Views)

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.

0 Kudos
Message 5 of 8
(2,601 Views)

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


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 6 of 8
(2,594 Views)

Thanks, this got me to a starting point. Now  to HACK on it and learn how it works!

 

Bob Macklin

Seattle, Wa

0 Kudos
Message 7 of 8
(2,582 Views)

@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

 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 8 of 8
(2,554 Views)