Motion control with joystich

hi every one I'm tring to contol the nxt using joystich i'm doing a simple program but i have aproblem
with the first vi the nxt response for x- axis values with out y- axis values the problem is that it the 2 cases are not working in parallel!!
how ca i use only one case structer
i have tried the vi avilable in ni about the joystick motion control but i coldn't find a solution !!
the second is working but the nxt movement is not same as the joy stick position
(my lab view version is 8.2)
please any help!!
Attachments:
joy_first.vi ‏56 KB
joy_2.vi ‏42 KB

Hi Mar-Q,
i think the direction results from the direction you press the joystick key, and the power depend on how strong you press the key (if it is possible), if not you can measure the time how long the key is already pressed and depending on that you calcualte the power.
Mike

Similar Messages

  • Simple straight line motion control with brushless motor and encoder/mi​croswitch

    I want to go build a motion control system/program using labview. I have a brushless motor and a controller and a National instrument DAC (NI USB-6009). This is how my system looks like: receive an input signal 4-20mA, this should be converted to 0-5V for the controller for speed, controller should move motor till it hits micro switch. The micro switch/encoder should generate a signal (5V) back to shut the controller. I want to record the position of the motor in labview. How do I do this? How do I set the system up? Thank you in advance

    Controller from anaheimautomation: MDC151-050301
    Motor:BLWSG234D-36V-4000-R3     
    Controller and motor go together.
    The input signal for the system will be 4-20mA. Using this signal I will correlate it to a specific voltage which will drive the speed of the motor. This will displace the lead screw linearly. I will have a microswitch that will be triggered by screw and will relay a signal to shut the motor. I want find a way to record the position of the shaft/leadscrew at that specific point. I want to identify a home position, halfway position and full length travel position. I will use 3 swiches or 1 switch in three positions to identify all these points.
    My end result should be whwn I turn on the system or start the program It should detect whether it is at the home position, if not travel to home then respond accordigly given an input signal(4-20mA).
    How will I program such on labview...finding all the right icons to record the data is such a mess for me since i'm a beginner.
    Thanks

  • Replacing a Traditional Motion Control Card with a Small PC with Softmotion

    Hi,
    I'm totally new to Softmotion. So my questions might be very naive.
    Anyway, we are currently using a Deltatau motion controller with three motor drives. The drives are all linear type and the motion controller provides the commutation. The motion controller is kind of expensive, a few $k. So I'm thinking, if it is possible to use a small embedded PC for a few $$$ and load it with the Softmotion software and control the drives.
    So a few questions:
    1) Can the Softmotion perform decoding if I connect the A/B encoder signal to the digital I/O of the embedded PC?
    2) Can the Softmotion perform commutation and output the A/B signals with DAC?
    3) I assume connecting the limit switches to the I/O should be no problem for the Softmotion to pickup.
    4) What is the cost of the Softmotion per copy?
    Anyway, those are my questions today. Is there anybody who might have done it this wya before?
    Thanks,
    Jay

    Hi Jay,
    Take a look at this tutorial for acquiring a basic knowledge of what the software can do, but more important, what hardware setup you need to do this tasks.
    There are several approaches (CompactRIO, PCI, PXI) but fundamentally NI handles 3 types of signals (CCW, CW which are Direction & step. Plus a drive enable) that we use for controlling motor drives. If your drive accepts these signals we could say you could potentially use NI products to interface with it.
    I encourage you to talk to one of our local sales engineers for more information.
    Alejandro | Academic Program Engineer | National Instruments

  • Motion control: PXI 7350 controller and UMI 7774 to interface with third-party driver UDK5114NW2

    Dear community,
    This is about Motion control in Labview: I try to control a step motor by using a PXI 7350 controller and UMI 7774 to interface with  third-party driver UDK5114NW2. The problem is 5 Disable LEDS on UMI 7774 board always lit even when I check "enable" on "Motion I/O setting" in configuration of PXI 7350 motion controller. Furthermore, when I start to control step motor, it is not working and I found disable LED on UMI board still lit. I don't know how to solve this problem. Can someone help me to figure out? Thank you in advance!
    Hau Nguyen.

    Dear Community,
    I said wrong, 4 disable LEDS on UMI 7774 Board instead of 5 as my previous post. Why nobody help me to solve this problem. I can not turn off disable LEDs on UMI 7774 Board so I can not start the strp motor. Please help me!
    Hau Nguyen. 

  • Is LabView good at precise motion control for things like running an assembly line with lots of cars moving about?

    Is LabView good at precise motion control for things like running an
    assembly line with lots of cars moving about? Precise speed and
    acceleration control? Safety interlocks?
    Thanks for any help you can offer!
    Sent via Deja.com http://www.deja.com/
    Before you buy.

    If you are a long time Nokia/Symbian fan then you will Know full well that Nokia phones ALWAYS improve with software updates, Symbian will not be abandoned and will not be replaced by WP7, it will continue to evolve and improve, as will the handsets. Anyone who desires or wants a different OS should try one, because it's a free world, but really, the 'perfect' OS doesn't exist, and Symbian suits me for now and I will rely on Nokia to keep it up to date, and reliable.
    If I have helped at all, a click on the White Star is always appreciated :
    you can also help others by marking 'accept as solution' 

  • Is it possible to condition a load cell signal with a 1520 SCXI and then use it as the primary analog feedback for a 735X motion control board?

    My system
    PXI 1052 chassis
    PXI 8196 RT controller
    Flexmotion 7356 motion controller
    Flexmotion 7354 motion controller
    6259 M series DAQ
    1520 SCXI
    1520 SCXI
    1314 SCXI frount mounting terminal block
    DSM strain gage load cells
    Exlar SR Brushless PM motors
    Kollmorgen servo star CD series 5 drives
    My objective:
    I want to measure the force on the load cells with the 1520 SCXI (i.e. excite the load cell then amplify and condition its output) then I want to use this analog (force) signal as the primary feedback for my motion control system (7356 and 7354 motion controller connected to my drives and motors).
    The problem:
    The motion controller boards (7356 and 7354) can be configured for force feedback control via analog feedback from a load cell.  However the boards implicitly expect the load cell signal to be amplified and conditioned with and external signal conditioner rather then using an NI SCXI module.  Currently I’m am reading the SCXI signals via the 6259 M seriers DAQ and consequentially have no way to route the signal into the 735X boards for force feedback control.  I can use softmotion to control the motors but then I loose the fast PID update rates possible with the 735X boards.
    The question:
    Is it possible to condition a load cell signal with a 1520 SCXI and then use it as the primary analog feedback for a 735X motion control board? 
    Thanks
    Patrick Aubin
    Ph.D Candidate
    University of Washington &
    VA MedicalCenter of Excellence for
    Limb Loss Prevention and Prosthetic Engineering  

    Hi GG,
    Thank you for your feedback.
    >create your own external circuitry to amplify the signal.>
    True a few op-amps could amplify and filter the signal externally but the performance of such an amateur built system will never match the accuracy and functionality of the 1520 SCXI.  That’s why we spent the $2500 for the professional version.
    >One thing that you could do is to use a UMI with your motion controller and then wire your signal from your SCXI to the UMI.>
    As I understand it the UMI is basically a break out connectivity interface for third party drives.  After conditioning and amplifying the analog force signal with the SCXI module the analog signal isn’t available to wire into a UMI.  To my knowledge the conditioned signal of the SCXI resides only in the PXI backplane (i.e. there is no physical access to the conditioned analog signal).  Can you explain how the UMI could be help here.
    Again thanks for your input GG.
    Patrick

  • Wanted Computer Controled Electronic Cards with Software for Motion Control

    Hi everybody
    Already worked on designing a cnc table to cut sheet materials.
    But we don't know enough for electronics. We think a system which is
    software driven from pc. So, we look for Wanted Computer Controled
    Electronic Cards with Software for Motion Control but we don't know more
    which motors, electronic cards and control panel we have to use.
    Please help me. Thanks.
    Atilla KESKEKLER
    Ahmet Bayman Cad. No 10/4 Otosanayi 4.Levent 80650 Istanbul Turkiye
    Tel: + 90 212 270 74 00 Fax: + 90 212 270 75 89
    www.aareklam.com.tr [email protected]

    Dear Atilla,
    You should contact AutomationSolutions (www.AutomationSolutions.com) to receive help with designing your system. They can spec your motors and help you picking the correct controllers and drivers from National Instruments to control the motors that you want to use. Please let me know if you need more information about the capabilities of Motion Control systems from National Instruments.
    Thank You,
    Morten Jensen
    National Instruments

  • Linear encoder (newall SGH) controlled with motion cotnroll UMI7764 and LabView

    Hi,
    I would like to intsall my linear encoder (SGH PC) onto the motion controll box (UMI7764). After that I have to use LabView to controll the encoder. It should give me the position of a piston and also the limits for this piston. So at first I just want to controll the position of the piston and then give the limits or controll the piston with it.
    My problem is I have no idea how? How can I get my signals out of the encoder into my LabView programm? I got the key for the pins but still unclear how to get my signals and what to do with them.
    Sorry, I am not used to use LabView. 
    Thanx

    Oh, ist mein Englisch so schlecht
    Dann formuliere ich meine Aufgabe einfach noch mal auf Deutsch um Missverstaendnisse auszuloeschen.
    Meine Aufgabe ist es einen Linear Encoder (SGH PC) an einen Piston (wie heisst das auf Deustch?) anzubringen und anzusteuern. Zunaechst soll nur die Position des Piston damit bestimmt werden, danach aber auch Vorgaben gesetzt werden. Heisst, ich gebe eine Routine vor und der Piston macht das dann hoffentlich auch.
    Um den Encoder ansteuern und auslesen zu koennen stehen mir eine Motion Controll Card (UMI 7764) und eine PCI 7324, sowie LabView 8.6.
    Zur Zeit sind wir noch mit der Installation des Encoders beschaeftigt, doch bald werd ich auch programmtechnisch handlegen muessen. Leider hab ich noch nie mit einer PCI oder all dem Anderem gearbeitet und kenne mich daher nicht damit aus. 
    Fang ich also mit einer Grundlegenden Frage an: Hat LabView ein VI was es mir ermoeglicht die benoetigten Kanaele aus dem PCI auslesen zu lassen und wieder zu schliessen? Dann waere die Positionsbestimmung ja hoffentlich nciht so kompliziert.

  • Problem with data acquisition and motion control

    I have PCI-6024E and PCI-7342 cards on a single PC. Servo motion control works fine when it goes alone or is accompanied by one point data acquisition in a while loop, but when I start data acquisition with specified sample rate, the motor moves with breaks.
    Does anybody know what is the problem? Is it possible to fix it?

    How are you performing your motion? Is it a position move or a velocity move? How are your triggering the data acquisition? Using breakpoints on the 7342? If so, are you using single breakpoints or modulo? How are you configuring the data acquisition rate? Are you triggering just the start to the acquisition and the unsing the daq scan clock or are you using the motion controller to send the scan clock itself?

  • Yoga 2 Pro - Motion Control

    If this has been answered, or solution(s) offered, I'll be darned if I can find them, even an extensive search in the Forum and Community Database...
    New Yoga 2 Pro for Christmas...so far, very nice machine. However, am a litlle (!) frustrated with the Lenovo Motion Control...
    I can get the software to open, access settings, etc. but the tutorial doesn't tell me squat. Activating the software doesn't open my webcam...I tried with a couple of other programs, and when opening, they DO boot the webcam on. I can't find any step-by step instructions on the 'net...heck, the Dragon Assistant software tutorial is great and got that running fine.
    It appears that this is a common issue, judging by the number of posts on Lenovo Community. I tried uninstalling the original software, then reloading. I tried downloading v2.0 (it came preloaded with v2.5.1.0225 to ses if that would work, as suggested in a posted fix.
    So...no Lenovo support for Motion Control? No workarounds or fixes? Is this a glitch with Win 8.1 that has yet to be resolved? Inquiring minds would sure appreciate knowing! Thanks for any assistance in advance!

    I dont have my Y3P at the moment but I remember disabling it from Task Manager > Startup Programs
    Find Motion Control in there and Disable it, then restart the system.
    You should probably also disable Harmony, since that is the app which is responsible for these transitions and gets annoying for me.

  • Where is the output for PWM on NI 7774 connected to motion control card 7356

    Hi,
    I have NI motion control card 7356 which interfaced through 7774 interface board. PWM outputs are written to be on pins 5 and 9 on Digital IO, yet there is no indication about the whereabouts of these PWMs on the interface board (7774). Would you please help???
    Asst. Prof. Vasfi Emre Omurlu, Ph.D.

    Simitci,
    For the digital I/Os a UMI-7774 provides access to 16 digital lines. If you want to access other signals of the digital connector, you shouldn't connect it to the UMI but to another breakout box like the SCB-68. Please note that compared to the UMI-7774 the SCB-68 doesn't provide optical isolation or 24 V connectivity. If this doesn't work for you, you could think of building a customized cable that connects the lines for the16 digital I/Os to the UMI and the rest of the signals to another connector or breakout box.
    You also should be aware of the fact that the PWM outputs of 73xx boards are static. That means that you can change the duty cycle and output frequency of these signals in software only, which is quite slow. In most cases these PWM signals can't be used for motion control tasks.
    What do you intend to do with the PWM signals?
    Thanks and kind regards,
    Jochen Klier
    National Instruments

  • Photos in Timeline and Ken Burns Effect (Motion Control)

    I'd like to check my processes for setting photos with the Ken Burns Effect. I've used Tom's Motion Control example to set Ken Burns Effect on two or more photos that are next to each other in the timeline. I have found that if the photos are approximately the same pixel size that it works well. When they are significantly different I still see the second pic holding still for a few frames and then the movement.
    So, I'm interested in other experiences. Did you also find that the relative size of the photos makes a difference? And, when you have photos that are significantly diff in size, what process do you use to bring them closer together?
    Thanks,
    dave

    Hi David,
    I think the problem you are having is similar to one that I was encountering while finishing a project a few weeks ago. I also was using photos of differing sizes, but the issue with the late start on the "Ken Burns Effect" on the second photo wasn't related to the differing photo sizes, but to the transition I used between the images.
    I found that when I applied Motion to a photo using keyframes, the motion looked fine on both images until I applied a cross dissolve in between images. I realized that the cross dissolve is looking for frames before the motion keyframe to blend with the previous photo. Since the frames before the keyframe are "generated" (I'm not sure if that's the correct word) from the first frame of the still (which has no motion) it generates 15 frames (for a 1 second cross dissolve) that are not moving. That makes it appear like it's stuck and then starts moving when the playhead hits the motion keyframe.
    My solution was to move the still photo clips (one at a time) up one video track, extend both ends 15 frames and set the motion keyframe at the "new" beginning of the clip and the "new" end and do my motion based on that new clip length. I then brought in both ends back to their original positions and dropped the clip back into its original spot and then applied the cross dissolve. Now the cross dissolve would have 15 frames with motion to work with for blending the two pictures.
    It was incredibly tedious, but I had to do it because the images made up a large part of the video project I was working on. If anyone can suggest a better way of doing it, I would greatly appreciate it.
    Despite the time involved, I was really happy with the final results.
    I hope that helps.
    I don't log in here very often, so if you have any questions, feel free to email me at cgonzalezat*sfchronicle*dotcom
    Good luck.

  • PWM in Motion Control

    HI All,
    I am facing a problem in Motion Controller.
    We are using PCI 7344 and UMI 7774.
    Now their is a connector on the Motion control card for Digital I/O.
    In this Pin No 5 and Pin No9 are PWM1 and PWM2 respectively.Now I have used to VI PWm duty and config PWM. I am seeing the PWM waveform on CRO.But to my surprise the output is not matching the required data.
    IF you go for HElp and click config PWM VI block , you can see a table given where the internal clock selected corresponds to a particular frequency in 734X and 735X.Now since I am using 7344 my frequency should match with 734X table , whereas this is not happening and
    my frequency matches the table of 735X.
    SO i am bit confused about the controller specs or is someor the other way Iam missing some thing more.
    Regards
    Manish Karnik
    Cruiser Controls
    Mumbai.

    Manish,
    please have a look at this table which comes with the NI Motion function help file for NI-Motion 7.2. This table should contain the correct values. The latest revisions of the 734x are named 7340 and the PWM output should follow this table.
    Best regards,
    Jochen Klier
    National Instruments Germany
    Message Edited by Jochen on 07-05-2006 01:34 PM
    Attachments:
    PWM table.jpg ‏233 KB

  • [basic] the scope of motion control in LV

    I am a very beginner in motor control part.
    Very recently, some motor need to use some proper control board in control unit or PC.
    If so, what is the scope of the motion control driver (library) in LabVIEW developement version?
    Some restricted motor type?
    What other instrument should I prepare to use the driver?
    What's the difference between this type(PC or control board) and NI motion controller?
    Any materials for beginner should be welcomed.

    For getting started with NI Motion Control I recommend this website. Here you will find tutorials, webcasts, selection guides and much more.
    In general NI Motion solutions are not limited to specific motor types or applications. Depending on your application requirements you can select between motion control plugin-boards or software defined systems based on real-time hardware and/or FPGA technology.
    Please have a look at our web resources first and post any specific questions to the forum.
    Thanks,
    Jochen Klier
    National Instruments

  • Knitting machines motion control system

    Hi,
    My question is related to the Textile industry application. We are working on a servo mechanism of a knitting machine for textile industry. Is there anybody can help me in giving some of the similar applications tailor made using NI motion platforms? Typical motor parameters are enclosed. We need to workout a miniaturized motion solution which is a part of knitting machine. This knitting machine is responsible in identifying any broken strings.
    Quick response is highly appreciated.
    Rao
    Attachments:
    Picture.jpg ‏215 KB

    Rao,
    could you please provide some information about the typical motion control tasks, that are required for your application? How many axes are involved? What type of synchronisation do you need (vector spaces, camming, gearing,...)? How fast do your axes move?
    Do you have experience with NI products like LabVIEW, NI-SoftMotion and cRIO?
    I don't have any experience with knitting machines, but I have a decent level of motion control related project experience. So if you could help me to better understand your application's requirements and your individual backgroudn with NI products, this will help me to give you better advice.
    Thanks and kind regards,
    Jochen Klier
    National Instruments

Maybe you are looking for