Example Code

M-Drive Motor Driver Example

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Download All
Overview
M-Drive Motor Driver Example.

Description:
This VI is an example  for driving M-Drive, M-Force, and other IMS motors and controllers using LabVIEW, using an Object-Oriented approach.

Instructions:
To implement this example:
  1. Run VI
  2. Configure all the information in the SETUP tab. Insert the all the info and click Stup Main
  3. Configure communication setting and press Init Port
  4. Configure the motor setting and click Configure Motion.
  5. Configure the encoder setting and press Set Scale
  6. Switch to Run tab to proceed.

To execute this example:

  1. Install the required software.
  2. Open the VI and refer the Implement Steps


Requirements
Software
LabVIEW 2012 or compatible

Hardware
-

bd.png2017-11-03_10-05-22.jpg

**This document has been updated to meet the current required format for the NI Code Exchange.**

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
Castebert
Member
Member
on

Thanks for this code, well written. A little dificult for me in first approach (cause of object oriented approach). But it works good. Thank you.

gwiel
Member
Member
on

Hello Wesley,

is it possible to save your code in LabView 8.6 format and repost it? I think your code can be a great help for me!

Cheers,

Gero