Communication with motor control using RS-232

I need to use labview to communication with a stepper motor drive using the serial port RS-232. Could someone please get me started I'm not sure if a should use VISA or instrument I/O. And if I use one of those, how would I set it up?

Hi Phil,
Outside of LabView, how do you communicate with or control the motor drive?  If you are able to use software like HyperTerminal or Procomm, then using the VISA serial communication tools will be the simple way of implementing your solution.
Here are some links which may provide clues on how to proceed.  You can also do a search on VISA Serial communication.
Happy wiring!!
JLV
LINKS:
Link 1: Although this one talks about an error, it does provide instructions on how to setup the VISA session:
http://forums.ni.com/ni/board/message?board.id=170&message.id=99660&query.id=0#M99660
Link 2: Here are some examples: (good starting point):
http://forums.ni.com/ni/board/message?board.id=170&message.id=65873&query.id=0#M65873
Link 3: more info:
http://forums.ni.com/ni/board/message?board.id=170&message.id=86971&query.id=0#M86971

Similar Messages

  • Dc motor control using myDAQ

    Hi,
    I'm building a DC motor control using myDAQ i have run into a couple of problem with the STOP button and the Max en Min speed. For some reason the waveform chart goes crazy i'm going to attach my  the VI file. 
    Project description:
    -An engine-ON-engine-OFF button
    -A control for faster / slower
    -A switch for left / right
    -A button once maximum speed (100)
    -A button once minimum speed (10)
    -An indicator of the instantaneous speed (0 - stop, 100 maximum)
    -An indicator for the direction
    Could anybody tell me why it happens and how to solve the problem?
    Thank you very much!
    Best,
    Istrael
    Solved!
    Go to Solution.
    Attachments:
    pulsgenerate Folder.zip ‏30 KB

    Hi iounathing i appreciate the reply it works better now i have fixed the start button issue and the crazy waveform chart.
    I think i'm missing something after falling edge and rising edge (if statement?) because when i turn the speedmeter to "0" or "100" the waveform chart keep sending low an high pulse. I wan't a high steady pulse by "100" and low steady pulse by "0" and in between low / high pulse.
    Regards
    Sorry for my bad english i'm from Aruba.
    Attachments:
    pulsgenerate Folder.zip ‏60 KB

  • How can I work lsmw with table control using mm01 appl?

    Hi
    How can I work lsmw with table control using mm01 appl?
    Is it difefrent the way we handle table control in BDC?
    Thank You

    Hi
    How can I work lsmw with table control using mm01 appl?
    Is it difefrent the way we handle table control in BDC?
    Thank You

  • I'm working on DC Motor control using DAQ. There is sufficient voltage output from DAQ but not current. What should i do so as to drive the motor

    I'm working on DC Motor control using DAQ. There is sufficient voltage output from DAQ but not current. What should i do so as to drive the motor. Could you suggest me appropriate driver IC using which this problem can be solved.
    Saravanan.T

    You really should use a DC motor controller to control a DC motor, look at the 754410 IC for a good example. You should be able to interface these to most DAQ devices.
    Alan

  • A/C three Phase motor control using 1/4 bridge Load Cell output and a USB 9172 Daq

    NI Assistant,
    I am tasked with setting up a Motion Control using two each OMEGA LC712-100K, -50K and -10K load cells to monitor the cable tension on six A/C motor driven winches. I also need to Monitor and calculate a Moment as well as the load slope for Load verses Time.
    I have zero time to develop and I have searched your databases for existing Motor Controls to modify.
    Should I use Case Structures and then place them in a while loop?
    I setup a drawing in Word to visually define the task.
    Signed,
    Patrick Murphy
    Attachments:
    Layout for Testing Spars.docx ‏15 KB

    Hi Patrick,
    The reason why the Motion Control examples will not work for you is beacuse they are meant to be used with the NI Motion boards. Since you are using DAQ boards, the examples are probably not going to be able to help you too much. However, there is one example on the community that might be a place for you to start. 
    pmurphy wrote:  Should I use Case Structures and then place them in a while loop? 
    What exactly do you mean by this? What do you want in the case structure or while loop?

  • FPGA programming for motor control using free downloadable IP cores for PWM and Quadrature encoder interfacing

    Hi,
    I have a cRIO-9014 with a NI9505 DC brushed servo drive module, and I would like to program the FPGA for PWM and Quadrature encoder interfacing using the intellectual property IP functions mentioned in the "CompactRIO Motor Control Basics Tutorial":
    Quadrature Encoder dX Method (FPGA, Use in SCTL).vi
    Pulse Width Modulation (FPGA, Use in SCTL).vi
    I made a search at ni.com/ipnet but I couldn't find them.
    Where can I find free downloadable IP cores for PWM and encoder blocks to include them in my FPGA interface program?
    Thanking you in advance,
    Manuel
    Solved!
    Go to Solution.

    Found by myself (google search!) at:
    https://lumen.ni.com/nicif/us/codepowelecguide/content.xhtml

  • CRIO motor control using AMC Drive

    Hi
    I am trying to setup a simple DC motor control system with cRIO-9081, NI 9401 and AMC PWM servo drive 12A8.  Can someone please tell me if this AMC drive is compatible with my other NI products?  Do I need anything else to setup a simple closed loop speed control for a small DC motor?  Any advice or example is very much appreciated.
    Thanks

    Hi SunnyX,
    It seems like your servo drive is expecting an input of +/-10V analog.  Are you able to confirm this in the device manual?  If that is correct, you will not be able to generate the necessary signal with the 9401.  You will need another module that you can program to output this signal such as the 9263.  
    You could also consider using the modules designed specifically for motion control and the SoftMotion Module to simplify the motion control programming.  Please let me know if you have any additional questions or comments!  Thanks.
    Regards,
    Kira T

  • Can I create a PDF with form controls using JAVA?

    I have a web site running on linux (Ubuntu). I'm programming in Java. Presently I use open office to create PDFs with form controls (checkboxes, lists and text fields). I'd like to be able to create in my program (Java) with form controls. JasperReports is not good because I don't see a way to create form controls. Help!!!

    I am not sure what this has to do with the Acrobat SDK, as we don't have a version of SDK for Linux (or Java).

  • Brushless DC motor control using NI PCI 6251

    am doing my project Speed control of a sensored Brushless DC motor. am using NI pCI 6251 daq. now my motor is running.but i dont know how to calculate the speed. in BLDC motor, hall sensor is attached. can you send me the sample program for calculating the speed and to give as a feedbackk

    Will you please sent me VI model of BLDC ?
    my mail id: [email protected]

  • X-y table with motor control

    Hello all,
    Has anyone come across a decent off the shelf x-y table that can be
    position controlled using labview ?
    It does not need to be extremely precise, I would just like to be able
    to move different quadrants of a circuit board into position for
    viewing with a CCD. I cannot currently get the entire board in my FOV
    with any reasonable resolution so would like to be able to break up
    the board into segments.
    Thanks for any suggestions.
    Have a great weekend.
    Rick B.

    Rick,
    You can check our Motion Control 3rd Party Resources to see if any of our Partners do have a XY stage or table to fit your needs.
    Good luck!
    Nestor.
    Nestor
    National Instruments

  • Commands to FTDI virtual COM port via NI VISA interfere with communication with FTDI chip using D2XX drivers

    Hello!  
    I am trying to communicate with a DLP Design module DLP-USB1232H which uses an FTDI chip.  My program uses the D2XX drivers.  It works, but...
    In another program that runs at the same time, I'm communicating with another instrument via a virtual COM port (VCP) that uses an FTDI UART.  In this program, I use the VISA Serial Port functions.  It works, too, but...
    The first program has the capability of listing all the FTDI devices in the system prior to choosing the right one to communicate with.  When the VCP is plugged in, it lists it (FT232R USB UART) along with the DLP-USB1232H and communication with the latter device works.   But as soon as the second program sends a command through the VCP, the first program no longer "sees" any FTDI device.  It stops working.
    I have tried 2 different FTDI VCPs; one a standalone cable and the other built in to the instrument.
    I’m using Windows 7 32-bit.  My programs are both LabVIEW 8.5 executables. 
    Is VISA "taking over" the channel to the DLP-USB1232H?  Does someone who understands NI's implementation of VISA have any ideas on why VISA is doing this?  Or if something else is going on?
    I'm also interested in workaround ideas.  I've tried a "Prolific" VCP, but most drivers don't work and the one that doesn't give an error in Device Manager doesn't communicate with the instrument.  
    Cheers
    Halden
    Solved!
    Go to Solution.

    Halden,
    It really sounds like you have a resource conflict. That occurs when two programs or parts of programs try to use the same device or port at the same time.  Your Get Device Function probably tries to open a session with each port (as you increment the index). When it hits a port which is being used by the other driver, it cannot open the session and stops working? Have you examined the errors returned by each program? The VISA drivers will return an error when the port is in use.  I do not know about your program or drivers, but I would expect some kind of error.  Automatic error handling in LabVIEW will not catch errors from a driver if it does not translate them to LV error clusters. So do not count on automatic error handling, if you use it, to display all possible errors.
    Lynn

  • Help me in my mini project about dc motor control using labview

    hi,
       actually the idea is that  using pid controller in labview.. controlling motor.i.e giving a setpoint to pid... n checking whether motor is running accordinly using a sensor.. i.e feedback n/w...  i dnt knw hw to proceed.. can u help me with the circuit diagram

    Hi swats,
    "i dnt knw hw to proceed.."
    I suppose you mean "I don't know how to proceed..", something is wrong with your "o" key
    I would suggest going to the library of your school or university and get a book on basics of electric devices. There you will find a lot of hints on how to measure speed of motors and how they work. In fact your question covers several seminar hours in "Electrical Measurements" course at university...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • EMG based DC motor control using labview

    I have a project where i need to use my EMG data to control DC motor
    using labview.I've already got the EMG signal by using ADinstrument and
    import the signal to labview. The problem is i don't know how to connect
    the signal with DC motor. This motor will start to move when it detect
    the signal exceed certain value and stop when it less that value. I'm
    still new with labview and i'm using labview 8.0. Can someone help
    me?thanx

    Please check out our Biomedical User Group - there are similar project discussions going on there and links to the NI Biomedical Starter Kit - a free download for doing biomedical data acquisition, signal processing, and other tasks.
    Steve
    Visit the NI Biomedical User Group at:
    www.ni.com/biomedusers

  • Motor control using labview

    I'm new to Labview. I just installed a new labview system with analog output.
    What electrical component do I need so that I can power a decent size motor with labview output? The signal from Labview is only enough to power a tiny motor. Well, the only thing I know is to amplify its voltage using opamp, which doesn't do much since I need to increase its power.
    I don't have good electrical background, but I'm trying my best to learn.....
    Please help experts.

    MrCoolMan-
    This depends on several things.  I have a few questions about your application:
    1. What National Instruments Hardware are you using to control your motor?
    2. Are you using a Stepper or Servo Motor?
    3. How much power does your motor require?
    4. How are you planning on controlling your system?
    5. Does your motor require an analog or digital signal?
    The answers to these questions will be a good way to get started with your application.
    Regards,
    Mike S
    NI AE

  • Motor control using pwm,pid

    Hi all,
    Can anyone help with this please.
    I have a counting circuit from a hall effect sensor and am controlling a motor using a PWM.I am controlling the speed of the motor varying the duty cycle and the motor is wired via solid state relay.these run fine.
    What i am trying to do now is connect through a pid as to control the speed of the motor.
    My understaning is that the set point is from the duty cycle, the process variable is the feed back from the sensor (rev per min) and the output is back to the motor to increase or decrease speed.
    Is this the correct understanding? and if so can you help with setting up.
    Attached is my vi.
    Regards Anthony
    Attachments:
    rev per min 5.vi ‏117 KB

    Continued from here: http://forums.ni.com/t5/LabVIEW/Error-200290-when-running-a-pulse-count-and-pwm-program-together/m-p...
    Please look at what I wrote there. You need only one loop. The PID and Counter Write functions should all be inside that same loop, along with the measurement. The PID will do nothing useful outside a loop.

Maybe you are looking for

  • I downloaded Adobe Cloud setup but it wont open up anything

    SO I got myself a new PC lenova laptop and downloaded Cloud. It worked out well and was able to get photoshop (trial), but something happened to my laptop that forced me to system restore. I redownloaded and get Adobe Cloud setup, but when I double c

  • IChat video keeps closing down the program

    Hey, I just bought my new Macbook air yesterday and after resolving connection problems I am now having constant problems with the video on ichat. Four times in a row it has closed down after a few minutes of video, here is the report code Process: i

  • Creating .pdfs

    I am having trouble creating pdfs. I am running the latest flavour of Leopard, Office Mac 2008, together with Acrobat Professional 8.1.2. If I try and create a pdf from within Acrobat using the Create command I get an error telling me that the docume

  • How to change one of the fields in the infoset

    Hi, I created a query and infoset using sq01,sq02 transaction i have Cost Center field in the query that is pointing to P0001-KOSTL. when i execute the query by giving the cost center criteria ,query is getting executed on the Local Cost Center .But

  • HP system restore and factory reset not completing

    Hello. 1:  Person tried a system restore to fix a user profile problem but once booted the OS changed the  user profile to "temporary" every time, checked the original profile but only the avatar was left , all other personal info was gone.       Wor