USB Camera Flicker, and Showing Edge Finder Results

Attached are 3 files.  The vi (simple.vi), the variable library and the project file.  Hopefully it reassembles easily.
One issue I am having is that the image 'flickers', and it seems to be creating havoc with the vision tools.  What is also strange is that every once and a while, it seems a 'raw' image (meaning color) slips in, which may actually be the flicker problem.  I am using a USB camera to capture the video.
I thought of using a shift register, which helps a little, but the problem persists.  I have a feeling it is something dumb I am missing.
Also, I am trying to figure out how to get the 'Imaq Simple Edge' to show up on the screen, like the 'Imaq Find Edge' does.  I am assuming there is a Boolean somewhere I am missing.  I would like to use this to see if the edges are where they are supposed to be, as well as if the lines are drawn in the right place.  This is mainly for debugging purposes.  What I have been using in the interim is the Vision Assistant to see if the calculated values line up with where they should be.  It would be much nicer to have it in the VI.
In case you are curious, what I am trying to do is find 4 discs on any of 3 pins.  The camera and target are not locked together, so I am using the top, bottom and left edges to locate the base, then calculate where the pins should be, then draw edge find lines to see if they are there.  Ultimately the logic (not included yet) will allow me to determine which disc is where.
I tried pattern matching, but this setup is too 'random' for it in testing.  The basic vision setup in this vi seems to work, and is similar to what I have used in industrial applications in the past.
Thanks for any help.
Rich
Attachments:
Simple.vi ‏216 KB
Variables.lvlib ‏17 KB
Tower.lvproj ‏8 KB

Thank you for the feedback.
I tried the 'Snapshot' option, and the graphic overlays disappeared.  Ultimately, this doesn't matter, but while I am still tinkering, it is useful to have it displayed.
What seems to have fixed it, is I removed the shift-register, and got rid of the Imaq Cast.  Instead, I am using the 'IMAQ Create' to make the grayscale image.  This has gotten rid of the twitch, as far as I can tell, allows the overlay, but the image displayed is color (not a big deal).  Attached is the updated VI/
I still can't figure out how to get the overlay for the Edge Detector lines.  Attached is a picture of what I would like to display with the edge finding lines (the little green squares).
I am assuming the Edge Detector is less processing intensive than the Find Straight Edge.  This is the reason I am using Edge Detectors to find the discs.  If this is incorrect, I can probably use the find Straight Edge to find the edge I am looking for.
Attachments:
overlay.JPG ‏112 KB
Simple.vi ‏216 KB

Similar Messages

  • When I was updating my ipod touch 4g 8g 4.3.3 the USB came out and now it just shows connect to itunes and when i try to update it comes with error 6. I do all of the help things and nothing

    When I was updating my ipod touch 4g 8g 4.3.3 the USB came out and now it just shows connect to itunes and when i try to update it comes with error 6. I do all of the help things and nothing happoned

    First see if placing the iPod in Recovery Mode will allow a restore.
    Next try DFU mode and restore.
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    If not successful then time for an appointment at the Genius Bar of an Apple store. You are not alone with this problem.

  • What is the exact technical difference between "Lightning to USB Camera Adapter" and "Lightning to USB Cable"

    Mainly I am interested in attaching the iPhone to a receiver (or car etc.) to play music.
    Both the "Lightning to USB Cable" and the "Lightning to USB Camera Adapter" seem to do the trick. So what is the exact technical difference between the two items?
    When connected to a receiver, is the iPhone the USB Master in both cases? Is the USB "Audio Device Class" standard used to transmit audio?

    Thanks for all the answers! I think I should specify the use case much more clearly. Sorry for not having done this earlier.
    Use Case 1:
    When I connect the iPhone to the receiver I can use the Lightning to USB, because the receiver has a female type A, just like e.g. a PC or like the charger. So I would agree that the Receiver must be the USB host, and the iPhone the USB device. This works just fine in my case, with iPhone and iPad.
    In this case, the audio goes from the device to the host, or "Audio-in".
    Use Case 2:
    A friend of mine has a small device that converts USB to Toslink. This thing has a female Mini USB Type A, which is typically used at the receiving side of a USB connection. This device can be connected e.g. to a Mac, and then the Mac can output audio via this device to receiver which accepts optical Toslink signals.
    In this case, the audio goes from the host to the device, or "Audio-out".
    It is this use case 2 that I am unsure about:
    a) Can the Lightning to USB cable be used in this case (assuming that I find the necessary non-standard adapters to actually connect the USB ports)? This would mean that the iPhone can act as a USB host with the Lightning to USB cable.
    b) I know that the Lightning to USB Camera Adapter does convert the iPad into an USB host, otherwise it could not read data from a camera. So could this adapter also be used to produce "Audio out" to a USB device that supports receiving music?
    If yes, would this also work with an iPhone (as pointed out in another answer, the iPhone does nor support reading pictures from a camera)?

  • USB External drive not showing in Finder, or on Desktop

    I have two USB external drives from the same manufacturer. One is for regular storage, the second is for Time Machine and movies.
    The first one shows everywhere, on the desktop, in finder and in Disk Utility.
    The second drive shows in Disk Utility only. However, it is functioning fine with Time Machine. So it is mounted. I have tried several repairs, and it reports no fault found. So it is certainly functioning correctly, but a setting or error in the operating system is not allowing it to be viewed in finder, or on the desktop.
    Any suggestions.

    Correction: Title should be Firewire External drive not showing in Finder, or on Desktop.

  • Can you connect a usb SuperDrive if you use a lightning to usb camera adapter and a usb hub?

    I was just wondering if ypu could connect a usb SuperDrive if you use the lightning to usb camera adapter, a usb hub, and then plug the SuperDrive into the hub. Will it work to play disks, or movies, or something?

    No, drive consume too much power.
    Try using a wireless flash drive.

  • Can I use a USB camera with the 3rd party USB camera software and share screens?

    I want to do more than just use a USB camera w/iChat (or ichatusb).  I also need to be able to initiate screen sharing between two computers.  Specifically, I will use iChat with an insight built in camera on my end, and the other person will be using an iMac G5 PPC using a USB camera and the 3rd party USB software for USB ichat support.
    My question then is am I able to request screen sharing (taking over their screen) from my ichat/fw combo to their ichatusb/usb combo?
    thanks
    dc

    Hi,
    The Cameras don't come into this at all.  (But iChat and OS versions do)
    Each end needs iChat 4 or higher.
    Go to the Video menu and Enable Screen Sharing (Selecting toggles a tick On and Off (Tick Present is ON) )
    Highlight Buddy in list and use the Screen Sharing icon at the bottom of the list (interlinked rectangles).
    The G5 could be on Leopard (iChat 4) and be using a  USB 1.1 camera that would need iUSBCam (formerly iChatUSBCam) as well as the Camera manufacturers Software.
    iChat 3 (In Tiger OS 10.4.x) on the G5 with a USB 1.1 camera, Software and iUSBCam may well offer a Screen Sharing option (Or rather Desktop as Video Feed) in the iChat > Video Menu  and that will not work
    However if the G5 has USB 2.0 ports (not the Keyboard additional ports) then if it is up to OS 10.4.9 it can use a UVC Camera for Video Chats  (UVC = USB Video Class No need for Additional Drivers) but Screen Sharing will still be an issue due to the iChat version.
    IF the G5 is still on OS 10.4.x then you will have to use a third Party VNC app at both ends (And run a iChat Audio Chat along side)
    9:33 PM      Friday; September 2, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • 4s front camera flicking and crashing?

    Just notice today when i try facetime my front camera start flicking, tried to reset it but still doing it.  Is anybody got this probs? Need advice. Also looked on the net but cant find any answer. I only got the phone for two months from t- mobile will they replace it or try to fix it.

    Restore as new, not from backup.
    If the issue persists, take the device to Apple for evaluation.

  • What can i do if my ipod shuffle usb cable snapped and i cant find a new one?

    i had this ipod for like 1/2 a year and i need a cable to charge it, im a musician and i need it to listen and play. plz help i need this =>

    If that's a 2nd gen shuffle, which is the one shown in the image, the linked USB cable from the Apple Store is the wrong one.  That cable is only for the 3rd and 4th gen shuffle, as noted under Compatibility in the description.  The 2nd gen shuffle has a different connector.
    This is the replacement for the 2nd gen shuffle
    http://store.apple.com/us/product/MA694G/A/apple-ipod-shuffle-dock
    It is a bit costly, especially compared to a brand new 4th gen shuffle for $49.  There are third-party replacements that cost less at other online stores.  They should work, but make sure the item is described as being for the 2nd gen shuffle, not 3rd/4th gen.

  • G45 gaming USB 3.0 ports make all USB's flicker and stop working

    I just got my PC up and running but every time I install the USB 3.0 drivers my G510/naga go crazy and stop working. I've updated all drivers and I'm running ver 1.6 bios, Should I just RMA it back to newegg before my 30 days is up?

    Its a z87 g45 and if I install the 3.0 intel drivers all other usb(plugged into the 2.0 back ports and 2.0/3.0 front ports) go crazy flickering and then they stop working if I uninstall the drivers they are all fine again.
    razor and g510 are all up to date.
    This is my first MSI product and it might be my last lol.

  • Created custom camera profile in DNG editor and can't find it in LR

    I have created custom camera profiles and can't find them in Lightroom 3. Can someone help? I'm a Mac user.
    David

    I figured it out. I saved the profile, but I did not export it.
    Thanks for the help everyone.
    I was primarily interested in doing a custom tone curve to match my Mark IV to my 5D. The results were really bad, so I re did the profiles to simply get close colors, and I used the Point Tone Curve to match the two cameras. I've always liked the tone curve from the 5D, and I've always hated the one on the Mark IV.
    Problem Solved.
    Thanks again.
    David

  • Execute a VO '4' times and show the result in single table at once.

    Hi,
    I want to execute single a VO query multiple times with different parameters and show the results together in a Table at once
    In Detail
    I have a table to which is associated with a VO.
    The VO contains SQL whose WhereClauseParameters need to be dynamically binded.say headerId and lineId
    Select ... from ....where headerId = :1 AND lineId = :2
    I have to pass these 4 values and show all the results in a single table
    headerId lineid
    H1 ............... L1
    H1 ............... L2
    H2 ............... L1
    H2 ............... L2
    I understand that i need to bind parameters dynamically and exceute the VO.
    As i have 4 different set of parameters, the view object will be executed 4 times.
    I want to show all the results together in a single table.
    How can I do it.
    thanks,
    Gowtam

    Hi Mani,
    Thanks a lot for the patience and detailed solution.I will try it out and tell you the status.
    Meanwhile, I have 2 questions on this solution(just curious)
    I will give you the snapshot of the table
    Table - ModelInfo
    Model......Tube..... Float....Size......Col5.....Col6.......Col7.......
    M1............T1.......... F1. .....1..........C15......C16.....C17.....
    M1............T1...........F1.......2..........C25......C26.....C27.....
    M1............T2......... .F2.......1..........C35......C36.....C37.....
    M1............T2...........F2.......2..........C45......C46.....C47.....
    M2............T1.......... F1. .....1..........
    M2.............T1..........F1.....2.........Cn5.......Cn6........Cn7
    .<continues...>
    .<till>
    .Mn............Tn..........Fn.......n........Cxy.......Cpq.......Crs....
    Question 1:
    if you notice this data,
    The Columns 5 to 7 are dependent on Combination of Model,Tube,Float and Size.
    Hence will this query work properly(without mixing up data from other Pk combination) and will it be efficient?(I Know this is a stupid qst, still double checking..As your solution assumes that each row is unique for Model only..which is not true)
    Select ...From....Where
    Model in(M1,M2,..Mn) AND Tube in(T1,T2..Tn) AND Float in(F1,F2,....Fn) and Size in(1,2...n).
    In short, will C15,C16 and C17 appear only with M1,T1,F1,1..I believe it will.
    Question 2:
    As I told,
    Third party program will return Array of Objects.
    Each object will have a variable called Flow along with
    Model,Tube,Float and Size.
    Flow is not stored in the database(can not be stored due to functional reasons).I want to show this Flow also along with other columns fetched from the DB for all 100+ rows.
    How can I do it?
    I will give u the scenario(with just 2 rows)...please check(Flow is not stored in DB)
    Third Party object : ObjModel
    Model......Tube..... Float....Size......Flow
    M1............T1.......... F1. .....1..........100
    M1............T1...........F2.......2...........200.
    M1............T2.......... F1.......1..........300
    M1............T2...........F2.......2..........400
    My concern is,
    After the VO executes and shows other 6 columns, it should show Flow appropriately.(associated with each object in the array)
    I understand that I need to have a Transient attribute in VO called[b] Flow.But I don't know how to perform the two tasks simultaneously..
    Task1:Your solution on showing table columns
    Task2:Showing Transient data for each object returned from program.
    thanks,
    Gowtam

  • Show in Finder Option Missing from Search

    I can't figure out how to find the "Show in Finder" option after searching for a file. Is there some new secret finger gymnastics option to get this to show up? It used to be all I had to do is right-click.

    I found "Show all in Finder" after scrolling down like you said. Unfortunately, that does not show those search results in the finder, it runs a new search and shows thousands of results that I have no interest in. What I want is the "Top Hit" usually, but it becomes a needle in a haystack after clicking "Show all in Finder". With trial and error I found that if I hold down the Command key, the tail end of the file path is shown in the preview window, but not enough to find the file and it is not clickable.
    Another thing I found is that if you click on the Kind section heading, it will run a search showing all documents of that kind -- also useless since there are thousands. Unfortunately clicking on "Top Hit" does nothing. Is it possible there is another secret way to get the functionality I want that used to be there?

  • A five USB cameras in 1-e PC?

    This isn't a big problem with different camera models. But my favorite is Creative WEB Cam Live! Ultra. I have problem to see 2-o or more cameras together. I have too much video-software...
    A help, please!Message Edited by Boo on 05-18-2006 03:38 AM

    The free NI-IMAQ for USB Cameras driver is meant to support simple USB webcams that use DirectShow.  For machine vision or scientific imaging applications, most USB cameras don't have the performance or the features needed, like triggering.  The primary "customer" for the free driver has been universities that use webcams in labs.
    With that said, there are a few industrial USB cameras out there that can be used for machine vision.  The problem is tha there is no industrial USB camera standard that covers them all (like there is with FireWire), so companies like National Instruments would have to provide and support different drivers and software tools for every indutrial USB camera. 
    A better solution is IEEE 1394 (or FireWire).  They offer the same performance as USB 2.0 cameras and are around the same price.  On top of that, almost every large industrial camera manufacture has a line of industrial FireWire cameras (including Sony, Basler, FLIR, and Cohu), and they all conform to the same DCAM (or IIDC) standard.  WIth this standard, our one driver, NI-IMAQ for IEEE 1394 Cameras, works with all of them.
    Vision Builder AI is designed to solve machine vision applications without programming, while USB cameras usually don't provide the triggering or advanced modes necessary for machine vision.  Because machine vision and USB cameras don't usually go together, we didn't provide support for USB cameras within Vision Builder AI.  My question to you, another_novice, is why would you like to use a USB camera with Vision Builder AI?  Are there particular features in a certain USB camera that you can't find in other cameras?  I would really like to know so we can get a better picture of how our customers are using our products.
    Thank you.
    KyleV.

  • Can't capture usb cam

    It seems that JMStudio can't capture usb cam. It just give me a pink screen.
    Platform : Win98 SE
    camera : logitech usb cam
    JDK version : 1.3.1
    JMF version : 2.1.1
    JMStudio works well when I use a BT848 capture card. I don't know what's the problem. Please advise.
    Anson

    Hi !
    Follow the procedure :
    1) Install JDK successfully.
    2) Install JMF successfully.( This will set the class
    path etc. for you automatically)
    3) Connect the WebCam.
    4) Install the Driver Software which comes along with
    the WebCam.
    5) Run the JMFRegistry.exe (Which you can find @
    JMF2.1.1/bin folder )
    In that click the Capture Devices option.The program
    will capture the attached/available media devices.
    6) Run jmfinit.exe, ( in the above mentioned folder)
    7)Try capturing the Audio/Video from your mic/WebCam
    If you are able to do this, your implementation is
    successful.
    Hope this helps !
    Max !Hi Max,
    Thanks for your reply first.
    Actually I have captured video successfully by using a pci capture card. But when I use a usb camera, JMStudio just show a pink screen or just halt my pc (btw, JMFRegistry can successfully detected my usb camera).

  • Support for USB cameras in VBAI?

    NI have a free driver that allows Vision 7.1 to access USB 2 cameras. Is there anything similar available for VBAI that would allow me to use an industrial USB 2.0 camera?

    The free NI-IMAQ for USB Cameras driver is meant to support simple USB webcams that use DirectShow.  For machine vision or scientific imaging applications, most USB cameras don't have the performance or the features needed, like triggering.  The primary "customer" for the free driver has been universities that use webcams in labs.
    With that said, there are a few industrial USB cameras out there that can be used for machine vision.  The problem is tha there is no industrial USB camera standard that covers them all (like there is with FireWire), so companies like National Instruments would have to provide and support different drivers and software tools for every indutrial USB camera. 
    A better solution is IEEE 1394 (or FireWire).  They offer the same performance as USB 2.0 cameras and are around the same price.  On top of that, almost every large industrial camera manufacture has a line of industrial FireWire cameras (including Sony, Basler, FLIR, and Cohu), and they all conform to the same DCAM (or IIDC) standard.  WIth this standard, our one driver, NI-IMAQ for IEEE 1394 Cameras, works with all of them.
    Vision Builder AI is designed to solve machine vision applications without programming, while USB cameras usually don't provide the triggering or advanced modes necessary for machine vision.  Because machine vision and USB cameras don't usually go together, we didn't provide support for USB cameras within Vision Builder AI.  My question to you, another_novice, is why would you like to use a USB camera with Vision Builder AI?  Are there particular features in a certain USB camera that you can't find in other cameras?  I would really like to know so we can get a better picture of how our customers are using our products.
    Thank you.
    KyleV.

Maybe you are looking for

  • Previously downloaded songs stop and start over during re-download.

    I have several questions, and I'm hoping that someone can help me out with at least one of them. I have a 4th generation iPod Touch, and recently I had to start syncing to another computer after all of the USB ports on my computer stopped working out

  • SVG: Chart error: ORA-20001:

    Hi, We are using 1.6.1.00.02 . I got a problem with SVG chart. The query returns following error: SVG: Chart error: ORA-20001: bar_char_error ORA-20001: get_data_error: ORA-20001 Fetch error: ORA-01782 The column names are correct. The same query wor

  • Page Cannot display page

    Error : Cannot Display page You cannot complete this task because one of the following events caused a loss of page data possible causes: 1.You have left your login session idle past the timeout period. 2.A system failure has occured. 3.The applicati

  • Edited photos not syncing...only originals sync.

    I have edited photos on iphoto that do not sync to my iphone. Only the originals sync. I have tried the whole delete ipod cache thing and it didn't work. Any ideas?

  • My computer suddenly shuts down!

    I need some help I just got my computer I download some softwares that i needed for editing video and audio but now it has been the third time that I am working surfing on the internet and all of the sudden crashes and shuts down if anyone could help