Control does not stay in case structure while using motion VIs

Hi,
I have a motion control card PCI 7344 connected to my PC. I am able to control the motor at the required speed till the required position using an encoder. Now I have put my motion control VIs in a case structure in such a way that, if Case1 is selected then the motor should to position P at speed S, if case 2 is selected then the motor should move to position Q at speed S and if case3 is selected then the motor should to position R at speed S. I am selecting cases 1,2,3 etc. by scanning a set of numbers seperated by spaces which look like this,
1 2 5 7 3
This number scanning is done using a while loop. Now, when the first number is scanned in the above set of numbers. The number 1 is obtained and the control is switched to case1. But before the motor reaches position P, the control switches to case2 and before completing the execution, the program scans case5 and so on. That means that the control does not stay till the move in the case 1 is completed. I'm sure there must be a way to retain the control to a case and stop the next number to be scanned before the functions in the particular are completely executed. I thought of one method, i.e. by using the move complete VI provided in LabVIEW, but I could not implement it. Please help me out with this.
Regards,
Giridhar Rajan
Automation Engineer,
Cruiser Controls,
Mumbai, India

Hi,
Our motion controllers allow you to preemptively start a move in the middle of a current move.  For example if you are moving from point A to B and based on some logic, you determine you need to immediately start moving to point C.  A preemptive move allows you to just load the new target position and call start.  You do NOT have to first stop the current move and then start the new move.
In your case, you want the first move to complete before the second move starts.  There are two ways to handle this.  First, wait for the move to complete via a Wait For Move Complete function/VI call, or use the Check For Move Complete function/VI in a loop.  Second, use Blend Start instead of the regular start.  A Blend Start (if blend factor is set to 0) waits for the first move to complete before the second move starts. 
Check out the help topics for Start Motion and Blend Motion to learn more.
Thanks,
Rodger S.

Similar Messages

  • NGS Sponsors authentication does not work in case user has non-English character in his password

    Hi,
    we are using the NAC Guest Server v 2.0.1 and have Sponsors authentication done through Radius servers. Radius servers are Microsoft IAS using AD.
    Sponsors user authentication works okay in case user's password includes English characters, but does not work in case an user uses national characters like for example Umlauts in German.
    On Radius server I can see these error messages:
    User XXXX was denied access.
    Reason = Authentication was not successful because an unknown user name or incorrect password was used.
    As soon as an user changes his password and uses English characters only, it resolves.
    I guess this might be that NGS uses different coding while sending a password to Radius server, but not sure.
    Appreciate if anyone knows a root cause and what could be a workaround. Unfortunately our AD policy allows users to use national characters and we can hardly change it. So a change on NGS or Radius side would be more viable.
    Many thanks for your help.

    A case has been opened at Cisco and it is now quite clear that it is a problem with coding.
    According to Cisco development team NGS uses UTF-8 coding to send the password, of course encrypted, to the Radius server. This cannot be changed within NGS. We use Radius Microsoft IAS Version 5.2.3790.3959 running on VMWare Windows 2003 SP2. More tests are scheduled to be performed.

  • 2002 G3 600 mhz iMac display stays dim with an unidentified sign displayed.  The contrast control does not work.

    My display screen is dim and the contrast control does not work.  There is a sign on the screen that I have been unable to identify.  It is a white circle outline with a half moon solid circle within it.  Does anyone know what's wrong?

    There is a sign on the screen that I have been unable to identify.  It is a white circle outline with a half moon solid circle within it
    That would be a screen contrast symbol     
    My display screen is dim and the contrast control does not work.
    Did you reset the PRAM? http://support.apple.com/kb/ht1379 And the pram battery may need to be replaced if it is over 3 years old it is under the iMac under the ram cover and there is a little button in there to reset the pmu as well. you have to have it pluged in when you do a pmu reset. there is a lot more stuff to try before the worst case scenario that is a bad PAV board the Pav is what runs the monitor and if it is going bad That may be a syptom that it is haveing and they can not be fixed (Well not for under $250 and that is useing old parts because they do not make them any more) but that wood be worst case scenario. Lets just hope it just needs to be reset Try that and Keep us posted

  • Iphone voice memos does not stay open

    iphone voice memos does not stay open

    Try a reset: Simultaneously hold down the Home and On buttons until the device shuts down. Ignore the off slider if it appears. Once shut down is complete, if it doesn't restart on it own, turn the device back on using the On button. In some cases it also helps to double click the Home button and close all apps BEFORE doing the reset.

  • My note app does not stay open

    My note app does not stay open
    <Email Edited by Host>

    Try a reset: Simultaneously hold down the Home and On buttons until the device shuts down. Ignore the off slider if it appears. Once shut down is complete, if it doesn't restart on it own, turn the device back on using the On button. In some cases it also helps to double click the Home button and close all apps BEFORE doing the reset.

  • When I open my MacBook Air the keyboard comes up along with the screen and does not stay still?!

    When I open my MacBook Air the keyboard comes up along with the screen and does not stay still. So I need to hold down the keyboard while i open it. Other than that it works fine despite the fact that the fan noise some times is loud and sometimes it's getting warm at the base. I wonder if this can be fixed if i go to one of the apple branches.

    Yes. Take the computer to the Apple store to have it fixed.
    Best

  • After Export to excel response handler, control does not restore

    I am downloading an excel file from a bsp page using the following code. However, after the download the control does not come back to the page from where the download was done. l_xml_xstring variable has the data in xstring format.
      lv_content_type = 'application/vnd.ms-excel'.            
        -> create response
      runtime->server->response->set_header_field( name  = if_http_header_fields=>content_type "'Content-Type'
                                          value = lv_content_type ).
      runtime->server->response->set_header_field( name  = 'content-disposition'
                                          value = 'attachment; filename=output.xls' ).
      IF NOT l_xml_string IS INITIAL.
        runtime->server->response->set_data( l_xml_xstring ).
      ENDIF.
    navigation->response_complete( ).
    Is there any additional step so that the control comes back?
    Thanks

    (sorry i really dontknow, because the same works in my case)
    alternate approach.
    for your case you dont have to generate cached response.
    create a bsp page and set its MIME type to application/vnd.ms-excel (in the properties tab of the page)
    within the layout , just have a simple html table with data.
    now call this page, you will automatically get the save / open option.
    Regards
    Raja

  • Modeless window using "palette" does not stay up in CS5

    I am having trouble running a modeless dialog with CS5 (on Windows 64-bit).  My own script does not stay up and neither does the SnpCreateDialog.jsx snippet that  comes with the ESTK and is supposed to demonstrate modeless dialogs.  I have  tried:
    Running from the Scripts panel
    Add #target photoshop
    Being sure the drop-down menu says Photoshop, not CTSK
    as suggested in an older discussion at http://forums.adobe.com/message/3008230#3008230.  (I decided to make a new discussion as that one was marked answered.)
    It also does not stay up when moved into the Photoshop Scripts folder and run from the File menu in Photoshop.
    The relevant code in SnpCreateDialog.jsx is:
    function SnpCreateDialog()
         this.windowRef = null;
    Functional part of this snippet.
    Create a window of type "palette" (a modeless dialog) and display it.
    @return True if the snippet ran as expected, false otherwise.
    @type Boolean
    SnpCreateDialog.prototype.run = function()
         // Create a window of type palette.
         var win = new Window("palette", "SnpCreateDialog",[100,100,380,245]);  // bounds = [left, top, right, bottom]
         this.windowRef = win;
         // Add a frame for the contents.
         win.btnPanel = win.add("panel", [25,15,255,130], "SnpCreateDialog");
         // Add the components, two buttons
         win.btnPanel.okBtn = win.btnPanel.add("button", [15,65,105,85], "OK");
         win.btnPanel.cancelBtn = win.btnPanel.add("button", [120, 65, 210, 85], "Cancel");
         // Register event listeners that define the button behavior
         win.btnPanel.okBtn.onClick = function() {
              $.writeln("OK pressed");
              win.close();
         win.btnPanel.cancelBtn.onClick = function() {
              $.writeln("Cancel pressed");
              win.close();
         // Display the window
         win.show();
         return true;
    "main program": construct an anonymous instance and run it
      as long as we are not unit-testing this snippet.
    if(typeof(SnpCreateDialog_unitTest) == "undefined") {
        new SnpCreateDialog().run();
    If  I put a breakpoint on the "return true;" line, then I can see that the dialog has, in fact, been created and is visible, but it has returned from win.show() and will go away as soon as the script continues.
    Any help would be appreciated.

    Kenneth Evans wrote:
    The advantage of a modeless dialog is that you can continue to do things in Photoshop while the dialog is up.  At least I presume so, since I haven't got one to work, including the ESTK example.
    Sorry but no, most of the Photoshop UI is disabled while a script is running even if the script displays a palette window.
    A dialog window does wait for show() to complete. That is what makes dialogs modal. A palette window does not wait for show() to complete. It runs the rest of the script.
    In the example you posted all the script does after showing the window is return true then ends. Which is why all it does is flash the window. If you put a $.sleep(1000) line before the return true line the windows will display until sleep timeouts then the script will end and the window will close. That is why with Photoshop palette windows are really only useful for progress bars or other script status type windows.
    Although palette windows may allow the user to intreact with the app UI while the window is displayed that doesn't work with Photoshop. The window only displays while the script is running and a running script limits Photoshop UI interaction.
    I have tested palette windows in CS2, CS3, CS4, and CS5 with the same results. The window only shows while the script is running.
    With Photoshop if you want the user to interact with the UI you have to create a panel.

  • IPod 30GB (MA446LL/A) Does Not Stay On and Clicks

    After connecting the iPod to my laptop, the Apple icon appears but it does not stay on (blinks on and off) and I hear a click. The unit has been sitting in my drawer for almost one year and has not been charged or used within that time.
    1. Does this affect the unit?
    2. Do I need to have iTunes loaded on my laptop for this unit to actually stay on?
    3. Can this be fixed? If so, how?
    Any help would be appreciated

    I had a 15GB model with similar problems and reached a solution.
    • First of all, charge the darn thing! If you don't have the necessary power adapter, your laptop should do. Normally, when the power is low, you'll get an icon on the screen to tell you as much. When it's really, really low, then it can't even load that much up, as seems to be your case. Charging it should be a big help. Just don't expect the time and date to be correct at that point.
    • You don't have to have iTunes loaded on your machine to charge it. However, if and when it comes down to it, you will have to have it to restore the iPod and then sync you library to it again.
    If this doesn't work, there are a few more extreme options to try. Let me know if that's the case, and I'll detail them for you.

  • Iphone 4 does not stay connected to my network

    Since upgrading to 6.1, my iPhone 4 does not stay connected to my network.  I have to input my password each time I leave my house.  My other devices stay connected, so the issue is with the upgrade.  Has anyone found a way to keep their IPhone connected to their network?  Thanks.

    I don't have another phone to try. I took out the sim to check for deffects but it looked fine. Cleaned the sim card with alcohol and cleaned the aim compartment. Phone didn't loose Internet connection all day yesterday, but this morning went to check emails and wouldn't update until I turned airplane mode on then off again.

  • Iphone does not stay connected to wi-fi.

    When using apps or when in sleep mode my iphone does not stay connected to my wi-fi. All other items within the house have no issues with staying connected to my wi-fi.

    By design, when entering sleep mode, the iPhone will disconnect from WiFi to conserve battery. If you want the WiFi connection to remain persistent, plug your phone into a power source.

  • HT2305 MY IPHONE BATTERY CHARGE DOES NOT STAY

    the charge of my iphone does not stay for over 12hrs, what should I do?

    hey EmsOne,
    try updating the Power Manager to version 3.64 >> http://support.lenovo.com/en_US/downloads/detail.page?DocID=DS014924
    and the Power Management Driver to version 1.64 : http://support.lenovo.com/en_US/downloads/detail.page?DocID=DS014939
    Hopefully this will work for you.
    WW Social Media
    Important Note: If you need help, post your question in the forum, and include your system type, model number and OS. Do not post your serial number.
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"!
    Follow @LenovoForums on Twitter!
    Have you checked out the Community Knowledgebase yet?!
    How to send a private message? --> Check out this article.

  • Cannot save password-screen does not stay open long enough

    Cannot log into company intranet or home voice mail. Asks for a password and cannot save it as the save password dialogue box does not stay open long enough to click on it. Works fine on other locations

    Re: "Lightroom encountered and error when reading from its preview cache and needs to quit"

  • "Mission Control" does not show space row and I cannot add a new space (27 inch screen)

    Firstly, "Mission Control" does not show upper row with spaces. I have configured Dashboard as space, but it is not showed either.
    Second, I cannot add a new space because the upper right corner wont show an empty space.
    In system I have configured (Mission Control) the upper right corner as "mission control".
    I do run a 27-inch screen

    I'm having the exact same problem. I have a Macbook Pro that I connect to a 27inch iMac through the mini display port. Whenever I attempt to launch Mission control to move a program to a different space, the "Spaces" dont appear at the top of the screen. Is anyone have an answer for this?
    Also, does anyone know of a 3rd party program to bring "Spaces" back? That was my #1 favorite thing of Snow Leopard, and I need to get that functionality back.
    Thanks

  • When I click on a bookmark to open it, the bookmark (in the sidebar) does not stay highlighted. Why?

    When I open a bookmark, the bookmark title from the list in the sidebar does not stay highlighted. It used to but doesn't anymore. Do you know why? Can I change an option to get that feature back?

    Hello Donald.
    Although possibly not related to your problem, I will remind you that the version of Firefox you are using at the moment has been discontinued and is no longer supported. Furthermore, it has known bugs and security problems. I urge you to update to the latest version of Firefox, for maximum stability, performance, security and usability. You can get it for free, as always, at [http://www.getfirefox.com getfirefox.com].
    As for your issue, you may be having a problem with some Firefox add-on that is hindering your Firefox's normal behavior. Have you tried disabling all add-ons (just to check), to see if Firefox goes back to normal?
    Whenever you have a problem with Firefox, whatever it is, you should make sure it's not coming from one of your installed add-ons, be it an extension, a theme or a plugin. To do that easily and cleanly, run Firefox in [http://support.mozilla.com/en-US/kb/Safe+Mode safe mode] and select ''Disable all add-ons''. If the problem disappears, you know it's from an add-on. Disable them all in normal mode, and enable them one at a time until you find the source of the problem. See [http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes this article] for information about troubleshooting extensions and theme. You can troubleshoot plugins the same way.
    If you want support for one of your add-ons, you'll need to contact its author.

Maybe you are looking for