Problems when you try to move the 3 stepper motors

Hello

I have problems when I Isaiah to compile a 3 stepper motors control program.

I have 3 steepest motors and controller (3 SMCP33 + SMCP33-EVA) nanotec.com, they also provide an example of Vi to control a motor that works successfully, but problems happen when I try to adapt the program to try to start the 3 Motors. The final application for this is going to be a Cartesian robot XYZ so finally I need to program coordinates to move the 3 Motors.

I am new to LabVIEW, so what I do is try to adapt the nanotec example to order 3 engine as follows.

-J' I assign each engine a different address, doing so that I can run each engine separately. But when I try to run 3 programs at the same time, they work but all moving them the engine (the first that has been run).

-If I try to make a sort of sub - VI is the same thing, only one motor is driven.

-Moreover, I get a warning when I try this, I have attached a screenshot of this.

I have attached the Vi and texture it to improve my description.

I woul be grateful if someona can help aport.

Kind regards.

Thanks for posting the original.  By comparing the two screws immediately gives an indication of what might happen.

In the picture you posted you circled two places where you changed the address of the reader. In the Example.vi - Nanotec address of the player is connected to about 14 seats.  So when you try to run the other engines in your modified program, the 12 places, you have not changed the address of the player are always preset to motor 1.

What you need to do is to divide the example VI in at least three parts.  The first part initialization. The next part moves the engine.  The last part ensures that the engine is stopped and made any required another stop.  Each party becomse a separate Subvi. Each Subvi has the address of the reader as input.  The initialization and shutdown parts are placed before and after a while loop.  The movement parts are inside the loop.  You can use three of each sub - VI for the three engines or a Subvi combined with subVIs move three to manage all three engines.

I can't say what approach might be better without knowing more about how you plan to order the engines - one at a time or all three at the same time, what kind of feedback is used, how management mistakes and other topics.

Lynn

Tags: NI Software

Similar Questions

  • Windows media player error "Windows Media Player has encountered a problem when you try to read the file" after burning CDs.

    Original title: "missing songs" in my windows media player then burn them on several cd :((

    I burned songs to several cd using my Windows media player to make different Cd, but after I returned to my library all the songs that I burned to the CD have disappeared, they are there, but they won't play it is as if they have been deleted, a window appears saying that windows media player has encountered a problem when you try to play the file. I did not notice this until after Cd burning a few I can't do more because if I keep going I'm not going to have more songs in my library! I don't know what to do im going crazy, it took me a long time to get all of these songs and now he disappeared! I have Windows 7 Ultimate is the version 12.0.7601.17514 hope that helps

    Hello
     
     
    They were playing before you burn CDs?
     
     
    Method 1:
    Open the troubleshooting Windows Media Player settings Troubleshooter
    http://Windows.Microsoft.com/en-us/Windows7/open-the-Windows-Media-Player-settings-Troubleshooter

    Method 2:
    This problem may be due to database corruption. You can delete the Windows Media Player database and check if the problem persists.

    Steps to clear the database of windows media player:

    a. exit Windows Media Player.
    b. Click Start, run, type %LOCALAPPDATA%\Microsoft\Media Player and then click OK.
    c. Select all files in the folder and then click on Delete on the file menu.

    Note you don't have to remove the folders that are in this folder.

    d. restart Windows Media Player.

    Note: Windows Media Player automatically rebuilds the database.

    If this does not resolve the problem, disable the Windows Media Player database cache files. To do this, follow these steps:

    a. exit Windows Media Player.

    b. Click Start, click Run, type % LOCALAPPDATA%\Microsoft and then click OK.

    c. Select the Media Player folder, and then click on Delete on the file menu.

    d. restart Windows Media Player.

    Note Windows Media Player automatically rebuilds the database.

  • When you try to move the curson using the button on the screen pass in zoom mode

    using a Hp pavillion computer g6 newly purchased with Windows 8.  Find that on occasion the cursor sticks or when you try to move the cursor on the button the screen goes in zoom mode.  left click stopped occasionally.  Makes it impossible to play games where he need to left click and hold and use the keyboard to move the cursor, as can find the computer will do a zoom or vice versa in a way that seems random.

    Hi William,.

    I suggest you to update the touchpad drivers by visiting the manufacturer's Web site and check if that helps.

    Most computer manufacturers install a custom utility Touchpad. Instructions for use the touchpad may vary according to the model of the computer.

    See the documentation provided with your computer or contact the computer manufacturer to obtain the information and verify that the settings are correct.

    You can see the steps of troubleshooting provided by HP

    You can also view these steps:

    a. press the Windows key + R

    b. type devmgmt.msc , then press enter.
    c. click on the arrow next to the mouse and other pointing devices and Double click on touch pad and click on "update software".

    Please post with the State of the question.

  • "Impossible to copy the requested resource is already in use" error message when you try to move the file to the thumb drive.

    I'm going to try really hard to do this makes sense, but I don't know much about computers.  Bear with me.

    Brother gave me a computer.  A graphics Nvidia GeForce 9800 inside.  Because it restored the system settings, the drivers are missing.  Can not connect this computer to the internet.

    So, I went to the nvidia site and downloaded the necessary drivers on my OTHER computer, which is what I'm now on the right.  The download ends, and when I try to move the (drivers) file in the USB, I get this delicious "cannot copy xxxx that the requested resource is already in use".  It is not in use.  I can't even use it on this computer as its pilots for a graphics card that is not yet part of this computer.

    What should I do to make sure I put the file with the drivers on a USB key, on the port to the other computer.

    (by the way, this also occurs with a few random mp3s of the mine.  10 of the 12 tracks on a CD, for example, does copy on the USB no problem, but then two of them to come up with the error message, for no apparent reason.  Don't know if it's relevant)

    Try another USB key. That one is may be damaged or failing. In the meantime, to burn the drivers on a CD - R disc (not CD - RW) to take the target machine. MS - MVP - Elephant Boy computers - don't panic!

  • "error code 43' when you try to move the iphoto folder.

    Hello

    When you try to transfer my photos on external hard drive folder, I get the message "the operation cannot be completed because one or more required elements could not be found. (Error code - 43) ".  I'm following the instructions from apple by drag-and - drop the file.

    have you rebooted and started the copy without opening any applications?

    How the drive is formatted?

    (select the drive, click CMD + i)

    you copy several files at once, or a large group of files or a file large?

  • Error when you try to move the SSM to IPS 6.1

    I am running 4,0000 E1 and when I try to upgrade, it says "can't upgrade the software on the sensor. This package cannot be installed on the platform of the SSM-IPS10. »

    I tried upgrading via IDM, FTP, SCP, and I get the same error.

    I'm trying to upgrade using the package IPS-AIM-K9-6.1-1-E1.

    Simple problem to use the file of E1 6.1 (1) bad.

    The IPS-AIM-K9-6.1-1-E1.pkg file is specific to the AIM - IPS module for ISR routers.

    AIM - IPS module for ISR routers must not to be confused with the ASA-AIP-SSM modules for devices of the SAA.

    All other platforms (including the SSMs) should use the standard 6.1 (1) E1 file upgrade:

    IPS - K9 - 6.1 - 1 - E1.pkg

  • Error when you try to move the cloudvolumes folder in a different data store

    OK, so I'm moving my App volume 2.10 cloudvolumes folder of datastoreA on vcenterA on datastoreB on vcenterB, because we want to separate us from our VDI of our basic infrastructure.

    We are able to access the two vcenters on the web client.

    I tried to just copy the folder datastoreA to datastoreB cloudvolumes and received the following error.

    Copy of the file object has already been deleted or has not been entirely created


    I've seen this error in Veeam before when moving virtual machines from a data store. The solution is to remove and readd the virtual machine in the inventory.


    Everyone tried to move the cloudvolumes folder?


    Any help would be appreciated.


    Thank you



    I would never move the folder because there are files that will always be accessible or are not in read/write mode.

    I suggest you copy the files from the 1 folder to another, or maybe add an additional data store to the manager Appvolumes and let the files (appstacks at least) copy automatically.

  • Error: DF024/Exit Code: 7 - problems when you try to install the first 13 items

    Hello

    When I try to install PE13 I get the following message:

    Exit Code: 7 Please see specific errors below for troubleshooting. For example,  ERROR: DF024 ...   -------------------------------------- Summary --------------------------------------  - 0 fatal error(s), 1 error(s)    ----------- Payload: Elements 13 Organizer(64 bit) 13.0.0.0 {C75EDFE2-E94B-476D-89B6-A13C1D98BD03} -----------  ERROR: DF024: Unable to preserve original file at "C:\Program Files\Adobe\Elements 13 Organizer\Assets\locale\sv_se\zstring.dct" Error 32 Det går inte att komma åt filen eftersom den  används av en annan process.(Seq 12130)  ------------------------------------------------------------------------------------- 

    How to solve this?

    Thanks in advance!

    Best regards

    Stefan

    Exit code: 6, Exit Code: 7 Installation error - http://helpx.adobe.com/creative-suite/kb/errors-exit-code-6-exit.html

    The problems with the Setup logs. CS5, CS5.5, CS6 - http://helpx.adobe.com/creative-suite/kb/troubleshoot-install-logs-cs5-cs5.html for more information on how to review your Setup logs

  • again message when you try to move the files to the trash

    "The files are in a volume that doesn't support garbage."

    using an iMac.  ransacked thousands of files and never had this message.  I was able to delete the files on disc well.

    another?  through images that have been a few years I came across about 30 that were pixelated.  remember never seen so many people like that.  passed through hundreds of images in that folder and other than these 30 only met a few more pixelated ones.  ????

    Still, here's something to try:

    In the Finder, navigate to the level root of the external HD which contains your photos; Create a new folder, call it whatever it is. Delete the folder.

    Back to LR and you should find that pictures delete normally after that.

    This thread: this volume does support not the trash...

    Mike

  • OfficeJet 6500 more e a-> HP - DQEX5.exe problem when you try to install the CD

    I bought above mentioned printer.

    REF: CN557A

    SN: [personal information]

    I use Windows XP

    Follow the start-up procedure quick and everything worked well.  I'm at the stage now where I had to put the CD, follow the configuration steps.

    I deleted the old HP software (from my HP printer) previous first. Then I tried to install it and whenever I get an error after awhile, saying there is a problem with HP-DQEX5. EXE. He closes the Setup program.

    I tried several times, but it does not work. Today, I deleted the first update HP (I think it was installed last night, when I was trying as well). Then started again, but without success.

    I NOT connected the USB cable, as the manual says not to do so until the installation program tells me to do.

    Could someone please try to help me?

    I get very upset, frustrated and so on. Plug-and-play said. Care Yes, don't play yet. = o)

    Thanking you in advance.

    The old printer may have some components behind which can be erased using a normal life to left uninstall method. What printer model was your old printer?

  • Problem when you try to update the database

    The problem I have is that whenever I try to change a certain element of customer information it always modifies a totally different number that has no meaning.  in the database. For example, an island of customer id is 3 and I want to change it to 12, the number that indicates the database after you have clicked on update is 40430. I am at a loss and have no idea why he did such a thing. Here is the file change to make the changes accordingly.

    = Edit file =.

    <!-insert or update? ->
    < cfset EditMode = IsDefined "(FORM. BusinessID") >

    < cfif EditMode >

    <!--> film update
    < cfupdate datasource = "wyi2" tablename = "Company" >
    < cfset action 'update' = >
    < cfelse >
    <!--> Add movie
    < cfinsert datasource = "wyi2" tablename = "Company" >
    < cfset action 'added' = >
    < / cfif >

    <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""
    "< html xmlns ="http://www.w3.org/1999/xhtml">".
    < head >
    < meta http-equiv = "Content-Type" content = text/html"; charset = utf-8 "/ >"
    < title > Untitled Document < /title >
    < / head >

    < body >
    <!--> feedback
    < cfoutput >
    < h1 > customer #FORM. BusinessName # #action # < / h1 > < br / >
    < cfif IsDefined('FORM.) Events) AND SHAPE. EQ events 1 >
    < a href = "add_event.cfm" > now add event < /a >
    < / cfif >
    < / cfoutput >

    < / body >
    < / html >

    So you're saying that if you do a CFDUMP and CFABORT just before your update request then Form.IslandID is, for example, 4; but he actually wrote a number 5 digit to the database? Because it's all just ridiculous. Are you absolutely sure that you have not named two identical form fields? If you do this, CF will concatenate their values by commas that CFQuery will almost certainly do everything right in the database because it assumes that it is what you want.

    Oh and read about CFQueryparam.

  • Help, please! I'm going nuts! JavaScript problem when you try to load the images on the E - Bay auctions and My Space does not look right

    This is the second time I've been here for help and I had to use IE in recent weeks because I still I have this problem. The pictures on individual E - Bay auctions start to load then stop, I think it is a Javascript problem. I already tried the troubleshooting tips for the "images are not displayed" AND I uninstalled/reinstalled Firefox without result. My space does not seem to be display correctly, for example, if I want to change the color of a font in a message boxes appear, but no color... Please HELP somebody! Thank you!

    URL of affected sites

    http://CGI.eBay.com/WS/eBayISAPI.dll?ViewItem & Item = 230497781181 & ADME:B:SS:US:1123 = getting

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of your modules is causing your problem (switch to the DEFAULT theme: Tools > Modules > themes).
    See the extensions, themes and problems of hardware acceleration to resolve common troubleshooting Firefox problems and troubleshooting questions with plugins like Flash or Java to solve common Firefox problems

    If this does not work in safe mode and then disable all your extensions and then try to find out who is causing by allowing both the problem reappears.
    You can use "Disable all add-ons" window the startup of Firefox to solve the issues in Safe Mode to disable all extensions.
    You will need to close and restart Firefox after each change via "file > exit ' (Mac: ' Firefox > leave";) Linux: "file > exit ')
    .
    You can also try to 'Reset all the preferences for the default user of Firefox' on the starting window of Firefox to solve the issues in Safe Mode - see http://kb.mozillazine.org/Resetting_preferences

  • Have problems when you try to connect the app

    Anyone have struggled to try to log in photoshop on iphone fix 6

    Andzoe and EJ2310 .

    We just released Fix 1.2.1 to treat the following accidents:

    • 9.3 only iOS: difficulty crash at sign in.

    Please update and let me know if it solves your problem. Thank you!

    -Kathleen

  • problem when you try to rename the images uploaded by using the value of the session

    Hello

    I have a form where 9 images are downloaded into thumbnail size and then stored in a file. What I m trying to do is to rename these vignettes of their original name for username_0, username_1, username_2 etc. for each of the 9 inches. The user name is the registration form on the same page. I created a session for the username variable and tries to use it to change the name of the image, while my pictures are for download and resize the rest as the original and not as the new number name of $ username_. I have pasted the code below, and would be very grateful for any help with this:

    <? PHP session_start();

    ...................

    Check that the form has been sent and this name is not empty and has no errors
    If ($_POST & &! empty($_POST['directusername'])) {}
    Set session variable
    $_SESSION ['directusername'] = $_POST ['directusername'];
    }
    define a constant to the maximum download size
    define ('MAX_FILE_SIZE', 5120000);
    If (array_key_exists ('upload', $_POST)) {}
    define constant for file transfer
    define ('UPLOAD_DIR ',' J: / xampp/htdocs/propertypages/uploads /');
    convert the maximum size in KB
    $max = number_format (MAX_FILE_SIZE/1024, 1). ' KB ';
    create an array of allowed MIME types
    $permitted = array (' image/gif ',' image/jpeg ',' image/pjpeg ',' image/png');
    foreach ($_FILES ['photo'] ['name'] as $number = > $file) {}
    replace all the spaces in the file name with underscores
    $file = str_replace (' ', '_', $file);
    Start by assuming that the file is unacceptable
    $sizeOK = false;
    $typeOK = false;
    Verify that the file is within the allowed size
    If ($_FILES ['photo'] ['size'] [$number] > 0 & & $_FILES ['photo'] ['size'] [$number] < = MAX_FILE_SIZE) {}
    $sizeOK = true;
    }
    Verify that the file is a permitted MIME type
    {foreach ($permitted as $type)}
    If ($type == $_FILES ['photo'] ['type'] [$number]) {}
    $typeOK = true;
    break;
    }
    }
    If ($sizeOK & & $typeOK) {}
    switch ($_FILES ['photo'] ['error'] [$number]) {}
    case 0:
    include('Includes/create_thumbs.) Inc.php');
    break;
    case 3:
    $result [] = "error loading $file. Please try again. « ;
    by default:
    $result [] = "error loading $file system. Please contact us for assistance. « ;
    }
    }
    ElseIf ($_FILES ['photo'] ['error'] [$number] == 4) {}
    $result [] = 'no file sΘlectionnΘ ";
    }
    else {}
    $result [] = "$file cannot be downloaded. Maximum size: $maximum acceptable File Types: gif, jpg, png. « ;
    }
    }
    }
    ................ THE CODE BELOW IS THE FILE WHICH DONE AND TRIES TO RENAME THE THUMBS...

    <? PHP
    define constants
    define ('THUMBS_DIR ',' J: / xampp/htdocs/propertypages/uploads/thumbs /');
    define ('MAX_WIDTH_THB', 75);
    define ('MAX_HEIGHT_THB', 75);
    set_time_limit(0) (600);
    treat the uploaded image
    If (is_uploaded_file ($_FILES ['photo'] ['tmp_name'] [$number])) {}
    $original = $_FILES ['photo'] ['tmp_name'] [$number];
    start by getting the details of the original
    list ($width, $height, $type) = getimagesize ($original);
    Make sure that the original image is large enough
    If ($width < 270: $height < 270) {}
    $result [] = "image dimensions are too small, a minimum image of 270 of 270 is needed."
    }
    else {/ / crop the image of a square before resizing for the thumb}
    If ($width > $height) {}
    $x = ceil (($width-$height) / 2);
    $width = $height;
    $y = 0;
    }
    of other if($height > $width) {}
    $y = ceil (($height-$width) / 2);
    $height = $width;
    $x = 0;
    }
    calculate the ratio of scale
    If ($width < = MAX_WIDTH_THB & & $height < = MAX_HEIGHT_THB) {}
    $ratio = 1;
    }
    ElseIf ($width > $height) {}
    $ratio = MAX_WIDTH_THB / $width;
    }
    else {}
    $ratio = MAX_HEIGHT_THB / $height;
    }
    If (isset($_SESSION['directusername'])) {}
    $username = $_SESSION ["directusername"];
    Strip the extension off the name of the image file
    $imagetypes = array ('/ \.gif$ / ',' / \.jpg$/ ',' / \.jpeg$/ ',' / \.png$/');
    $name = preg_replace ($imagetypes, ", basename($_FILES['photo']['name'][$number]));
    change the names of the images to the user name _ the number of the photo
    $newname = str_replace ("name", "number of $username_$", $name);
    create a resource of original image
    {Switch ($type)}
    case 1:
    $source = @ imagecreatefromgif ($original);
    If (! $source) {}
    $result = ' failed to process GIF files. Please use JPEG or PNG.';
    }
    break;
    case 2:
    $source = imagecreatefromjpeg ($original);
    break;
    case 3:
    $source = imagecreatefrompng ($original);
    break;
    by default:
    $source = NULL;
    $result = "Cannot identify the type of file.";
    }
    Make sure that the resource of the image is OK
    If (! $source) {}
    $result = "image download problem, please try again or contact us for further assistance";
    }
    else {}
    calculate the dimensions of the thumbnail
    $thumb_width = round($width * $ratio);
    $thumb_height = round($height * $ratio);
    create a resource of image for the thumbnail
    $thumb = imagecreatetruecolor ($thumb_width, $thumb_height);
    create the resized copy
    imagecopyresampled ($thumb, $source, 0, 0, $x $y $thumb_width, $thumb_height, $width, $height);
    Save the resized copy
    {Switch ($type)}
    case 1:
    If (function_exists ('imagegif')) {}
    $success [] = imagegif ($thumb, THUMBS_DIR. $newname.'. gif');
    $photoname = $newname.'. gif';
    }
    else {}
    $success [] = imagejpeg ($thumb, THUMBS_DIR. $newname.'. jpg', 50);
    $photoname = $newname.'. jpg';
    }
    break;
    case 2:
    $success [] = imagejpeg ($thumb, THUMBS_DIR. $newname.'. jpg', 100);
    $photoname = $newname.'. jpg';
    break;
    case 3:
    $success [] = imagepng ($thumb, THUMBS_DIR. $newname.'. png');
    $photoname = $newname.'. PNG';
    }
    If {($success)
    $result [] = "Upload successful";
    }
    else {}
    $result [] = "image download problem, please try again or contact us for further assistance";
    }
    Delete the memory image
    imagedestroy ($source);
    imagedestroy ($Thumb);
    }
    }
    }
    }
    ? >

    ..................................................

    I hope I ve provided enough information and eager to receive any help or advise you in this matter.

    Use quotes here:

    $newname = str_replace ('name', '$username_$number', $name);
    

    Change to this:

    $newname = str_replace ('name', "$username_$number", $name);
    
  • Problem when you try to use the trigger for a NI PCI 6713 card



Maybe you are looking for