VBAI Interface - Get inspection Image -- Image Dest

I have a complete Vision algorithm build in Vision Builder AI and programmed a VI in Labview which started the Algorithm and uses the results to compute. This works fine. Connection between Labview and VBAI is OK and results are nicely updated. Now I'd like to show the image from VBAI into my Labview GUI by using the "VBAI Interface - Get Inspection Image" VI from the Vision Builder AI toolkit. Whatever I try to connect to the "Image Dest" input of the VI I'm not able to let it run and give an image to show. See attached screenshot for details.
- What type of input do I need to link to get this VI working?
- Where can I find more detailed info than in the Context Help about all these VBAI toolkit VI's?
Solved!
Go to Solution.
Attachments:
ImageDest.JPG ‏65 KB

You need to use IMAQ Create to create an image. You can see an example of this in the Vision Builder AI folder under API Examples\LabVIEW Examples\LabVIEW API Example (Local).vi
Hope this helps,
Brad

Similar Messages

  • Error -354809 occurred at VBAI Interface - Open Inspection.vi

    I am using a NI Smart Camera 1722 and am stuck at Open Inspection.vi of my code.  It throw this error:
    Error -354809 occurred at VBAI Interface - Open Inspection.vi
    Possible reason(s):
    Vision Builder AI: (Hex 0xFFFA9607) The validation of the inspection returns errors.
    Very basic code here.  Not sure what the path is supposed to be for the .vi to work correctly.  I do not have Real-Time so I need a full path name.  Any help on this issue would be appreciated.
    Attached is the simple test vi.
    Attachments:
    NICameraTest.vi ‏20 KB

    This typically happens if the inspection you try to open is using resources (cameras, frame grabbers, serial ports, etc.) that are reserved by another process (or the simulate acquisition step can't find the image file to open). Try opening the inspection in the regular VBAI executable, which may provide more detailed information about which step in particular is failing. If this works without errors, make sure to shut down VBAI, it may be reserving the device the inspection needs to open. Make sure MAX is shut down as well. Once no other process is using resources the inspection needs to reserve, it will work. You can also try opening one of the shipping examples that don't use any resources.
    Hope this helps,
    Brad

  • Photoshop CS5 interface gets really slow *only* when an image is open

    So this is really odd. Photoshop gets really slow when any image, regardless of size is open. When there are no images open it runs smoothly. The interface gets really laggy, filter usage, tool selection or any other usage is really sluggish, but only with an image open, even if it's a single pixel.
    I've tried different performance settings - changing where the scatch drive is, how much memory to allocate, what the cache levels are set at, enabling/disabling openGL, etc. It makes no difference if it's after a fresh reboot or if it's been on for days. No software has changed since the upgrade. Memory test don't show any issues and no other application has this problem - Illustrator, After Effects, Maya, Mudbox, etc. are all fine.
    My system specs
    Windows 7 x64 Enterprise - Service pack 1 installed
    Dual Xeon quadcore E5620 @ 2.4GHx (sixteen threads w/hyperthreading)
    96 GB Ram - DDR3 - 1333 MHz / PC3-10600 - registered - ECC
    Nvidia Quadro FX 3800 - with latest stable performance drivers v 295.73 (tried changing these, no affect)
    Western Digital VelociRaptor  150GB 10000 RPM 16MB Cache SATA 3.0Gb/s OS Drive
    X3  Seagate Constellation 2TB 7200 RPM SAS 6Gb/s setup in a RAID 5 config
    I'd think it would be a memory issue if all apps had similar problems, or if PS had issues when just being open. It's odd that it happens only when an image is open.
    Thanks for any an all help.
    Duncan

    Duncan York wrote:
    I've tried different ..., enabling/disabling openGL,
    Just to make sure, did you close and restart Photoshop after changing OpenGL settings and before testing?  That's important, and not having done so could lead you to invalid assumptions.
    -Noel

  • Vision Builder for Automated Inspection: Image randomly appears upside down

    Hi everyone,
    I seem to be having a rather unusual problem here. I'm using an IDS UI-6280 camera to simply take a picture and log it to a file every minute. However, about 50% of the times when I start VBAI, the image appears upside down. The only solution I have found so far is to close VBAI and start it again. It usually takes a couple of tries before the image turn back up again, and then it's okay for the next couple of times I open VBAI. I have found no clues at all as to what could be causing this. Has anyone experienced something like this before?
    Clarification:
    - Once VBAI is running, the image does not flip randomly. If the first image is upside down, so are all the subsequent images. If the first image is upright, so are all the subsequent images. The flipping only seems to happen when I open VBAI. 
    - The flipping only seems to happen when I use VBAI. Using the IDS software always gives an upright image.
    - There is about a 50-50 distribution between upside down and upright images. However, there seems to be some pattern in when the flipping occurs. I just opened and closed VBAI 10 times, the upside down and upright state occured in an order like this (x=upside down, 0=upright): x0xxx00000
    Any help or insights would be greatly appreciated!

    1. Does the camera have an attribute for flipping it? If it does, the camera may not handle this attribute well when VBAI sets this attribute in conjunction with the other attributes as fast as VBAI can when it is initializing the camera. Most cameras respond when they are done and ready for the next attribute to be set, but some cameras respond before the attribute is done being set and can get in a messed up state if another attribute is set too quickly. You could try using the Read/Write Attribute Step in VBAI to manually set the flip attribute off before you acquire (make sure to set the flag to always set this attribute even if the current value is the same as what it will set to).
    2. If you acquire an image in MAX, is it upside down? Try Clicking on the camera in MAX, acquire, click to another camera or to another device (this will release the resources for the camera), click back on camera again in MAX and acquire again. Repeat this several times and see if you have the same flipping behavior as in VBAI.
    3. If you create a new inspection with just an acquisition step, does it still happen? Make sure not to change any of the default attributes for this test case. This will ensure the VBAI step uses the same settings you would see in MAX.
    4. What if you try using Snap Shot mode in the acquisition step instead of Immediate mode.
    Hope this helps,
    Brad

  • VBAI Balser Ace Continuous Image Acquisition

    We are running VBAI on a fast PC through an Intel Pro/1000 port and jumbo frame GigE switch to a large number of Basler Ace GigE cameras.
    Two of the cameras are inspecting a rotating part. They both have hardware encoder triggers wired to their input lines.
    In order to capture a sequence of 9 images, we are using the continuous every image acquisiont mode with buffers set to the max of 10.
    We assume that in this continuous mode these cameras will broadcast frames, nonstop, to the PC, consuming network bandwidth even for the gaps between successive inspections.
    In order to conserve network bandwidth, should we turn continuous mode off after we have captured 9 frames by putting the camera in shaphot mode with a read/write camera parameters command?  Or is there a way that we can use the Number of Frames to have it automatically stop after 9 images?
    The Basler users manual describes a number of low level Pylon SDK commands to control starting and stopping acquisition, but those are obviously not available from VBAI.
    Thanks,
         Nelson

    I tried using the camera's attributes for "Acquisition Mode" set to Single Frame and the "Acquisition Frame Count" set to 9, but it looks like the frame count only applies if the camera supports a "MultiFrame Acquisition Mode" and my Ace did not, so I don't think there's a good way to do it using publicly available camera attributes.You could do as you describe and change the cameras attributes so it's no longer continuous once you get the images you need. Another option would be to gate your encoder signal so the camera is only triggered when you want it to be (not sure how easy/feasible this is, but this would be the cleanest in SW side since you know every image is a valid one and you don't need to worry about discarding images). Another option is to throttle the camera bandwidth so it can't send data as quickly and doesn't take as much of the GigE bandwidth, and you can even use the "Frame Transmission Delay" attribute under Transport Layer to offset the two cameras so they aren't sending their images at the same time.
    Hope this helps,
    Brad

  • Get Info image data missing

    I have used the Finder's Get Info command and accompanying window to determine the height and width of images since the beginning of time. Today that capability suddenly disappeared. When I select an image in the Finder and invoke Get Info, under "More Info" there are two hyphens instead of the dimensions in pixels (e.g. 300x250). I tried a dozen images in various formats like JPG and TIF but the dimension info doesn't appear anymore. I'm using System 10.5.8 on a 2008 Mac Pro. All the other expected info (creation dates, name, preview, etc.) in Get Info is there except for the image dimensions.
    I did not do any recent updates and haven't noticed anything else amiss. I played around with Finder prefs, restarted the system, repaired permissions, etc. Nothing brought back the image dimensions. I can use Photoshop or other programs to get the image dimensions but using Get Info via the keyboard command was a nice shortcut.

    I don't directly use Spotlight - I prefer HoudahSpot's interface to the Spotlight index. I have not changed the prefs in HoudahSpot or Spotlight itself, and the Spotlight Privacy list was empty when I just now checked it.
    But you are definitely on to something because after checking the Privacy List to see if any folders had been inadvertently added, I then tried Get Info again on an image file and VOILA! all the image data had been magically restored. Indeed, Get Info image data is now working for all images I have checked in the past few minutes.
    Thanks for the pointer. Apparently something triggered Spotlight to prevent the data from appearing and the mere act of checking the Spotlight settings restored the "missing" info.

  • Problem with Adobe BRIDGE getting Photoshop/Image Processor menu

    When I open my drop-down or fly-out menu under TOOLS in Bridge (CS3 version), the entire portion of the menu which is supposed to appear next underneath the Cache line option is missing (i.e., Photoshop, Illustrator, InDesign, Start Meeting..., Photoshop services).
    What gives?
    I'm trying to get to Image Processor under the Photoshop menu option (which is supposed to appear in the Tools drop-down menu).
    Please tell me what's wrong. Thanks in advance.

    Thanks, but there IS no Photoshop subheading in my Tools menu.
    That exactly describes the problem I'm having!

  • How to get all images from folder in c#?

    I am trying to get all images from folder. But it is not executing from following:
     string path=@"C:\wamp\www\fileupload\user_data";
                string[] filePaths = Directory.GetFiles(path,".jpg");
                for (int i = 0; i < filePaths.Length; i++)
                    dataGridImage.Controls.Add(filePaths[i]);
    Please give me the correct solution.

    How to display all images from folder in picturebox in c#?
    private void Form1_Load(object sender, EventArgs e)
    string[] files = Directory.GetFiles(Form1.programdir + "\\card_images", "*", SearchOption.TopDirectoryOnly);
    foreach (var filename in files)
    Bitmap bmp = null;
    try
    bmp = new Bitmap(filename);
    catch (Exception e)
    // remove this if you don't want to see the exception message
    MessageBox.Show(e.Message);
    continue;
    var card = new PictureBox();
    card.BackgroundImage = bmp;
    card.Padding = new Padding(0);
    card.BackgroundImageLayout = ImageLayout.Stretch;
    card.MouseDown += new MouseEventHandler(card_click);
    card.Size = new Size((int)(this.ClientSize.Width / 2) - 15, images.Height);
    images.Controls.Add(card);
    Free .NET Barcode Generator & Scanner supporting over 40 kinds of 1D & 2D symbologies.

  • How can I get the image data from Clipboard with LV

    Anybody knows How can get the image data after pressd "print screen button" with LV?
    I want to program a software which can save a image as a bmp or jpeg etc, and the image data is from pressed print screen button. 
    How to get it out from clipboard. I am trapping about. thanks in advance.
    Try to make everything Automatic

    You can have a look at Rolf Kalbermatter's post here (give him stars) or, if you're using scripting, you can use the Application class Get Clipboard Image method.
    Try to take over the world!

  • I have a macbook pro, a mini display port to hdmi cable to hook up to my tv (a toshiba 1080p flatscreen).  what do I do to actually get the image on the tv screen?  Do I need another cable for sound?

    I am trying to watch a tv show that I purchased into I-tunes.  I have the cable and it hooks to the TV okay.  The TV shows the regular apple screen that looks like the universe screen - like when it boots up or is doing an upgrade on the OS.  I can't get the image to go from the laptop to the TV.  I tried under displays and it shows the TV as a display but I can't get the image on the TV.......Please help.

    Rwogera wrote:
    I couldn't transmit sound either, do i need another cable like Kim said? i mean it cant be transmitted through this HDMI port? as for me i have one of the latest mac pro with intel core i5..tnx
    I need to know which MacBook Pro you have.  Only mid-2010  and later MBP's transmit sound through MiniDisplay Port to HDMI.  I have no information about the Mac Pro, so you might want to go to that Forum and ask there.

  • I am trying to create a button in flash that will display 4 separate images at the same time when clicked.  I can't get the images to stay on when I take the mouse of the button.  I need the actions script code to make this happen.

    I am trying to create a button in flash that will allow the user to click on the button and 4 separate images show up at the same time.  I can get the images to appear when I click the button but they will not stay on the screen.  I need to know what code I use to make the images stay once the button is clicked, then I need to know exactly where I place that code.  It does not appear to be possible to add the action code to the buttons layer since each time I add a new layer I just get another "up" "over" "down" and "hit" line.
    Thank you in advance
    AP

    It is not clear how you are trying to realize this from your description.  If you are trying to create this within a button symbol it will not work.  Explain your approach and if there is code involved, show what you have so far.

  • How Do I get icons image directory to work in a JAR file?

    Yes, I must admit after going through the tutorial and other stuff I am stiil stumped
    I have an application that uses the jlfgr icons for the toolbar, and it works fine as long as i actually run it from the directory that it is in.
    I would like to put in into a jAr file, and be able to execute it from other places.
    I have a Directory named PhoneBook
    in that are the classes I use
    AddressBook - the main class
    PersonEntry - The 'data class'
    and various other things like FileFilters.....
    inside that directory there are two more:
    images - contains all the icon images
    Data - where the default 'database' entries are stored.
    I use code like this:
         private void fillToolBar( JToolBar bar )
              Dummy = new JButton(new ImageIcon("images/New16.gif"));
              Dummy.setActionCommand("New");
              Dummy.addActionListener(this);
              Dummy.setToolTipText("New");
              bar.add( Dummy );
              // etc etc
    to get all the icons into the toolbar
    I have made a Jar file that has all the classes and all the directorys with the icons in it
    and so the program runs, but does not get the icons for the toolbar, I just get a whole load of 'dud' buttons.....
    AS this is the first time i've ever got the GUI to look right rather than just the code functioning properly
    I'd like to get the whole thing in a working Jar file
    So Could someone show me Step By Step, How I get my classes and images into a Jar file
    so that i can from a different directory go
    java - jar Phone.jar
    and have the GUI come up with all the images, assuming I'm totally thickheaded when it comes to Jar files.?
    I also can't get the images to show up if I merely run the 'program' from another directory than the one it is compiled in
    I can get the program to run, just not access the images with something like
    java -cp blah/blah/blah AddressBook
    {the main class is AddressBook }
    the data directory can be anywhere as I use a JFileChooser to allow the user to open and save desired files.
    I really would appreciate some clear workable help. {though I'm running out of Duke Dollars...}

    What you need is a correct path to the directory
    inside of the jar. This can be accomplished by adding
    a line to your main program like this:
    URL
    url=myProgram.class.getResource("images/New16.gif");
    Dummy = new JButton(new ImageIcon(URL));
    where myProgram.class is the name of the class
    file that contain the main method.
    Hope this helps....
    ;o)
    PS: I don't want your dukes...I got them coming out of
    my ears!
    O.K, that works thank you.
    I put something like:
    for all the 'buttons' in the toolbar
    URL url = null;
    Class ThisClass = this.getClass();
    url=ThisClass.getResource("images/New16.gif");
    Dummy = new JButton(new ImageIcon(url));
    Dummy.setActionCommand("New");
    Dummy.addActionListener(this);
    Dummy.setToolTipText("New Database");
    bar.add( Dummy );
    etc for all the rest of the 'buttons'
    After Reading the API docs on URL's etc I'm still not sure as to why it works, but it does....
    I am able now to place the class files in a jar along with the images and it all works fine
    although now I don't quite follow all my code....................
    I assume that
    url=ThisClass.getResource("images/New16.gif");
    returns some sort of 'relative url ' ???
    Thanks for the help though.

  • Problem in getting the image through URL

    hi all,
    I facing the problem,Inwhich i am unable find the solution...I am using the following code to display the image
    public void doGet(HttpServletRequest request,HttpServletResponse response)
                        throws IOException, ServletException {
                   int data=0;
                   response.setContentType("image/png");
                   ServletOutputStream out = response.getOutputStream();
                   String file = request.getContextPath()+imageNames[0];
                   //String file = "C:/Program Files/Apache Group/Tomcat 4.1/webapps/ImageComm/WEB-INF/images"+imageNames[index];
                   BufferedInputStream in = new BufferedInputStream(new FileInputStream(file));
                   System.out.println("the size of the inputStream is..."+in.available());
                   System.out.println("the context path is..."+request.getContextPath());          
                   while ((data = in.read()) != -1) {
                   out.write(data);
    with the above i am not getting any error at the compile time but it was giving exception like FileNotFoundException.
    but the same thing(URL address) when i am copying on the browser it was displayig the image.
    (what might be the reason)
    one more thing when i commented on the url address and try to use the actual realpath address it was displaying the image with out any problem
    can anybody give me the solution like where to keep my images by which i can able to get the images through url address
    thanks in advance
    lakshman

    hi all,
    I am getting the image from the server.but the problem is i am getting the Exception as ArrayOutOfBound exception.
    It was displaying the Image for the first time.and when ever it was going for the second time in to the paint method it was displaying the IOException in reading the stream from the connection.
    can anybody give me the solution in rectifying that exception.
    thanks in advance
    lakshman

  • How can we get the image which is stored in clipboard by labview, is there any functions available like text from clip board

    How can we get the image which is stored in clipboard by labview, i can get the text in clipboard by using invoke node directly.but i cannot get the image, is there any functions or vi available.(image is in Png format)

    The Read from Clipboard method is, unfortunately, limited to text. If the clipboard contains an image then you need to use OS-specific functions calls. This is an example program for Windows. It's old, but it should still work.

  • How to get the image in docking control  in a report using doc management

    HI All
    My question is that is that i am storing one image using documents in jha2n.
    Now I want to get that image in report using Document management.
    Pls guide how to proceed as I am new and dont know anything about document management.
    Thanks
    Pooja

    Hi,
    Please kindly refer to the online help link below:
    [http://help.sap.com/saphelp_erp60_sp/helpdata/en/7a/973035624811d1949000a0c92f024a/frameset.htm|http://help.sap.com/saphelp_erp60_sp/helpdata/en/7a/973035624811d1949000a0c92f024a/frameset.htm]
    And for handling the DMS document, you may check the BAPIs in SAP Note: 504692
    Function group: CVBAPI
    BAPI_DOCUMENT_GETDETAIL2
    BAPI_DOCUMENT_CREATE2
    BAPI_DOCUMENT_CHANGE2
    BAPI_DOCUMENT_DELETE
    For display image in the docking control, pleae kindly refer to the SAP DEMO: RSDEMO_DOCKING_CONTROL
    Cheers,

Maybe you are looking for

  • How may I integrate a database with pictures in Muse (to show a catalog)?

    As you may imagine, yes, this question has a hidden background (the e-commerce), of course. Muse is a gold window to all those designers that see it's possible to create a website without using code easily. But, websites need rich content, that chang

  • How do I remove the cells from footer in Pages 5.5.2?

    In the new Pages, version 5.5.2, my footers have cells. I want to have only one cell but can't find a way to remove the cell barriers.

  • Urgent : Problem with Servlet Filters in Weblogic6.1

    Hi, We have developed an application using Tomcat4.1.24 with Weblogic6.1 Service Pack2. Now we are removing the Tomcat and moving the web layer into weblogic. We have implemented Servlet Filters and Listeners. When I converted .jar and .war files int

  • DB Starting Problem

    i faced the following error: ERROR: ORA-12505: TNS:listener could not resolve SID given in connect descriptor i want to tell you that i faced this error on the DB server more than 10 times within one Month and. i know that we can solve this problem b

  • Delivery Date changed to past date while ATPing 2nd Line

    Hello Gurus, I posted a question a few days ago, but now that I found a new example i have more info of my problem. So here is the scenario. (we are set up for back order) Orders is created for 5000 units on 09.23.2008. we do not have enough stock to