Move motor and make a measurement (thorlabs motors and drivers)

Hi everybody, 
I was just born in this Labview  world and I´m quite lost. I´ll explain my situation: 
I have three motors from thorlabs (T-cube Stepper Motor controller) in three directions (x, y and z). What I need is to move the motors from initial position until final position in small steps in order to make measurements in every stop (this is other story). So, the thing is I need to measure one line in x stopping wherever I need, then come back to the initial point, go one line down in y axis and start the line in x again (as many times as neccesary). I think a state machine is what I need for this purpose, but I have no idea. 
Could anyone help me with this??
NOTE: the computer is an old xp without internet conection and there is no possibility to install labview packages as NI-DAQmx so I must use the motors nodes and properties that Thorlabs provides. 
Thank you very much!!!
Solved!
Go to Solution.

Times to wait BEFORE a measurement is started is something you have to do manually since it's up to the user.
As far as how long to wait for the measurement to complete, the manual has examples of using registers and buffers to find out when the measurement is complete using a linear sweep (this is how I do it).  The idea is to pre-set the buffer equal to the number of datapoints (say 100 over your IV range), instruct what to measure (current, voltage, both), and poll the registers to find out when the buffer is full (say every 100-500 ms).  Let the keithley 2400 set the voltages for you over the specified range and return the data set when completed.
As far as knowing when the movement is complete, you'll have to see if there is a way to detect that with your equipment (otherwise stick with the pre-programed delay).  IF these are illuminated IV measurements, you could do the following.  Source ZERO volts and measure current.  check periodically after the movement commands are sent.  Once you measure a current, the Jsc for the cell, you have contact.
For data storage, use shift registers on the state machine itself.  Clear the register when starting a scan, and insert each measurement as it is taken (2D array, or array of clusters).  Another possibility is to use a separate while loop to save the data (a consumer) with the data being passed in a Queue and appended to file after each scan (this will help if you are concerned about failures resulting in lost data).  After each measurement, enqueue the data into a queue handled by this consumer.  (you'll need to keep track of which file to append data to).

Similar Messages

  • Move motors to specific coordinates

    Hey everyone,
    I'm working on developing a NXT robot that can move motors to a given set of coordinates. I am using Labview 8.6. So far I'm using the initialize mouse VI to give the coordinates of the picture that I've pasted onto the Labview front panel. My problem is that I do not know how to make the motors move to these coordinates. I know that I can set the motors to run for a specified time or number of degrees, but I do not know any other way. I've attached the program with the initialize mouse VI to get the coordinates. I am unable to download this onto the NXT. I've also attached the basic program of how we are moving the motors. I think it would be best to combine these some how. Any help is appreciated! Thanks.
    Attachments:
    get coordinates.vi ‏300 KB
    Untitled 10.vi ‏10 KB

    As in most vision Motion Systems, you will need to consider that the system will need to be calibrated.  In your case, pixels to degrees of rotation.  First consider the width and height of your clickable picture control.  For the sake of discussion, let's say that it is 100x100 pixels.  Now you will need to determine the distance that the motors can travel in each axis, in degrees.  Lets say 720 degrees (two full rotations).
    Position the motors in the upper left corner of the travel area, and zero them out, them move them to the opposite corner, and read the number of degrees.  Lets say 720 degrees on X (two full rotations), and 270 (3/4 rotation) on Y.  These are the "real world" coordinates that we will convert to pixel counts.
    The conversion looks like this: Xd= (X*(720/100)) Yd=(Y*(270/100)
    When you click the Upper Left-most pixel in your image (0,0), you will send  Xd=(0*(720/100))=0 Yd=(0*(270/100)=0
    When you click the Upper (22,77) in your image, you will
    send  Xd=(22*(720/100))=158.4 Deg.  Yd=(0*(270/100)=207.9 Deg.
    Hope this helps.

  • Is there a way to make the scroll wheel move up and down instantly like you could with previous versions, instead of moving slowly up and down?

    I've only recently updated my firefox to v 15.0.1 after using v 10 for so long, and I was wondering if there is a way to make the scroll wheel move up and down instantly without having it slowly crawl to it's spot?

    you can disable smooth scrolling.
    *Tools > Options > Advanced > General: Browsing: "Use smooth scrolling"

  • I'm trying to play this new movie i bought with my macbook but every time i put the movie in it makes a noise and only stays there for 6 seconds then ejects itself how can i fix this problem?

    I'm trying to play this new movie i bought with my macbook but every time i put the movie in it makes a noise and only stays there for 6 seconds then ejects itself how can i fix this problem?

    Restart your phone,hold the home button and the off button down till the apple symbol comes up. If that doesnt fix it , you need to do a restore in itunes by connecting to itunes , click on your phones name to the left, then click restore in the center of the screen and restore from backup.

  • Hello I saw in the latest version of photoshop , smart guides make a measurement between layers, I still have windows xp and I can not buy that version , there is something like to do that but cs6 ? thx

    hello I saw in the latest version of photoshop , smart guides make a measurement between layers, I still have windows xp and I can not buy that version , there is something like to do that but cs6 ? thx

    There definitely is! Here's a link to the Adobe tutorial: Work with Smart Guides | Adobe Photoshop CC tutorials

  • I have just noticed the the top right on the phone LCD, if you press down the lcd moves down and makes a squeaky noise. Do you reckon that's normal ?

    I have just noticed the the top right on the phone LCD, if you press down the lcd moves down and makes a squeaky noise. Do you reckon that's normal ?

    thanks for replay.
    Its the half top right the ldc which is not seated.
    you u press down it moves down and makes noise.
    very upset as this is my first ever Iphone.

  • I need to move home and refresh icons back to the left. I uninstalled Firefox 4 and reinstalled Firefox 6 and the home and refresh icons are still on the left. Help! (I have tendonitis and this makes my wrist move too far.)

    # Question
    i need to move home and refresh icons back to the left. I uninstalled Firefox 4 and reinstalled Firefox 3.6 and the home and refresh icons are still on the right. Help!

    You can right-click on the "Home" button and choose "Customize," then drag all of the icons (including Home and Reload) to where you want them.
    For more detailed instructions, see [[How do I customize the toolbars?]]

  • Movie Rentals and Purchases on IPad - What's wrong with this?

    Bought my very first Apple product...(IPad 64G WiFi only) last week.
    I intended to use it just to keep me busy reading, watching movies, playing games, on all the long flights to Europe and Asia that I take.
    So yesterday I excitedly set up an ITunes account, and downloaded 4 movie rentals, and purchased one other movie (Angels and Demons). All HD. I just figure I'd let it run all night and I'd see the movies the next morning.
    The rentals all appear to have downloaded, and they show up in the videos section. HOWEVER, they are ALL marked "Expires in 17 hours". Never started watching any of them, why are they already set to expire? The rental info section of Itunes says I have 30 days to start watching, then 24 hours after that til they expire.
    As for the purchased movie, th it appeared stuck on the "tap to retry" icon, which I did several times, with repeated errors, until the download icon simply disappeared and no sign of the dowload status or the actual movie anywhere.
    I DID get billed for all of these. This is like 40 bucks worth of stuff.
    Everyone who uses MAC stuff always brags about how great it is, how excellent customer service is, how things just "work", etc.
    Color me WAY not impressed. No answers to my emails sent through ITunes help (yes, I checked spam folder) and no movies for my flight to China this weekend.
    Any suggestions on things to change to make it work better next time? OR just buy a **** portable DVD player for 400 bucks less than an Ipad?

    HI Jeffrey and welcome...
    Make certain the time and date are correct on your PC.
    Click Start and then click Control Panel.
    Click "Date, Time, Language, and Regional Options" and then click Date and Time.
    Click the Date & Time tab.
    Make sure that the date and time settings are configured to use the current date and time and then click OK.
    Make sure you are running the latest version of iTunes. http://www.apple.com/itunes/download/
    Check the Firewall.
    From the Start menu, choose Control Panel.
    If the Control Panel is in Classic View, skip to step 4.
    On Windows 7 and Vista, click Security; on Windows XP, click Security Center.
    Click Windows Firewall.
    On Windows 7 and Vista, click Change Settings; if asked for permission by Windows, click Continue; make sure the “Block all incoming connections” option is *not selected.*
    Click the Exceptions tab.
    Check the iTunes box.
    Click OK.
    You can report problems to Apple via the iTunes store. Launch iTunes. Select iTunes Store on the left. On the right side of that window select your account name. In the next window click: Purchase History then click: Report a Problem.
    More support options here: http://www.apple.com/support/ipad/contact/
    Carolyn

  • How do I move my playhead in exact measures of time?

    Relatively new to AE and want to know how do I move my playhead in exact measures in time.
    For example in a 59.94 project,  I'm at  1:00:14 and want to move back 36 frames. In Premiere Pro I just type "-36" and I jump back 36 frames.
    I tried in AE and it went to -36 frames in the comp. Basically before my time line ever started. I've tried ".36" "0.36" ".0036" with identical results Back to -36 before the comp begins.
    Anyone have a solution? I cannot find it in the manual.
    Thanks in Advance

    from After Effects Help:
    "To go forward a specific period of time or number of frames, click the current-time display, and then enter the plus sign ( + ) followed by the timecode or number of frames to advance. For example, enter +20 to go forward 20 frames or 1:00 to go forward one second. Precede the value by the minus sign ( - ) to go backward. For example, enter +-20 to go backward 20 frames or +-1:00 to go backward one second."

  • What can I do to improve a blurry quicktime video that was SMS'd to me it is a 1.24MB .mov file and I have QuicktimePro. It was taken on an Iphone but I am not sure with what software.

    What can I do to improve a blurry Quicktime video that was SMS' texted to me? I think it was taken on an Iphone and it was sent to me as a 1.24MB .mov file and I have Quicktime Pro if that helps. I REALLY need to make this as clear as possible, the audio is good, video is blurry. Here is some additional data:

    anything I can even try? Sender is off the grid? I don't need a production ready copy just viewable?
    You can rescale (stretch) the size of the display but this will only make it blurier and/or introduce pixellation. When the file was encoded at a lower resolution much of the original data was thrown away to make the file smaller. This data is gone/missing and cannot be recreated from what is left. What you've got is all you have to work with. Any filters you can apply will require re-compressing the file again which will likely introduce more artifacts and increase the size of the file without really improving its overasll quality.

  • Urchased a new desktop pc and I want to move itunes and all files including IPAD apps to my new computer and delete off my old one.  What is the best way to do this?

    I just purchased a new desktop PC and want to move Itunes and all my Ipad Apps to new computer, and delete off my old computer.  What is the best way to do this?

    Hi,
    See Here for Transferring your iTunes Library
    http://support.apple.com/kb/HT4527
    Make sure Everything is working to your satisfaction Before Deleting anything from your old computer...
    Cheers,

  • Changing Computers - How do I move Lightroom and its images?

    I'm retiring an old MAC notebook and moving to a new desktop MAC so I have to move LR and all my images, preferences, etc.
    I currently have an internal hard drive with the following:
    root\applications\adobe lightroom.app
    root\pictures\lighroom\lightroom catalog.lrcat
    root\pictures\lightroom\lightroom catalog previews.lrdata
    root\library\preferences\com.adobe.lightroom.plist (what is this?)
    root\library\receipts\adobe photoshop lightroom.pkg (I think this is the installer. can i delete?)
    root\library\application support\adobe\lightroom\--- many folders with presets, etc
    I also have an external raid system with my images on it:
    external raid\lightroom images\-- organized by year and then subfolders -- these were all imported into lighroom
    I also make backups of the lightroom catalog to another external drive:
    external drive\lightroom backups
    I plan on replacing this whole configuration with a MAC with an internal RAID configuration. I want to use the external RAID and external drive for backup only.
    What I'd like to know is how I move everything and not break everything. I saw a FAQ that said to drag the catalog file over to the new location and relaunch but what if the images are moved too? Or should I do this in discrete steps?
    I have my original CD media with the application but that was a few versions old now. I'm currently running 1.3.1.
    Lastly, I'm wondering if I am missing any critical files in my list that I dont' know about and whether I can delete the installer (listed above) and the com.adboe.lightroom.plist file (listed above).
    Oh, and do I have to put everything in these separate locations? I really would like to put all this in one place instead of having all this in disparate folders. Is that advisable? Maybe the app in the applications folder and then just a folder somewhere else called Lightroom with all the other components? Or is that stupid?
    Thanks for any help or advice. I've got about 8,000 images and I'm anxious about this move.
    Deena

    I looked in the FAQ and couldn't find anything except what I've cut and pasted below. First, I don't totally understand it, but more importantly it seems to be talking about just moving the catalog and previews files, not the application and images and the catalog and previews files.
    I'm just trying to make sure I understand the process so I don't screw up all my work. If you know any location in the manual with this info or other threads, that would be great.
    Thanks,
    Deena
    How do I place the Lightroom Library on an External Drive?
    Ian Lyons - 04:03pm Nov 20, 2007 Pacific
    Q: How do I change the location of the Lightroom Library on an external disk drive whilst also ensuring that lightroom maintains the connection with the new location?
    A: The easiest way is to copy the folder containing the Lightroom Catalog and the Previews to the new disk drive, navigate to the new folder location, then double click on the Catalog file to relaunch.
    Note: the Lightroom catalog and preview package use the lrcat and lrdata extension respectively.

  • In Lion, why did Apple remove the up/down arrows in the scroll bars?  There is currently no way to move up and down in small increments.  WHY????

    Every mac operating system software until Lion had the ability to use up/down arrows in the scroll bar.  This makes it easy to move up and down in small increments.  In Lion, it is impossible to move up and down in small increments.  Click on the scroll bar and it moves up or down an entire page.  When you try to put the curser on the scrollbar and move it up just a little, it moves a whole bunch.  With the up/down arrows, you can click on the arrow and it will scroll ulp or down one line a time.  There is no way to do this in Lion. Why would apple remove the very useful feature of up and down arrows.

    Yes, agreed a missing element.
    Did you try using the up / down arrows on the key board.

  • After export movies works and then is not working anymore?!

    Hi guys,
    i am capturing HD movies to my final cut express HD..Edit them, expert as quick time movie (option self contain is OFF). Then i test the movies and they are like they should be. Then i import them into IDVD and IDVD accept some and some not. So when i check the not accepted movies they only play the sound. While 10 minutes before the movie was working correct.
    After a few times (making the same movies again and again on the same maner) IDVD accepted alle the movies. But when i wanted to burn the dvd it gives me a error about a missing movie file, again and again?
    It worked all okay when i made my other dvds.
    The only thing changed at this system is that i upgraded to Ilife'11
    What am i doing wrong?
    Thanks in advance!
    Ps. my movies are HD (1080i)

    Could it be that the link is broken after i change the movie from folder to a >other folder ?
    The FCE Project File or the export?
    Sequence>Render Only>Mixdown.
    This action makes one temp file out of all your audio. It makes a difference to exported files playing correctly in the audio department.
    Al

  • New mac 5 days old daughter accessed a movie website and now keep being redirected to this site. Have erased her as user and tried to restore factory settings. Now computer running Internet recovery and I am lost. Please help

    New Mac only 5 days old. Daughter accessed a movie website and now popups keep appearing and unable to access any other Internet sites without being redirected. Have deleted her as a user and then tried to restore to factory settings. I did something wrong and it is now doing an Internet recovery. Help I am completly lost and don't know what I am doing.

    You may have installed one or more of the common types of ad-injection malware. Follow the instructions on this Apple Support page to remove it. It's been reported that some variants of the "VSearch" malware block access to the page. If that happens, start in safe mode by holding down the shift key at the startup chime, then try again.
    Back up all data before making any changes.
    One of the steps in the article is to remove malicious Safari extensions. Do the equivalent in the Chrome and Firefox browsers, if you use either of those. If Safari crashes on launch, skip that step and come back to it after you've done everything else.
    If you don't find any of the files or extensions listed, or if removing them doesn't stop the ad injection, ask for further instructions.
    Make sure you don't repeat the mistake that led you to install the malware. It may have come from an Internet cesspit such as "Softonic" or "CNET Download." Never visit either of those sites again. You might also have downloaded it from an ad in a page on some other site. The ad would probably have included a large green button labeled "Download" or "Download Now" in white letters. The button is designed to confuse people who intend to download something else on the same page. If you ever download a file that isn't obviously what you expected, delete it immediately.
    Malware is also found on websites that traffic in pirated content such as video. If you, or anyone else who uses the computer, visit such sites and follow prompts to install software, you can expect more of the same, and worse, to follow. Never install any software that you downloaded from a bittorrent, or that was downloaded by someone else from an unknown source.
    In the Security & Privacy pane of System Preferences, select the General tab. The radio button marked Anywhere  should not be selected. If it is, click the lock icon to unlock the settings, then select one of the other buttons. After that, don't ignore a warning that you are about to run or install an application from an unknown developer.
    Still in System Preferences, open the App Store or Software Update pane and check the box marked
              Install system data files and security updates (OS X 10.10 or later)
    or
              Download updates automatically (OS X 10.9 or earlier)
    if it's not already checked.

Maybe you are looking for

  • Employee works for 4 org units and want to distribute the cost to 4 cost ce

    Hi Experts, I am in the implementation phase, requirement gathering. I have scenerio where, Employee works for 4 org units and want to distribute the cost to 4 different cost centers. so that I can be able to find the exact cost occured for each Org

  • Random rebooting of my Mac

    I received notice of and update available for my Superdrive, and accepted to download and install. After downloading, the following problems came up: 1. The installer states (every time I boot up) that no hardware was found that needs such update. 2.

  • Problem saving HTML files with Windows 7

    I just got a new computer with Windows 7 and I installed my (old) Macromedia Dreamweaver MX. Everything seemed to be working normally until I hit "ctrl + s" to save my HTML file. It gave me this error message: Access to J:\Websites\MyWebsite\public_h

  • New drivers for windows 7

    When there will be official drivers for windows 7?

  • I suddenly can not play videos of any kind

    I had not made any changes and suddenly they do not work on any site (MSNBC for example). I have reset Firefox. I have reinstalled Firefox. I have reinstalled Flash. Videos work on IE (yuck). Videos work on another computer on my home network using F