Acquire Image with two light sources

Hello
I am using a NI 1772 camera with Vision Builder AI. I have an acquire image function which has an external trigger. The lighting fixture is to an advanced illumination pulsar 320 strobe control and I have two different lighting sources; Axial Diffuse Illuminator DL37100 and DL097. My final goal is to acquire crisp images of caps. The caps are coloured from white to black, where the DL37100 picks out the Dark colour caps and the DL097 can pick out the white caps. I have a program that automatically adjusts the exposure time based on the colour.
Is there a way I can trigger the acquire image, and have the inspection take two images of a cap and determine which lighting source to use?

Instead of a dedicated circuit/hardware for this you could try using the on-board pulse generation functionality to do this. You could do something where one pulse generator is triggered by your outside source, and it generates a continuous pulse train of your frame rate. You'd then pass that output to an input that is triggering another pulse generator with a re-armed pulse with a delay of 1 edge count. The output of this would then effectively be for every other image. You'd then combine this with a single-shot, 2-image acquisition that is triggered off that intermediate pulse train. You'd have to make sure you stop the pulse train between each single-shot acquisition. Keep in mind that loop-back between output and input requires a pull-up resistor.
Note: I haven't tried this Rube Goldberg mechanism described above myself, but it seems like it could work
Eric

Similar Messages

  • Acquire images with labview via firewire and TWAIN

    Hi,
    I have a camera from optronics. This camera is plugged to my computer
    via a FireWire IEEE-1394 connection. The company optronics offers a
    TWAIN driver for this camera: some files like TWAIN.dll and
    TWAIN_32.dll. I would like to acquire images with labview and
    communicate with the camera but I have no idea on how I should get
    started.
    The 3 main things I'd like to do are: 1) change the exposure time 2) snap images 3) see the images in labview.
    I will really appreciate if someone could give me some ideas to get started...
    Michael

    AESulzer wrote:
    Michael, From a
    more general standpoint, what you'll need to do is use a Call
    Library Function Node (located in the All Functions>>Advanced
    palette) to call the necessary functions out of those DLLs. Before you
    can do this, you'll need to know some specifics about what functions
    are available in those DLLs and what parameters/outputs are associated
    with them. This information is typically available in the product
    manual or perhaps someone else with experience with your specific
    device can speak to that. Once you know the functions necessary to
    execute the desired operations, you simply configure a Call Library
    Function Node for each of them and place them in your LabVIEW code.
    Just
    saw this and want to clarify on this. This is a total no-go! The Twain
    interface is a very old technology from the days when Windows was a
    cooperative multitasking environment without real tasks or threads. In
    order for Twain to allow for some sort of multitasked integration into
    an application it requires you to integrate the Twain handling into the
    message loop of your application. As you do not have direct control
    over the source code LabVIEW is written from, this is a very tedious
    operation, with Windows message hooks and such, lots and lots of
    semaphore protection to avoid race conditions etc. etc.
    There is simply no way that you can do anything even remotely workable
    just by using the Call Library Node. You will need a (rather complex)
    external shared library that goes in between Twain and LabVIEW and
    takes care of all the subtleties. I know for sure because I wrote such
    a beast in the past.
    Now there is a Toolkit from the French Alliance member Alliance Vision http://www.alliancevision.com/us/index.html that
    does this. If you need Twain I would definitely go for this. My own
    library is only to the point of what I had needed for a particular
    project, (meaning it supports two specific scanners without issues) and
    without any documentation for external users and I couldn't give it
    away for free either.
    Just want to warn you but there is a good chance that the Alliance
    Vision Twain Toolkit does not really give you full programmatic control
    of all the parameters of non-scanner devices and you won't be able to
    avoid letting the Twain driver show the device specific configuration
    dialog to manipulate specific settings.
    In my own library I have low level functions to directly manipulate
    Twain attributes but in order to be able to use that you would need a
    through knowledge of the Twain specifications down to the API. That
    together with the difficulties to support other devices I don't have
    available, made us decide to not try to sell this Toolkit yet.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • NI DAQ CARD FORSCANNING PV MODULES WITH 10mA lIGHT SOURCE

    WHICH TYPE OF NI DAQ USB CARD FOR SCANNING PV MODULES WITH 10mA lIGHT SOURCE AND WHICH SENSORS CAN BE USED?
    THANKS!
    Solved!
    Go to Solution.

    ellisemuhire,
    How many analog voltage input channels will you need to read?  What is the range of the signal you will be reading?  How frequently will you need to sample the input signal?  How many bits of resolution do you require?  We have USB options that can read analog voltage with 12, 14, and 16 bits of resolution.  
    Here is a link to our USB Multifunction DAQ cards.  I can make a suggestion for you if you have these details.  
    Regards,
    Jared R.
    Precision DC Product Support Engineer
    National Instruments

  • How can I blur a image with two variables : degree and radius?

    how can I blur a image with two variables : degree and radius?
    a lot of thanks !

    What are the values of these variables supposed to represent?

  • Simultaneously trigger and display two camera images with two frame grabbers

    When I try to simultaneously trigger and display two camera images, each with their own frame grabbers, Labview is only able to display one of the images at a time.
    My hardware:
    Two Sony XC-EU50 cameras (not in sync with each other)
    NI-1410
    NI-1405
    My Software:
    Windows XP and Labview 7.1 with IMAQ
    I connect each camera to its own frame grabber.  Both frame grabbers are in the same computer.  I input a trigger into each frame grabber.  Both trigger signals are identical.  Trigger rate is only 0.2 Hz. 
    I want to display and save both images at the same time.  The program i put together only displays one image at a time.  The image that is displayed alternates from one camera to the other.
    Please help with any suggestions.
    Thanks.
    Shahab K.
    Attachments:
    TriggerTwoCameras.vi ‏137 KB

    Hi Shahab.
    Without having triggered two cameras connected to two NI boards with LabVIEW yet: This shouldn't be a limitation in LabVIEW.
    Updating two Image Display Indicators in one run of a while loop definitely works properly, so this cannot be the reason for the problem.
    Your code uses the IMAQ Snap.vi. This VI is not reentrant, so the both instances of this VI on your block diagram cannot execute at the same time.
    I could not find an appropriate example matching your scenario exactly. (Maybe someone else knows better?)
    I recommend to have a look at the examples in the "IMAQ Signal IO.llb" and do some copy and paste to get a VI that satisfies your requirements.
    The "Grab with two boards.VI" illustrates how to acquire images without using the not-reentrant "IMAQ Snap.VI".
    Hope this helps, Guenter
    P.S.: Do you know NI's Vision Forum? http://forums.ni.com/ni/board?board.id=200

  • How to open a raw image with two different exposures?

    Hello,
    I am trying to open a raw image file in Elements with two different exposures so that I can use an adjustment layer to blend the exposures. For the life of me, I cannot figure this out, and the online help is completely useless. I have read everything in the online help about working with layers and it does not mention a single thing about this process. I know it can be done because I have done it before with a previous version of Elements, but I remember it being a very awkward experience. Can anyone point me to a page with this technique, or share the secret? Thanks. If anyone from Adobe is watching this forum, please try to make this product easier to use, more intuitive, and less reliant on subtleties, and by all means, PLEASE improve the documentation as it is practically empty of any useful information.
    Thanks,
    Shan

    I tried that. When I open one image and set the exposure, then go to open the second image, nothing happens. I then saved one image as a psd file, then it would let me open the raw file a second time. When I had both open on the same screen and dragged the layer from one into another image, the layer size ended up being different than the other file. It was shifted down and to the left. I need these images to be pixel locked, and the user experience I went through did not allow me to do this.
    I also do not see a way to copy/paste layers between files.

  • How to acquire images with a Sony dsc

    Hi, I would like to know if there is a method to interface or connect a consumer digital camera (Sony dsc- s650) to labview, what I'm trying to do is control the camera in order to acquire images whit it, I have read some stuff about .icd files but i havent been able to find more information about it, this is a school project i need to build a machien vision app but i'm very limited with hardware so fas this is the only camera i have, thanks.

    Hello mjasso,
    If you cannot buy NI hardware to
    interface with a camera, you have three options: firewire, GigE or USB
    cameras. From a datasheet I found on the web, the Sony dsc-s650 has a
    USB interface. The following knowledgebase article explains which USB
    cameras are supported:
    http://digital.ni.com/public.nsf/allkb/89E33B77CFE244E986256F8E004E0F13
    . You will need the NI-IMAQ for USB driver if the camera has a
    DirectShow filter. You will probably have to contact Sony to verify
    this information.  
     Please refer to the following webpage
    to see the requirements for the IMAQ for USB driver:
    http://sine.ni.com/devzone/cda/epd/p/id/5030 . I hope this helps. 
    Vivek Nath
    National Instruments
    Applications Engineer
    Machine Vision

  • Batch levels adjustment. 300 BW images with varied lighting.

    I just photographed 300 black and white images with a homemade light box. My camera was on auto and the levels ended up varied from image to image.
    Is there a way to do a batch edit to these images that will pick the lightest color in the image and use that as white.
    I guess I might be looking for both the levels and white balance to be the same across all the images.
    Thanks
    Ben

    Thanks for the reply. I made an action that applies the black and white filter and the auto tone feature. It worked great on one of the images, but I have yet to get it to work on the batch. I think I have something wrong. Do I need a save feature in the action?

  • Define Data Model with Two Excel Sources

    Good afternoon --
    I am attempting to join two Excel spreadsheets within BI Publisher 11g (have tried both 11.1.1.5 and 11.1.1.6) and continue to receive an XDOException / NullPointerException error. Although my original use case involved two complex spreadsheets, I have attempted to test with two simple spreadsheets with these columns:
    Key_Project
    Project_Name
    Project_Description
    TaskID
    Task_Name     
    Project_ID     
    Percentage_Complete
    Can successfully load each spreadsheet into BIP and render the XML, but as soon as I load both sheets and create a join between Key_Project and Project_ID I receive either an empty dataset or an error. The error looks like this:
    XML Parsing Error: mismatched tag. Expected: </img>.
    Location: https://obi-demo.cadm.harvard.edu/xmlpserver/servlet/xdo
    Line Number 2, Column 580:
    But if you scroll to the end you can see this ambiguous error message:
    oracle.xdo.XDOException: java.lang.NullPointerException
    Please help with any and all suggestions... All my searches on Oracle Forums, My Oracle Support, and Google have come up empty so far...
    Thanks,
    Jason

    if u find any solution plz update me on [email protected] , i am also getting the same error

  • Problems acquiring images with IMAQ-1408

    I have a IMAQ-1408 acquisition card that I recently transplanted from an old computer to a new P4. Initially, it did record a few images (both in one of my programs and using the test panels in the Measurement and Automation Explorer. Now it doesn't acquire. I have tried several things like switching PCI slots, adjusting some of the settings like the sync voltage levels and such, but I'm not getting any images. All 6 diagnositc tests past (from 'FPGA register' to 'Basic interrupt'). Also, the card is still detecting something - when I connect to a video source, I get the error ... when I have it disconnected from the video, it gives an IMG-ERR-VLCK. So it must be detecting some of the V-synch pulses. Anyway, at what poi
    nt do I decide that my card is non-functional? Are there any more setting adjustments I should try. (BTW, I'm using an NTSC source).
    thanks

    This issue is sounding more like a hardware problem if the diagnostics fail repeatedly. Before considering repair or purchasing a new board, I still recommend testing the card in another machine just to be thorough.
    The board most likely can be repaired (I'm not sure about the cost, since it is most likely out of warranty). Otherwise, the PCI-1409 board is similar to the 1408, but has several advantages. Please see this KnowledgeBase for more information on the differences. If you are interested in the repair/replacement options, please generate a service request to speak directly with an engineer. You can generate a request online at "http://www.ni.com/ask">www.ni.com/ask. This will allow us to set up an RMA if need be.
    Regards,
    Jesse D.
    Applications Engineer
    National Instruments

  • Infospoke with two data source

    Hi all,
    is there a way in an Infospoke to include infoobjects belonging to two different data source?
    tks,
    Federico

    Hello Frederico,
    as far as I know you can only use one data source of type InfoObject, basic cubes or ods in an infospoke. Perhaps Analyses Process Designer (APD) may help you to achieve your goal. You can use it to join your InfoObject into a new one, or create a transactional ODS with the desired data. These new objects can than be used in an infospoke. And you can use a process chain to put all required steps in the right order.
    Kind regards,
    Jürgen

  • Report with two data sources...Need help!

    Post Author: mamorgan1
    CA Forum: General
    Good afternoon,It has been a while since I have used Crystal Reports and I was hoping someone could help me with this:Let me explain the data:We have an application that tracks Cases for Patients.  For every 1 Case there are MANY Notes.  For every 1 Case the are MANY Appointments.  I have two data sets that I am using as my data sources for this report:1.  Notes by Case2. Appointments by CaseOkay, I would like to create a report that displays for each Case:1.  Case information2.  Appointments related to the Case3.  Notes related to the CaseI keep getting a bunch on duplicates due to the 1:M relationships with Case.  Is there a solution?  I hope I have been clear.Thanks in advance.mamorgan1 

    Post Author: Jagan
    CA Forum: General
    Where does the case information come from? Where's the case data source?
    Try pushing one of the tables into a subreport

  • Error in viewing data in a data template with multiple data sources

    Hello,
    I have designed a data template with two data sources.One is from DEPARTMENTS table and the other datasource is a xml file.Following is the code for the data template :
    <dataTemplate name="EmployeeListing" dataSourceRef="demo">
    <parameters>
    <parameter name="p_DEPTNO" dataType="character" defaultValue="20"/>
    </parameters>
    <dataQuery>
    <sqlStatement name="Q1">
    <![CDATA[SELECT DEPARTMENT_NAME,DEPARTMENT_ID,LOC from DEPARTMENTS]]>
    </sqlStatement>
    <xml name="empxml" expressionPath=".//ROW[DEPARTMENT_NAME =$DEPARTMENT_NAME]">
    <url method="GET" realm="" username="" password="">file:///D:\OraHome_1\xmlp\XMLP\DemoFiles\Employee Salary Report.xml</url>
    </xml>
    /dataQuery>
    </dataTemplate>
    The problem is when i am trying to view the data, only data from SQL Query Q1 is getting displayed and the data from Employee xml is not at all getting displayed.
    Could anyone please let me know what i am missing?
    Thanks
    Nutan
    Edited by: user609971 on Oct 23, 2008 8:06 AM

    This is from Documenation sample....
    Did you see the data structure section, where you say, how you wanted the columns ?
    <?xml version="1.0" encoding="WINDOWS-1252" ?>
    <dataTemplate name="Employee Listing" description="List of Employees" v
    ersion="1.0">
    <parameters>- Defines a single parameter for the Department Number
    - with default of 20:
    <parameter name="p_DEPTNO" dataType="character"
    defaultValue="20"/>
    </parameters>
    <dataQuery>
    <sqlStatement name="Q1">
    <![CDATA[SELECT DEPTNO,DNAME,LOC from dept
                      order by deptno]]>
    </sqlStatement>
    <xml name="empxml" expressionPath=".//ROW[DEPTNO=$DEPTNO]"> - Defines name
    - and link to DEPTNO in Q1
    <url method="GET" realm="" username="" password="">
    file:///d:/dttest/employee.xml</url> - Defines url for xml data
    </xml>
    </dataQuery>-
    <dataStructure>- The following section specifies the XML hierarchy
    - for the returning data:
    <group name="G_DEPT" source="Q1"
    <element name="DEPT_NUMBER" value="DEPTNO" />
    <element name="DEPT_NAME" value="DNAME"/>
    - This creates a summary total at the department level based
    - on the salaries at the employee level for each department:      
    <element name="DEPTSAL" value="G_EMP.SALARY"
    function="SUM()"/>
              <element name="LOCATION" value="LOC" />
    <group name="G_EMP" source="empxml">
    <element name="EMPLOYEE_NUMBER" value="EMPNO" />
    <element name="NAME" value="ENAME"/>
    <element name="JOB" value="JOB" />
    <element name="MANAGER" value="MGR"/>
    <element name= "HIREDATE" value="HIREDATE"/>
    <element name="SALARY" value="SAL"/>
    </group>     
    </group>
    </dataStructure>
    </dataTemplate>

  • Acquire with two camera's to one image??

    Here is my configuration:
    Windows 2000
    PII 866
    512mb ram
    1) Imaq PCI-1409
    1) Imaq-A6822
    2) JAI CV-M50 camera's
    2) Pentex C60607 lens'
    I would like to snap an image with both cameras and combine the two to make one image. The part will not be moving and time is not critical. The camera's will be mounted 3.8' above the part which will give me about a 3' square area for each camera. So basically I would like to end up with one image approx. 3' X 6'. How is the best way to go about doing this? Or is it even possible?

    It all depends on how accurately you want the images to be joined.
    If you just want to display them as a single image, it is very easy. IMAQ ImageToImage will paste one image into another.
    If you want to seamlessly join them together, and do it accurately enough for measurements or feature detection, it is a lot more difficult. It is impossible to rotate and align the cameras so that two images can be pasted together accurately without manipulation of the images. You will need some mapping tools and figure out how to rotate and align the second image with the first. You will need a small portion of the images to overlap so they can be matched up. You may need to map both images to eliminate distortion first. If your part has a noticeable thickness
    variations, you will get different perspectives for the two images.
    Bruce
    Bruce Ammons
    Ammons Engineering

  • MAC PRO (Early 2008) RAID CARD ISSUE - SYSTEM FREEZEHello (hopefully someone can shed some light on my issue)  I own as above a MAC PRO (Early 2008) this has a RAID card installed along with two 15k.7 cheetah hdd (320gb) and a spare drive, (which i m

    Hello (hopefully someone can shed some light on my issue)
    I own as above a MAC PRO (Early 2008) this has a RAID card installed along with two 15k.7 cheetah hdd (320gb) and a spare drive, (which i made a regular drive)
    a while ago i had to replace the RAID card battery, so i did this, over a year later the same thing happened again, but as previous just left it and the system seemed fine for ages, until last night i was working in PHOTOSHOP and everything just froze and the screen kind of appeared GREEN, could not do a single thing. So restarted the mac, this time grey screen for ages and a message appeared, (macs version of blue screen) (see attached).
    I restarted the machine and this time a flashing question mark folder!
    could not do a thing.
    so i found my copy of snow leopard and got the computer to run this and at least launch the DISK UTILITY and (Interestingly in the drop down menu RAID UTILITY was also in the menu) but it did not matter which utility i used the (RAID or DISK) neither could see any of drives, just the dvd drive.
    so looked around on you tube and various forums and discovered if i take out the RAID CARD and re-plug the main lead from the RAID card back in to the LOGIC BOARD I would be reverting the MAC to a normal regular non-RAID computer.
    After performing this HARDWARE task and inserting all three HDD, and running the DISK utility from the drop down menu via the SNOW LEOPARD disc.
    (interestingly since the RAID card had been removed the RAID UTILITY  from the drop down menu no longer appeared). running disk utility I can now only see the regular (spare) hdd and DVD Drive, but the two RAID HDD , again, still do not show up DISK UTILITY?
    O.K. so i could chuck out the RAID card (AND RAID HDD) and just go with a regular set-up, and run a back restore from Time Machine on a NEW hdd purchased.
    but what is wrong with the RAID, is the card at fault or are both HDD used for the RAID knackered? can i perform any tests, to see whats what?
    thanks for your help in advanced.

    hello people, the issue was in fact the GRAPHICS card nothing to do with the HDD or RAID system ( although this did cause issues with the RAID system it basically lost its way) below is my replay to another similar  problem some one else had!
    working in photoshop and then everything stopped working and the lot froze! only option was to force shutdown (via button).
    and try to restart, hoping all was fine, this was not the case :-(
    I had the added issue of the RAID card system, that i have, this was confused to say the lease and would not behave or work, causing the start up to hang.
    so i thought the HDD must be bust and the root cause. ( but soon learnt it was not the cause )
    ...bought a new HDD removed the RAID card and replugged the cable from RAID card into LOGIC board, ( making the computer act like any normal non-RAID system). I managed to install the OSX, using the snow leopard disk way. once the mac was running, i started to notice the screen would flicker and started to see 'artefacts'. so i started to reveal my symptoms to the web and forums and soon discovered that my graphics card could be the issue all along?.
    (nvidia geforce 8800gt 2x dvi).
    I read up on that a fix, could be either A. reply the thermal paste, as the card could be over heating or B. stick the card in the oven trick.
    Tried option A. first and nothing still issues, so last night took the plunge carried out option B. and ta da it worked! i even managed to run
    from my new HDD my lasted install OS X, absolutely fine. I then thought, maybe i could repair my RAID so replugged all the HARDWARD back in and
    carried out a disk repair and disk permissions on drives( took a small amount of time), via the SNOW LEOPARD disc - (Disk utilities) and this worked and now have my system working as it was just over 6 days ago.
    what was the cost to get this?  bought a new hdd so 40.00gbp and thermal paste and cleaner kit ( your still need to do this ) search video card trick on you tube.
    and renew thermal paste, approx 15.00gbp, technically i don't need the new HDD, but it was all part of the trial and error way i went. ( i do have extra storage as a result!)"

Maybe you are looking for