Problem stopping the Labview Starter Kit motors (huge offset?)

Hi
I implemented an algorythm for the Labview Starter Kit. It reads a map and navigates from the initial point to the goal. The Starter Kit only performs two movements: "go straight X mm", and "turn 90º left/right (the turning is made when stopped, like a rotation).
The problem Im encountering is the turning. It uses a digital compass (CMPS09): when the robot needs to turn left/right, I feed the CCW Velocity of the motors (using the read/write FPGA functon) with +3.4 rad/seg and -3.4 rad/seg, into a timed loop.
The condition to stop is simple: "if heading=desired heading for the actual turn --> finish loop and stop motors".
Well, it happens that in the time window from calling the "stop motor" function, and the robot motors and wheels actually STOPPING, the robot travels 9-10 extra degrees!
So, for example, I want the robot to turn from north (0º) to 90º. The CCW velocities are feed with +3.4rad/seg and +3.4rad/seg into a timed loop, and I checked that the timed loop finishes when the heading is 90º. But the final orientation of the robot is exactly 100º, because the motor seems to take a little time to stop.
The deviation depends on the velocity of the motors, I was able to reduce it to 3/4 degrees using a turning velocity of 1rad/seg, but it has no use since it´s extremely slow and the motors works very badly (they dont even are able to maintain a constant speed in slower velocities).
I tried to check the Starter Kit FPGA.VI but I fail to understand how the "stop motor" function works.
I dont know if there is any way to correct or reduce the "stopping time" of the motors. If I correct the turning function to subtract 10º for every turnop before starting the movement, the algorythm works as long as I use the 3.4rad/seg velocity... but that solution is extremely shabby, and I dont think I cant say that on my Final Project! There has to be a way to improve it, isn´t it?
EDIT: For the record, I tried several variations for the loop, and several timing, form us to ms, and I think that´s not the problem, because I wasnt able to get better resulsts at all.

I did have similar problems and I figured all that I installed too many real-time components.  It might not be the case with yours but you might try.

Similar Messages

  • Need urgent help to use or modify the "ultrasonic starter kit"

    Hi, I am a french student, and I am working on an ultrasonic table with Labview 7.1.
    On the one hand, I have done the control of the table that moves the "probe?", and on the other hand I have done the program that read the picture given by EPOCH (an ultrasonic system that detects interfaces into metals).
    So, now my goal is now to mix them to make a map of those interfaces (one gives the position (x,y) of the probe and the other a graph with intensity peaks).
    I have found the "ultrasonic starter kit", and I would like to modify it, but I need help to remove the part that simulates the graph of intensity in order to replace it with mine and to remove the part that simulates (x,y) position to replace it by my positions that are controled in the same order. (y decreases each time x>constant).
    In case you would like to help me and need my work or a better description, please contact me to : [email protected]
    François-Xavier MAYAUD.
    Thank you.

    Hi,
    I think it would be easier for you to start from a blank VI, than modifiying the example you found which is quite complex. Try to use an intensity graph with inputs as your data.
    Regards,
    ClémentG

  • A-Scan from the Ultrasonic Starter Kit

    Hallo,
    I've a problem concerning the USonic_A_scan.vi from the "Ultrasonic Starter Kit" downloadable at the VI-Website
    (http://sine.ni.com/apps/utf8/niepd_web_display.di​splay_epd4?p_guid=F248370C3F141D78E0340003BA7CCD71​)
    My task is to measure and detect the amplitude and delay of an
    ultrasonic signal, for this purpose the functinality provided within
    the "USonic_A_scan.vi" would serve perfectly, but yet I'm not able to
    determine how the ampltuide measurement exactly works.
    Here's my problem:
    When a change the vertical position of my gates, the value returned for
    the amplitude changes (The horizontal position and the width of the
    gate stay constant). Why? Is there any other (comfortable) possibility
    to measure the amplitude within a certain "gate"?
    Thanks in advice!
    Benjamin Brück

    The backwall echo measured amplitude is stable WRT gate height in the example. The front wall amplitude jumps around a lot. Assuming that you are looking for a single echo then there is a lot of noise in the signal in relation to the peak detector.vi width setting. The width is set to the default value of three which means that it will look for inflections based on three sample points. If you set it to 8 then the front wall echo amplitude stabilizes, even for changes in gate height. Whether that makes sense in terms of an ultrasonic measurement is another issue as the peak detector width, the transducer frequency and the sample rate are all tied together here. The peak detector vi is not going to return the sample within the gate that has the maximum amplitude, it is going to return an interpolated value based on a curve fit over a certain number of points, where the first derivative of the fitted curve is zero, indicating an inflection.

  • I can't stop the Firefox Start page from opening - in addition to my default page - each time I open Firefox

    # Question
    I can't stop the Firefox Start page from opening - in addition to my default page - each time I open Firefox

    Is this the Firefox branded Google page? If it is, Firefox can store multiple home pages and you may have 2 home pages set. Follow the instructions to set a single home page in this link - https://support.mozilla.com/kb/How+to+set+the+home+page
    If it is the Firefox has just updated page that keeps on appearing, there may be a different problem, for details on fixing that see https://support.mozilla.com/kb/Firefox+has+just+updated+tab+shows+each+time+you+start+Firefox

  • I cannot stop the activity "Start Deletion of Data in Receiver System"

    Hi all
    I tried to stop the activity "Start Deletion of Data in Receiver System" in my MDC package with the troubleshooting assistant. Unfortunately I get the following error:
    No destination exists for the PACKID:
    Message no. CNV_MBT042
    Have you got an idea, what the problem is? Or how I can stop in a propre different way the activity?
    Thanks a lot for your help
    Roger

    Hi Roger,
    why do you want to stop this phase ?
    Anyway : you can stop the process and than the phase can be restarted at a later stage.
    Regards,
    Eddy

  • I have a new Macbook Air and for the last few days the fan had run continuously, this is the first time it has ever run, and now it won't stop, the fan starts up as soon as I turn it on. The computer is not hot.Any ideas on how I can fix this please ?

    I have a new Macbook Air, 6 months old, and for the last few days the fan had run continuously, this is the first time it has ever run, and now it won't stop, the fan starts up as soon as I turn it on and the computer seems to running more slowy.The computer is not hot but I am worried it may burn out,.Any ideas on how I can fix this please ?

    Hello dwb,
    Here is the screen shot, just the top half, there are another 10 pages, but I guess this should enough for you to have an idea of waht is going on, bit small I am afraid. No, I don't have any apps setup to run when I open my computer, the kernel, varies between 290 and 305 per cent ish.
    Would that PRAM thing help ? I think it may be the computer itself, well something inside, as this the first time that the fan has ever started running since I have this computer, even when I have 3 or 4 apps running.
    Thank you again for your advice,
    Regard,
    Beauty of Bath

  • How to stop the auto-start of log reader agent (replication) right after my database is restored?

    I have the scenario where the SQL server is restored (after migration).
    This database has transactional replication set-up on one of the databases. When I do a manual delete and restore of the database, I see that the replication starts right after the publisher and subscriber are restored.
    Replication agents should not start and run before the integrity checks are completed. How to stop the replication from auto starting right after the migration?
    Thanks in advance - Jebah

    Thanks Pradyothana, I have disabled the logreader, distribution agents through sp_update_job in Tsql script. I have also verified that there are no pending transactions to be replicated to the subscriber, I see that the job is still being executed. Is there
    any other way to disable the jobs?
    Steps I followed
    Started with a Working publication and subscription
    Disabled the jobs (log reader and distribution agents)
    Backed up publisher, subscriber, distribution and msdb
    Deleted the publication, subscription, publisher and subscriber
    Restored the publisher, subscriber, distribution and msdb
    Enabled the jobs and executed sp_replrestart
    Observations/Issues
    Replication does not work
    Replication monitor does not show any error
    Jobs are shows as enabled but not started in job monitor
    Not able to start/stop the log reader and synchronization manually.
    I am not sure if I have missed something while restoring the db.
    Thanks in advance

  • How do I stop the Getting started with Mozilla Firefox page from opening everytime I start Firefox. If I have to see that everytime then I will delete Firefox for good...!!!!

    Everytime I start firefox since the last update I can't get the stupid Getting started with firefox page to stop opening up. I downloaded the version 8 and it still opens ..

    Well the latest and Greatest Firefox Version 8.0. Won't let me change my home page no matter what I do it always comes back with the getting started page and my orignal home page.
    What a piece of garbage it is turning into..!!!!

  • How do I stop the "Getting Started with Mozilla Firefox" tab from opening every time I open FF?

    Every time I open FF, the "Getting Started with Mozilla Firefox" tab opens. I have checked and it's not in my homepage list.
    If I open any additional windows, it doesn't open.
    But, once I close all of them and reopen it again, the tab opens.
    I've had a similar problem with a couple addons (ietab) doing the same thing.

    about:config is typed into the address bar as if you were going to a web page.
    It will popup a message warning you that you are messing with important stuff.
    Just agree.

  • Problems with the eway development kit (eDK) on CAPS 5.1.1

    Hi all!
    I'm having difficulties trying out the eway development kit(CAPS 5.1.1). I would like to create an oracle AQ eway, but first of all i would like to test out the samples included in the documentation, for instance the edkfile eway.
    I've build the sar file from the post implementation zip file, and loaded it in the repository.
    When looking at the new eway in the designer, the eway don't have any methods. I was expecting to be able to expand the EDKFILE eway and find a method called write.
    The same thing happens to the other samples also. I've build the sar files as described in the guide. Maybee I'm missing out on something.. Well, have anyone tried this out successfully?

    Hi,
    We are using JCAPS5.0 , and I didnt find any eDK plugin with JCAPS,Probabily its available but I am not aware of it or what I didnt know.Can you please provide me information ,how can I develop my own customised eWay and use it in my project.
    Thanks,
    Renga.S.

  • The iAS 6.5 distribution on the SUNONE Starter Kit DVD contains a misnamed license file

    The license file needs to be renamed from ias_LICENSE.txt to LICENSE.txt prior to starting the installation of iAS 6.5

    Sorry to have not replied to this thread earlier.....forgot all about it.
    The reason init was being called twice by IPanet (Sun One) is IPanet comes with a default context called "Search" already in server.xml file.
    This context was loading all the classes on my class path and this causing "init" to run. Then my context entry also loaded all the files in the class path.
    Quite why Sun include this "Search" context is beyond me......annoying. If you take it out the the problem goes away.
    Basically if you leave this in then your running to web servers (JVM's) your one and Sun's stupid "Search" one. As they are separate JVM's no amount of synchronisation would ever fix it.

  • Problem with the Labview PDA and file transfer.

    I�m using PALM Tungsten T3 to run some applications. The OS environment is Windows XP. When I try to download a data.txt or data.dat file to the pc using the Hotsync, it gives me an error. There is installed datalogmgr that is the application that allows files exchange between Palm & PC.
    Error message
    Se ha iniciado la sincronización HotSync 03/09/04 16:12:12
    Aceptar Calendario

    fopen(C:\PDAdata\19_samples.txt) failed
    LabVIEW Datalog Conduit ha fallado la sincronización
    I have installed the LVPDA_Patch_70f1.rar file (in the correct order). I tried also with another file generated by PDATempData (in the examples) and it didn�t work. I tried Also to delete datalogmgr and download it again. I tried to instal
    ll Labview COnduit again. Any idea?

    I know its been a long time since your post. Did you make sure to have the directory that you want the file transferred into created on your PC before the sync. If the folder isn't there you will get that error.
    Dan
    Don't drive angry. Don't drive angry!

  • My photoshop elements 12 has stopped working, the notification reads a problem stopped the programme from working.  Any ideas?

    Trying to use my elements 12.........it has shut down completely.....looks like a windows error.  Have updated windows, scanned, rolled back......no success at all.  Any ideas anyone

    Hi,
    Are you seeing this issue both for Elements Organizer and Editor?
    For Organizer, try the instructions listed out on page and see if it helps.
    Thanks,
    Anwesha

  • Connect SP1 Installation Problem at the very start

    Hi,
    I have did update of Connect 7 to Connect 7 SP1 on various
    servers but i have 2 servers that are giving the following
    notification after running the SP1's setup.exe and selecting the
    language.
    ScreenShot
    Here is the URL in the Notification
    http://www.adobe.com/go/msde_upgrade_en
    In short:
    It says i need to upgrade the embeded MSSQL server to 2005.
    But Connect 7 already uses MSSQL 2005 and the technote is about
    upgrading from 2000 to 2005. This only happened in 2 servers
    upgrade process and the others upgrade went flawless.
    Does anyone having the same issue or the have the solution?

    Hello,
    Have you called Connect support on this issue? Try uprading
    the Express version of SQL to a new release - in my experience, it
    doesn't go over well. You must backup your Connect database,
    uninstall the Express Edition, and either install the latest
    version of 2005 with SP2 (there is an installer available from
    Microsoft with this) or let Connect install it, then restore your
    database.

  • DaNI Starter Kit 2.0 Motor Driving

    Hi,
    I have got a problem with the Robotics Starter Kit 2.0. The problem is that when a VI contains two commands, one for moving forward and the other command is for rotation (one wheel moves in the opposite direction of the other one). Of course, both commands are not parallel, they are issued in series. (check the attached VI).
    As you can see in the VI:
    In the first loop, DaNI moves forward with 5 rad/sec speed. It stops when I press Step1: Stop Moving stop button.
    The second loop is used only to stall the execution till I press Start Rotating.
    In the third loop, DaNI rotates around its vertial axis and keeps rotating till I press Step2: Stop Rotating stop button.
    The forth loop is just like the second one.
    In the last loop, DaNI continues moving forward till I press Step3: Stop Moving stop button.
    Now, the problem occurs in the third loop and the last loop. Every time one wheel starts rotation before the other!!!!!
    Also I suspect that the robot needs reset to its original firmware (both the Real Time Processor and the FPGA).
    so is there any document that describes the steps to reset?
    Thanks in advance.
    Attachments:
    Main.vi ‏18 KB

    Robert,
    We got sbRIO reset to its factory state. But nothing happened, the problem still exists.
    For the roaming example, I don't think it can help us identifying the problem; since the speed changes on the go. The problem occurs only in either of the following cases:
    DaNI is moving in straight line, stops then rotates about its vertical vertex (the two wheels are rotoating in opposite direction with respect to each other).
    DaNI is rotating about its vertical axis, stops then moves in straight line.
    In the roaming sample code, the velocity is changed but DaNI doesn't stop.
    For the second sample code, it didn't work in the first place!! That is, we have downloaded the file to DaNI but didn't respond to any commands.
    So, what do you think?
    I have attached a VI that I am currently using to debug the problem. Would you please check if I am doing something wrong in the VI?
    Regards,
    Ahmad.
    Attachments:
    Steering Frame_SubVI.vi ‏70 KB

Maybe you are looking for