How to measure diameter using vision system

sir
         I am new to vision system, i want to measure diameter of a cylinder please send some example vi's

Hello ksr,
You can use a function called Clamp to determine the distance between two edges in an image.  If you have any specific questions regarding this, please respond and provide more details regarding your project.
Regards,
Jasper S

Similar Messages

  • How to measure RPM using digital I/O

    Please tell me how to measure RPM using Digital Input or please give me a code for this.

    You probably aren't going to find anyone to just give you code. Especially because you don't specify the hardware you're using. Doing this on FPGA is different than using DAQmx to do it. With FPGA you count pulses over a specified time. Using boolean logic from the digital DI node is a common way but there are others. (if you are using FPGA I can draw up an example, but I believe there is one on NIs website if you search google for it),. Then, if you want, you can run the data through an IIR filter, especially if you have a low resolution or slow moving encoder. Either of these conditions can result in very large difference of RPM even if the actual speed is not varying much (if you need an example why I can provide more detail, but some simple math calculating RPM should explain this. Obviously lower resolution will giv eyou less accurate results).
    If you use DAQmx you can set up a frequency task and it will return the number of pulses in a specified time frame; then you can convert this to RPM based on your encoder resolution and take the same steps of running it through a filter to smooth it out if need be.
    CLA, LabVIEW Versions 2010-2013

  • How to train OCR using VISION ASSISTANT for multiple character recognition

    Sir I have tried training OCR using Vision Assistant for character recognition. For the process i have used a fixed focus camera but the character i had trained were undetectable. So sir please provide me a liable solution to the problem.
    Thank you.
    I have attached my project description and also the .vi file of my work towards it.
    Attachments:
    Project phase I.vi ‏138 KB
    WP_20140814_17_27_38_Pro.jpg ‏1444 KB

    Can you post a real jpg instead of renaming a bmp to jpg?

  • How to measure ripple using DVM

    Hi,
    What's the best way to measure ripple using DVM (PXI-4072)? My customer's limits are Vp-p so I think digitizing it would be the best way, but I also think that measuring true RMS would also be a good way to measure it. With digitizing the signal there's some post-processing required. Would calculating just V peak to peak in acquired signal be sufficient?
    Thanks for any comments,
    CT.

    Hi CT,
    To measure ripple, you should be able to use the digitzer mode of the 4072 to measure signals up to 1.8 MS/s.  As long as your ripple voltage is not a higher frequency than that you will be able measure it.  The Developer Zone article linked here gives some more information about DC power  supplies and some considerations for measureing ripple.
    Regards,
    Jim Schwartz

  • How to make Weather use my system language

    Hi all,
    My situation is kind of uncommon, but I would like to try to post here to see if anyone happens to know a solution. If I should not post this question (which is about sync between iPhone and Macbook) here, please let me know.
    Background:
    iPhone 6 plus (language is Chinese)
    Macbook Pro (language is English)
    The problem:
    If I add a new city in Weather on my iPhone in Chinese ( I had to add it using Chinese, btw), it shows as it is on my Mac. See picture below.
    I also noticed that I can add that city again on my Mac again, in English of course. See picture below.
    This happens in the other direction too. Adding a city on my mac in English, then it shows in English on my iPhone, and I can still add a Chinese version of that city.
    This is weird to me, because usually this should be designed as the same model with two different views (same thing in different languages), not two separated models.
    Please let me know if you know how Weather syncs data and/or how to solve this issue.
    === more: ===
    The behavior becomes even weirder if I add a city in one language on one device and then add the same city in another language on another device. Take the capital of France for example, I added '巴黎' (Paris in Chinese) on my iPhone (and it is synced to Mac), then I added 'Paris' on my Mac. To my surprise, the second entry shows as '巴黎' on my iPhone, not as 'Paris' (I now have two exactly same entries on my iPhone).
    And after I add another city on my iPhone, the second capital-of-France entry on my Mac becomes '巴黎' too. ( I think this is normal, as things are synced to another device when updated on one device).
    notes:
    - This also happens on the other direction.
    - This is not happening every time. Sometimes this bug shows up, sometimes not.
    - I found this behavior long ago. I'm pretty sure this is not only for the latest versions of iOS and Mac OS.

    Move the entire iTunes folder from <User's Music> to the root of the other drive. Press and hold down shift as you launch iTunes and keep holding until asked to choose or create a library. Click choose and browse to X:\iTunes\iTunes Library.itl where X:\ is the drive letter.
    You should also consider making a backup of your library to an external drive.
    iTunes will still want to store iOS backup data on the system drive unless you use the following process to relocate it.
    Moving the iOS device backup location
    Open a command prompt by hitting the start button and typing CMD<Enter> in the search box that opens up, or with Start > Run on older Windows.
    To move the current backup folder from C: to X: (for example) type in this command and press <Enter>
    Move "C:\Users\<User>\AppData\Roaming\Apple Computer\MobileSync\Backup" "X:\Backup"
    Where <User> is your Windows user name.
    To make iTunes look for the data in the new location type in this command and press <Enter>
    MkLink /J "C:\Users\<User>\AppData\Roaming\Apple Computer\MobileSync\Backup" "X:\Backup"
    If your preferred drive has a different letter or you already have a folder called "Backup" then edit "X:\Backup" accordingly in both commands.
    If you have Windows XP then you'll need a third-party tool such as Junction to link the two locations together instead of the MkLink command. The source folder is C:\Documents and Settings\<User>\Application Data\Apple Computer\MobileSync\Backup
    tt2

  • How to measure frequency using daq 6009

    HAI..
       Im using PFIO line to measure the frequency..i have attached my vi along with this..output is read approximately to the given input when i highlight the execution,but when i use run and run continuosly alone,am getting incorrect values..im totally confused..suggest some ideas..
    another doubt, may i use analog port to measure the frequency of an oscillator?if so kindly help me to create a vi for this also..
    Attachments:
    counter.vi ‏19 KB

    From your VI, one thing is clear, you are creating a task, but you are not clearing it. Please take a look at this example:http://decibel.ni.com/content/docs/DOC-8172

  • How to measure freq. using usb6008 daq?

    hai,
    i have to measure the frequency of the o/p pulse from the proximity sensor. which is the best method to measure the frequency. do u have any example code.
    thank u.

    Hello visswa,
    The only counter operation you can do with the USB-6008 is simple event counting. But, you can use that example, along with some software timing to calculate the frequency of your signal. Take a look at the example attached. It isn't as accurate as doing a hardware frequency measurement but with the USB-6008, it's probably your best option.
    -Alan A.
    Attachments:
    Count Digital Events_Calculate_Frequency.vi ‏73 KB

  • How to measure the frequency of a pulse being generated by a counter

    Hi,
    I am using labview 8.6 to generate 5 evenly spaced pulses for every 1 revolution of my shaft. However, I would also want to know the frequency of these pulses so I can determine the shaft speed. Since I am already generating the pulses using one of my counters, can I still tap into that or task another counter to measure the pulse frequency? If so, how? I have attached my code for generating the pulses and I am using an Ni 9401 module and an NI 9172 chassis. If someone can helo me modify the code to measure and tell me the pulse frequency as well, that would be really appreciated
    Attachments:
    autotrain2.vi ‏19 KB

    You'd probably get a more coherent answer if you didn't bounce around from thread to thread so much...
    How can I generate a pulse train from shaft encoder? (5/13)
    pulse train from encoder (5/15)
    how to measure rpm (5/20)
    How to measure rpm using shaft encoder and labview (5/23)
    This thread (also 5/23)
    I see you ignored my suggestion from the other thread--Kevin's solution is good too but using an encoder task offers more noise immunity (I think this is probably the cause of the problem you reported on the other thread).  You can fix it with digital filtering if you want to keep using a counter output instead of an encoder task.  Noise during transitions is pretty common for a quadrature encoder.
    A finite counter output task uses 2 counters on the 9172 (although you said 9174 earlier at one point--this wouldn't be the case on a 9174) so you wouldn't have one left to make your frequency measurement.  With the solution you have now, you can change to continuous to free up a counter if you don't care about outputing an exact number of rotation's worth of pulses (I'm not sure if you do or not--I didn't read through all of the various threads relating to this application to find out).
    For your actual question in this thread...  Have you tried running one of the frequency measurement examples?  From the code here I can't tell what you have tried (it just looks like a mangled version of the code Kevin gave to you in your other thread).
    Best Regards,
    John Passiak

  • Using PCMCIA6024E ,how to measure data in mv accurately

    Dear sir!
    I am using your product PCMCIA 6024E & Measure 1.2
    I want to acquire data that is in mv( 10 mv to 50 mv)
    How evever when there is no signal at the input of this card, i am getting the nosise in the order of 200mv to 300 mv.
    I ma using the input configuratin "differential"
    Please guide me that How can i get rid of this noise and can measure accurate data in the order of mv using available system.
    I am waiting your response anxiously.
    Thanks

    Hi,
    Check the following knowledge base. The card is a 12-bit resolution card -- check page A-1 of the manual to see which range you need to set the card to -- for your application, you might need to set the gain to 100.
    Regards,
    RamziH.

  • How to track line using webcam vision and move along it

    Hi everyone,
    I have a question which I can't really find any topic about it.
    Currently, I had made my rover robot to be control wirelessly using a 3-Axis joystick and working perfectly.
    But I would like to add some features to the vision system on board the rover.
    I am trying to make the webcam to detect black line against white background and then it will just autonomously move along the the black line. 
    The thing is I only know abit about vision setup.. So if any one out there able to guide me along the way? 
    Do I use colour pattern matching or colour matching or pattern match?
    How to I make sure the black line stays in the middle of the vision?(Eg. moving itself to centre the line within its vision)
    How do I control the motors using the vision aquired from the above?
    Message Edited by Shinra on 08-23-2009 10:06 PM
    Solved!
    Go to Solution.

    Hey,
    To your questions:
    Do I use colour pattern matching or colour matching or pattern match?
    Pattern Matching or Color Pattern Matching would be to slow.
    I would use a Simple 1D Edge detection which returns the coordinates and angle of the edge.
    How to I make sure the black line stays in the middle of the vision?(Eg. moving itself to centre the line within its vision)
    You have to control your motors that e.g. the angle is 0 or 90 degrees (depending on your coordinate system) all the time.
    How do I control the motors using the vision aquired from the above?
    The manual of this robot should tell you how to control the motors.
    Hope this helps,
    Christian

  • HT1338 Purchased a used macbook pro with Mountain Lion. My old Mac runs Snow Leopard is backed up to Time machine. How do I register the operating system to me and how do I use Time Machine to move my files to the new used computer?

    Purchased a used macbook pro with Mountain Lion. My old Mac runs Snow Leopard is backed up to Time machine. How do I register the operating system to me and how do I use Time Machine to move my files to the new used computer?

    If you look at the User Tips tab, you will find a write up on just this subject:
    https://discussions.apple.com/docs/DOC-4053
    The subject of buying/selling a Mac is quite complicated.  Here is a guide to the steps involved. It is from the Seller's point of view, but easily read the other way too:
    SELLING A MAC A
    Internet Recovery, and Transferability of OS & iLife Apps
    Selling an Old Mac:
    • When selling an old Mac, the only OS that is legally transferable is the one that came preinstalled when the Mac was new. Selling a Mac with an upgraded OS isn't doing the new owner any favors. Attempting to do so will only result in headaches since the upgraded OS can't be registered by the new owner. If a clean install becomes necessary, they won't be able to do so and will be forced to install the original OS via Internet Recovery. Best to simply erase the drive and revert back to the original OS prior to selling any Mac.
    • Additionally, upgrading the OS on a Mac you intend to sell means that you are leaving personally identifiable information on the Mac since the only way to upgrade the OS involves using your own AppleID to download the upgrade from the App Store. So there will be traces of your info and user account left behind. Again, best to erase the drive and revert to the original OS via Internet Recovery.
    Internet Recovery:
    • In the event that the OS has been upgraded to a newer version (i.e. Lion to Mountain Lion), Internet Recovery will offer the version of the OS that originally came with the Mac. So while booting to the Recovery Disk will show Mountain Lion as available for reinstall since that is the current version running, Internet Recovery, on the other hand, will only show Lion available since that was the OS shipped with that particular Mac.
    • Though the Mac came with a particular version of Mac OS X, it appears that, when Internet Recovery is invoked, the most recent update of that version may be applied. (i.e. if the Mac originally came with 10.7.3, Internet Recovery may install a more recent update like 10.7.5)
    iLife Apps:
    • When the App Store is launched for the first time it will report that the iLife apps are available for the user to Accept under the Purchases section. The user will be required to enter their AppleID during the Acceptance process. From that point on the iLife apps will be tied to the AppleID used to Accept them. The user will be allowed to download the apps to other Macs they own if they wish using the same AppleID used to Accept them.
    • Once Accepted on the new Mac, the iLife apps can not be transferred to any future owner when the Mac is sold. Attempting to use an AppleID after the apps have already been accepted using a different AppleID will result in the App Store reporting "These apps were already assigned to another Apple ID".
    • It appears, however, that the iLife Apps do not automatically go to the first owner of the Mac. It's quite possible that the original owner, either by choice or neglect, never Accepted the iLife apps in the App Store. As a result, a future owner of the Mac may be able to successfully Accept the apps and retain them for themselves using their own AppleID. Bottom Line: Whoever Accepts the iLife apps first gets to keep them.
    SELLING A MAC B
    Follow these instructions step by step to prepare a Mac for sale:
    Step One - Back up your data:
    A. If you have any Virtual PCs shut them down. They cannot be in their "fast saved" state. They must be shut down from inside Windows.
    B. Clone to an external drive using using Carbon Copy Cloner.
    1. Open Carbon Copy Cloner.
    2. Select the Source volume from the Select a source drop down menu on the left side.
    3. Select the Destination volume from the Select a destination drop down menu on the right
    side.
    4. Click on the Clone button. If you are prompted about creating a clone of the Recovery HD be
    sure to opt for that.
    Destination means a freshly erased external backup drive. Source means the internal
    startup drive. 
    Step Two - Prepare the machine for the new buyer:
    1. De-authorize the computer in iTunes! De-authorize both iTunes and Audible accounts.
    2, Remove any Open Firmware passwords or Firmware passwords.
    3. Turn the brightness full up and volume nearly so.
    4. Turn off File Vault, if enabled.
    5. Disable iCloud, if enabled: See.What to do with iCloud before selling your computer
    Step Three - Install a fresh OS:
    A. Snow Leopard and earlier versions of OS X
    1. Insert the original OS X install CD/DVD that came with your computer.
    2. Restart the computer while holding down the C key to boot from the CD/DVD.
    3. Select Disk Utility from the Utilities menu; repartition and reformat the internal hard drive.
    Optionally, click on the Security button and set the Zero Data option to one-pass.
    4. Install OS X.
    5. Upon completion DO NOT restart the computer.
    6. Shutdown the computer.
    B. Lion and Mountain Lion (if pre-installed on the computer at purchase*)
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because
    it is three times faster than wireless.
    1. Restart the computer while holding down the COMMAND and R keys until the Mac OS X
    Utilities window appears.
    2. Select Disk Utility from the Mac OS X Utilities window and click on the Continue button. 
    3. After DU loads select your startup volume (usually Macintosh HD) from the left side list. Click
    on the Erase tab in the DU main window.
    4. Set the format type to Mac OS Extended (Journaled.) Optionally, click on the Security button
    and set the Zero Data option to one-pass.
    5. Click on the Erase button and wait until the process has completed.
    6. Quit DU and return to the Mac OS X Utilities window.
    7. Select Reinstall Lion/Mountain Lion and click on the Install button.
    8. Upon completion shutdown the computer.
    *If your computer came with Lion or Mountain Lion pre-installed then you are entitled to transfer your license once. If you purchased Lion or Mountain Lion from the App Store then you cannot transfer your license to another party. In the case of the latter you should install the original version of OS X that came with your computer. You need to repartition the hard drive as well as reformat it; this will assure that the Recovery HD partition is removed. See Step Three above. You may verify these requirements by reviewing your OS X Software License.

  • How do you measure frequency using the onboard counter on PCMCIA 6024-E

    I am using LABView 6.1 and NI-DAQ 7.2 with a SCXI-1000 chassis and a PCMCIA 6024-E on a laptop. I need to measure a frequency of about 3KHz and would like to do that using an 1180 direct through connector.
    Firstly, should I see this 1180 in MAX like any other module?
    And secondly, how do I use this 6024-E card to measure frequency? Which pins are supposed to be used on it to measure, and will I see the counter run in the test window in MAX according to the frequency measured?
    I know NI also have a frequency module for the SCXI chassis. So lastly, will it be better to use that, rather than measure directly off the 6024-E?
    Any help, advise or comments will be greatly appreciated!
    Thanks!

    Hello,
    I think I can help out with some of your questions. First, the 1180 module won�t show up in MAX since it is really just a feedthrough cable which allows you access to your unused signals from the DAQ card.
    You definitely can measure frequency using your 6024E. An example installs with NI-DAQ 7.2 which shows how to accomplish this. To access this example go to the LabVIEW start up screen and hit the Find Example button. When the Example Finder opens up browse to the following location: Hardware Input and Output -> DAQ -> Counters -> DAQ-STC -> Measure Frequency (DAQ-STC).vi
    This example measures frequency and has a connection diagram on the front panel. The documentation for the example can be accessed by going to File -> VI properties -> Document
    ation, after you have opened the VI.
    You are correct that we offer a frequency input module for SCXI (SCXI-1126). This module would be useful if your input voltages are non-TTL, or if you need to measure more than one channel of frequency signals. This module has an input range of +/- 250Vrms and 8 input channels.
    I hope this helps! Let me know if there is anything I can help with or clarify.
    Ken S.
    Applications Engineering
    National Instruments

  • How to Use a System Repair Disc to Restore Windows 7

    Hi ! Please start here!
    http://www.dummies.com/how-to/content/how-to-use-a-system-repair-disc-to-restore-windows.html
    http://forums.toshiba.com/t5/Computer-Troubleshooting/What-can-I-do-if-my-Windows-7-or-Windows-Vista...
    http://forums.toshiba.com/t5/Windows-8-Knowledge-Base/What-can-I-do-if-my-Windows-8-laptop-won-t-sta...
    http://pcsupport.about.com/od/toolsofthetrade/ss/windows-7-startup-repair_2.htm
    PS Please read all these links and then post back here with your complete model number found on the bottom of your laptop and complete information to what you have tried to get your PC working I would love to spoon feed everyone. It's just not possible.
    Dokie!!
    PS2 Now read this and see if any thing here helps.
    http://forums.toshiba.com/t5/Computer-Troubleshooting/FYI-Recovery-to-Factory-Settings-Toshiba/td-p/...
    I Love my Satellite L775D-S7222 Laptop. Some days you're the windshield, Some days you're the bug. The Computer world is crazy. If you have answers to computer problems, pass them forward.
    Attachments:
    Capture40.JPG ‏238 KB

    Hi! I found this on the form!
    http://forums.toshiba.com/t5/System-Recovery-and-R​ecovery/How-To-Understanding-System-Recovery-Optio​...
    I Love my Satellite L775D-S7222 Laptop. Some days you're the windshield, Some days you're the bug. The Computer world is crazy. If you have answers to computer problems, pass them forward.

  • HT201250 I had to replace the hard drive in my old MacBook. I replaced it. Installed OSX10.6. Then using the system software I reinstalled data from my Time Machine backup. On completion it asked for my password. It is not accepted. I am locked out how I

    I had to replace the hard drive in my old MacBook. I replaced it. Installed OSX10.6. Then using the system software I reinstalled data from my Time Machine backup. On completion it asked for my password. It is not accepted. I am locked out how I overcome this?
    I was already using 10.7. But only had the disc for 10.6.

    Sorry I am new to this. Am I in the right area? I am using my iPhone to make contact. I am worried.

  • How to install forms 6i runtime using windows Systems Management Server?

    Hi,
    Our clinents are using oracle forms 5 application and we want to upgrade to forms 6i ( client /server ).
    How to install oracle forms 6i and reports 6i runtime in multiple client machines
    using windows systems management server instead of installing one by one manually.
    Regards

    Here is a quick summary on why this works...
    The Problem:
    The issue relies with the method and logic that MDT’s scripts use to query and validate that the proper disks, partitions and storage space reside before starting the installation of Windows.
    Essentially what you have configured in the Task Sequence and the UNATTEND.xml is analyzed by the MDT scripts then a validation is completed against the hardware in which you wish to install Windows
    on and if there are any errors you will be prompted with MDT Error or Warning dialogs.
    The problem is that the MDT scripts use WMI to query the hard disk, partition and free space requirements for Windows, but in the case of using GPT disk, the 2nd partition (MSR) that you have to create
    is hidden. The class that WMI uses for its query can’t see the MSR partition so instead of 3 partitions, it returns 2 in the query results; hence why DISK 0 PARTITION 3 doesn’t work as mentioned earlier when configured in the MDT Task Sequence.
    Although the above still confuses me as to why it works with DISK 0 PARTITION 2 since the WMI query results return PARTITION IDs 0 and 1 when it should return 1 and 2…
    The Windows Pre-Installation Environment however does see all 3 partitions correctly and we tried configuring in our Task Sequence to install Windows to DISK 0 and PARTITION 2 and in the UNATTEND.xml
    file to install Windows to DISK 0 and PARTITION 3 but due to timing issues of the way Windows installs with MDT, did this not work for us.

Maybe you are looking for

  • Notes and Location field disappear in iCal when I add invitee

    What's up with this? Also, once I add an invitee and hit Return, I can't delete the person.  I'm getting a question mark icon next to everybody, which is silly because AddressBook was used to make the suggestions I typed in. Running Snow Leopard 10.6

  • [Error running JSP portlet in JDeveloper

    I'm writing a JSP portlet with JDeveloper 9.0.3. The "index.jsp" works OK, and I can see the registration URL for my new provider. I deploy the application to Oracle9iAS 9.0.2.0.1 Application Server succesfully throught DCM servlet, register the new

  • How to dup d'base on same host ???

    Hi, I want to create dup d'base on the same host with diff directory structure with rman.I have few question to ask. I am using oracle 9.0.1 on win 2000 server and I am using stand alone server so what step I should take to avoid future mishapes? ple

  • Tips for migrating to SAP CRM (especially relationships)

    Hi Guru's We have created an Idoc interface via the Legacy System Migration Workbench (LSMW) over here for the migration of Business Partners, Business Partner Relationships, Opportunities, Activities and Quotations. We need to migrate data for 12 co

  • Migration is taking forever

    I'm transferring my data from my mac to macbook air and it it seem to be taking a really long time, at one stage it was down to 4 minutes, but then it went back up to 2hrs and now its stuck on less than a minute remaining, what on earth is happening?