Get Image of Control

Ordinarily, the "Get Image" method of a control works fine.  However it has the side effect of purging the undo buffer.  I want to get an image of a control without purging the undo buffer.
The "Front Panel:Get Image" method of a VI doesn't purge the undo buffer, so it should be possible to calculate the position of a control on the FP then crop the image.
However there is some extra offset that comes into play that I can't figure out; this offset seems never to vary in any VI, but is different from VI to VI.  The attached VI shows how I'm calculating the position.
Any ideas?
Attachments:
Get_Image_of_Ctl.vi ‏19 KB

Yes, that works in LV 2010, but not in LV 2011.  I've managed to cobble together a workaround that works reasonably well.
Attachments:
Get_Image_of_Ctl.llb ‏97 KB

Similar Messages

  • Rich text box used in Infopath Form not displaying option to get images from Computer

    Hello,
    We have used "Rich text box" in Infopath Form which is not displaying option to get images from Computer.
    Options available are : From Address, From SharePoint
    But if we Rich text box in list, then it works fine with "From Computer" option.
    can you please help me out to get this option.
    Thanks in advance.
    REgards,
    Jayashri

    Hi,
    From your description, there is no “From Computer” option to get images with rich text box in InfoPath form.
    Per my knowledge, by design there are “From Address” and “From SharePoint” options without “From Computer” option in rich text box in InfoPath form. As a workaround, you can develop a custom InfoPath Rich Text box to do it.
    About developing a custom InfoPath control, I suggest you create a new thread on the forum “Visual Studio Tools for Office”, more experts will assist you with InfoPath development.
    Visual Studio Tools for Office:
    https://social.msdn.microsoft.com/Forums/office/en-US/home?forum=vsto&filter=alltypes&sort=lastpostdesc
    Thanks,
    Dean Wang

  • Getting image stored in database !!

    Hey !!
    I'm really trying to solve so much problems i'm having with javafx !!
    So, like the title may suggest, i'm having problems as to get image from the database !!
    Everything seems fine but it tells me that there is "Exception while runing Application"
    here is the code !!
    @James D, i will come back bugging yu again to see how to use the stored images and display them inside the combobox and to render them ^^
    I haven't well understand how well as to use the enum struc in which yu declared the composed <Image,String> type ^^
    import java.awt.image.BufferedImage;
    import java.io.ByteArrayInputStream;
    import java.io.InputStream;
    import java.sql.Connection;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import javafx.application.Application;
    import javafx.event.Event;
    import javafx.event.EventHandler;
    import javafx.scene.Scene;
    import javafx.scene.control.ComboBox;
    import javafx.scene.image.Image;
    import javafx.scene.image.ImageView;
    import javafx.scene.layout.StackPane;
    import javafx.stage.Stage;
    import javax.swing.JOptionPane;
    * @author Minedun6
    public class DynamicCustomComboBox extends Application {
        Connection c = connection.ConnecrDb();
       PreparedStatement pst = null;
       ResultSet rs = null;
       ComboBox box1;
       ImageView view;
        @Override
        public void start(Stage primaryStage) {
            box1 = new ComboBox();
            box1.setPrefSize(100, 25);
            box1.setOnShowing(new EventHandler() {
                @Override
                public void handle(Event t) {
                    box1.getItems().clear();
                    try {
                String sql = "select libelle_constr,img_constructeur from constructeurs where libelle_constr='Citroen';";
                pst = c.prepareStatement(sql);
                rs = pst.executeQuery();
               while(rs.next()){
                   box1.getItems().add(rs.getString("libelle_constr"));
                   InputStream input = new ByteArrayInputStream(rs.getBytes("img_constructeur"));
                   Image imge = new Image(input);
                   view.setImage(imge);
            } catch (Exception e) {
            JOptionPane.showMessageDialog(null, e);
            StackPane root = new StackPane();
            root.getChildren().addAll(box1);
            Scene scene = new Scene(root, 300, 250);
            primaryStage.setTitle("Hello World!");
            primaryStage.setScene(scene);
            primaryStage.show();
        public static void main(String[] args) {
            launch(args);
    }

    In any real application, it's a mistake to mix your presentation (user interface) code with your persistance (database access) code.
    Why? You want maintainability, flexibility, and testability.
    Maintainability:
    Suppose you want to change the structure of your database. E.g. the database admin (which may be you, or someone else) determines that the database design you have is inefficient and needs to be changed. If your database code is scattered over the whole application, mixed in among your user interface code, tracking down what needs to be changed will be a nightmare. If all your database code is in a single class, or perhaps a set of classes in a single package, then the updates are localized and much easier to manage. Furthermore, you can build the new database access code on its own, test it out, and then when you are sure it works just switch your user interface code to use the new persistance layer instead of the old one. The same applies if you decide you're going to use a completely different technology to store the data; perhaps you want to use something like Hibernate instead of plain JDBC, or maybe you decide you want to make the data accessibile via a web service.
    Flexibility:
    What if you (or, more likely, your manager) decides they're going to change to a new user interface technology. Maybe they decide to switch to a web application (i.e. HTML-based) instead of a desktop application. You obviously need to rewrite the user interface code, but you should be able to keep all the database access code you've written. If your database access code is all jumbled up with the user interface code you're replacing, it's going to be way harder to reuse that code. If the two are separated out, you just build a new user interface in whatever new technology you're using, and access the same class(es) you used for your database access without touching them.
    Testability:
    This whole thread is actually a demo of how testability is much harder if you don't properly separate your code. You posted "getting image stored in database", thinking that was your problem. It wasn't; your problem was actually an error in the way you'd set up your JavaFX code. Because the two were completely mixed together, it was hard to know where the error was. The error you had was actually a really simple one; it would have been much easier to see if you had simpler, properly separated code; but because you didn't organize your code like that it took you days to figure out the problem. This was only a couple of dozen lines of code; imagine how this looks in a real application with hundreds or thousands of classes.
    The point is that decisions about how to access your data (standalone database, web service, or EJB?; plain JDBC, JPA, Hibernate, etc?) , and decisions about the presentation technology (desktop or web? JavaFX or Swing?, or Servlets/JSPs, JSF, Swing MVC, or any of a huge number of frameworks) are completely independent. You should be in a position to change those decisions - to redesign aspects of the application - with the least amount of effort possible. Failing to properly design things will make this much harder, or likely completely impossible.
    These are real concerns that affect every application that goes into production.
    Even if you're just making a small application, it will benefit you to set things up correctly from the outset.

  • Getting image path from database( Remote server)  & display in jsp page

    hai frnds,
    i have one doudt regarding in my web application Development
    . I want to Getting image path from database( **Remote server**) & display in jsp page here iam forwarding my control through Servlets
    how this will passiable
    Thanks in Advance
    SonyKamesh
    [email protected]

    hai
    I think ur doubt will be...
    1) Getting a Image From Remote Server( & U stored a only path name in Data Base)
    2) Image r stroed in saparate Drive( Not in Webroot-- where u Created domine )
    Please Any Help Will be Appriciated
    [email protected]
    Edited by: Sonykamesha on Dec 18, 2007 11:02 PM

  • Get Image Subset VI ignores original image offset

    Hi,
    I'm have a problem with Get Image Subset VI.
    My program gets original image rectangle from a image and apply a offset for draw in a picture control.
    But the image cannot across a region delimited by another rectangle. So, i use Get Image Subset with a
    image (with offset) and a deilimiter rectangle. 
    I give the same subset of image with and without offset.
    Attachments:
    test3.vi ‏12 KB
    servidor_g.png ‏3 KB

    In my opnion the correct result is the highlighted are in the Original Picture With Offset (See attached image ) and not Image Subset.
    Attachments:
    imagem.GIF ‏20 KB

  • How to get image RGB/16???????? (cont)

    VRect currentRect;
    int32 progressTotal = tilesVert * tilesHoriz;
    int32 progressDone = 0;
    // process each tile in order
    currentRect.top = 0;
    currentRect.left = 0;
    currentRect.bottom = tileHeight;
    currentRect.right = tileWidth;
    // don't go past the document bounds
    if (currentRect.bottom > docHeight)
    currentRect.bottom = docHeight;
    if (currentRect.right > docWidth)
    currentRect.right = docWidth;
    pixelMemoryDesc.rowBits = (currentRect.right - currentRect.left) *
    readChannelDesc->depth;
    // read
    while(readChannelDesc != NULL)
    bigError = sPSChannelProcs->ReadPixelsFromLevel(
    readChannelDesc->port, 0, &currentRect, &pixelMemoryDesc);
    if (bigError)
    error = filterBadParameters;
    throw(this);
    unsigned char *imageData;// for image RGB/8, with RGB/16 is unsigned short
    long temp = tileHeight * tileWidth * readChannelDesc->depth/8;
    imageData = new unsigned char[temp];// for image RGB/8, with RGB/16 is unsigned short
    memcpy(imageData, pixelMemoryDesc.data, temp);
    FILE *file;
    file = fopen("C:\\abc.txt", "ab");
    if(file == NULL)
    return;
    fwrite(imageData, sizeof(unsigned char), temp, file);// for image RGB/8, with RGB/16 is unsigned short
    fclose(file);
    readChannelDesc = readChannelDesc->next;
    return;
    ////end of customizing/////
    - then we use a project to read "abc.txt" to get image:
    ////////// function of button that is clicked, the image is shown
    void CPixelDlg::OnBtnSetPixel()
    // TODO: Add your control notification handler code here
    // POINT point;
    unsigned char*memblock;// for image RGB/8, with RGB/16 is unsigned short
    memblock = new unsigned char[HEIGH * WIDTH *3];// HEIGH , WIDTH is assigned by hard code// for image RGB/8, with RGB/16 is unsigned short
    FILE *file;
    file = fopen("C:\\abc.txt", "rb");
    if( file == NULL)
    return;
    else
    fread(memblock, sizeof(unsigned char), HEIGH * WIDTH *3, file);// for image RGB/8, with RGB/16 is unsigned short
    fclose(file);
    CClientDC dc(this);
    int i = 0;
    int j=0;
    int k = 0;
    for( i = 0; i < WIDTH; i++)
    for( j = 0; j < HEIGH; j++)
    if (k>WIDTH*HEIGH*3-3)
    break;
    dc.SetPixel(j, i, RGB(memblock[k],memblock[k+WIDTH*HEIGH],memblock[k+2*WIDTH*HEIGH]));
    k+=1;
    2. that code is ok for Image RGB/8. But with image RGB/16, now we don't know how Photoshop stores image data, and how to get image data to show???
    Please help me?
    Thanks,

    Use ResultSet.getBinaryStream()

  • Using IMAQ Image Display control vs IMAQ WindDraw for large image files

    Hello All;
    I am designing an application that is currently using IMAQ Image Display control to view large images (5K x 3K and larger).  My problem is that these images take 10-20 seconds to load and display, whereas if I use IMAQ WindDraw to display my image in a separate window, it only takes a couple of seconds.  My application is designed such that I am making use of the Subpanels in LabVIEW 8.0, and to make it pleasant for the user, the interface is such that my line profile, histograph and image viewer displays are contained within the same GUI (panel).
    I read the National Instruments application note regarding displaying of large images, and it did not seem to make a difference.  For example, I switched the 'modern' IMAQ Image Display control with the classic Image Display control, since the 'classic' does not contain any of the 3D rendering tools which might slow the process down.
    Why is there such a huge difference in loading times if I am trying to do exactly the same thing with both methods?  How can I bring the IMAQ Image Display control up to the same speed as the IMAQ WindDraw tool?
    I am currently using LabVIEW 8.0 with the latest IMAQ/NI Vision package from NI (IMAQ v7.1?).  Thanks.
    DJH

    Use a property node and select 16 bit image mapping. You can create a control for this or whatever you need. If you select the individual elements, you can get enumerated controls.
    Bruce
    Bruce Ammons
    Ammons Engineering

  • Image banner control/webpart in master page

    I am getting started with sp2010 dev and I am looking to build a visual web part(sandboxed) image banner, which will loop through user specified image library. The image changes on page refresh.My questions are,
    1) Is there is a similar control out there which i could reuse or modify to my specifics so I need not reinvent the wheel. If not could give me a little insight on the approach please?
    2) I would like some input on how to add the control to Master Page (v4.Master).
    Thanks and Appreciate your help and replies :)

    Hi batllesmith,
    I've created a prototype sandbox webpart for specific requirement 
    here goes the steps
    create new Empty sharePoint solution 
    Add new Webpart and use the below code 
    using System;
    using System.ComponentModel;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Web.UI.WebControls.WebParts;
    using Microsoft.SharePoint;
    using Microsoft.SharePoint.WebControls;
    namespace CarouselWebparts.CarouselWebpart
    [ToolboxItemAttribute(false)]
    public class CarouselWebpart : WebPart
    private string _listName = string.Empty;
    [WebBrowsable(true)]
    [Personalizable(PersonalizationScope.Shared)]
    public string ListName
    get
    return _listName;
    set
    _listName = value;
    protected override void Render(HtmlTextWriter writer)
    try
    string html = string.Empty;
    //first inject the css and js needed
    html += @"<link rel='stylesheet' href='/NivoCustomModule/css/default/default.css' type='text/css' media='screen' />
    <link rel='stylesheet' href='/NivoCustomModule/css/nivo-slider.css' type='text/css' media='screen' />
    <link rel='stylesheet' href='/NivoCustomModule/css/style.css' type='text/css' media='screen' />
    <script type='text/javascript' src='/NivoCustomModule/scripts/jquery-1.7.1.min.js'></script>
    <script type='text/javascript' src='/NivoCustomModule/scripts/jquery.nivo.slider.js'></script>
    <script type='text/javascript'>
    $(window).load(function () {
    $('#slider').nivoSlider();
    </script>
    //start the html markup of the slider itself
    html += @"<div id='wrapper'>
    <div class='slider-wrapper theme-default'>
    <div id='slider' class='nivoSlider'>";
    //call the helper function get Images
    foreach (SPFile file in getImages())
    html += "<img src=\"" + file.ServerRelativeUrl + "\" alt=\"" + file.Title + "\"/>";
    html += "</div></div></div>";
    writer.Write(html);
    base.Render(writer);
    catch (Exception ex)
    finally
    #region Helpers
    /// <summary>
    /// get images uses an absoute url to a folder
    /// </summary>
    /// <returns></returns>
    private SPFileCollection getImages()
    try
    //both properties has to be set
    if(ListName.Equals(string.Empty))
    return null;
    SPWeb web = SPContext.Current.Web;
    SPList list = web.GetList(ListName);
    SPQuery query = new SPQuery();
    query.Query = @"<Where>
    <Eq>
    <FieldRef Name='FSObjType'/>
    <Value Type='Number'>1</Value>
    </Eq>
    </Where>
    <OrderBy>
    <FieldRef Name='Created' Ascending='FALSE' />
    </OrderBy>";
    query.RowLimit = 1;
    SPListItemCollection items = list.GetItems(query);
    if (items != null)
    SPFolder rootFolder = items[0].Folder;
    return rootFolder.Files;
    return null;
    catch (Exception ex)
    return null;
    #endregion
    3. Add new module Element and add the nivo folder contains css and javascript required (or any other Jquery library you prefer)
    4. Notice that the Library the Webpart Loads the images from is  configurable using editor part ( Miscellaneous) section  with  ListName parameter
    for further question don't hesitate to reply back

  • Need help with Flash CS4 buttons/can't get buttons to control anything

    Hello,
    I need help with Flash CS4. I am making a banner with an animation (Image change into movie clip "3D Spiral") and added buttons but I cannot get the buttons to control the animation. Please help I am frustrated! If someone could help I would be most appreciated.

    Thank you.
    Regards,
    Michael J. Sheehan  allelois
    Date: Mon, 17 Aug 2009 18:48:09 -0600
    From: [email protected]
    To: [email protected]
    Subject: Need help with Flash CS4 buttons/can't get buttons to control anything
    Hi there
    I'm not sure how you wound up where you did. But you wound up in the Adobe Captivate forums. Please stand by as I move your thread to the Flash forums.
    Cheers... Rick
    >

  • Can't get the applet control from a form page

    Hi,
    I need to get the applet control in a browser which has loaded an oracle form component.
    When i use jinitiator, i get the control as sun.plugin.ocx.ActiveXAppletViewer., but when i use jre for running the oracle forms, i am not able to get the applet class. I observed with the control hierarchy with Monkey, the java accessibility tool, but I coudn't find any applet class.
    Kindly help.
    Thanks & Regards
    Sunil

    Hi,
    Sorry for the incompleteness in the post.
    1. What is the complete Forms version you are using? Do not reply with something like 6i, 9i, 10g, etc. These are product names and not versions.
    10g Release2
    2. What is the client platform (operating system) and version?
    Windows XP Professional Version 2002, Service Pack 3
    3. Which browser and version are you using?
    IE version 6.0.2900.5512.xpsp_sp3_gdr.090804-1435
    4. Which JInit and Sun JRE version are you using?
    JInit-JInitiator 1.3.1.22, Sun JRE- 1.6.0_17
    5. Are you seeing this problem with Developer Suite or Application Server or both?
    I am working on Developer suite.
    6. Provide the complete contents of the Java Console after the failure occurs.
    My issue is that I am not able to identify the applet class.I am not getting any crash as such.
    7. Does the person running the form have Windows Administrator or Power User permissions?
    Windows Administrator
    Let me elaborate the query again.
    I need to get the applet object of the page that loads the form. To get the applet class, I have written a listener class and print the name of the classes that get created. This way, I identified that the class sun.plugin.ocx.ActiveXAppletViewer, is the applet created in the IE when the form is loaded using JInit.
    Also, I can see the same applet class in the monkey tool once the page is loaded.
    HOWEVER, when I use SUN JRE to load the form, the action listener class doesn't identify any applet class. The monkey tool also fails to show any. The class I get in this scenario is sun.plugin2.main.client.PluginEmbeddedFrame.
    I assume that there should be some applet class present to load the form irrespective of whether it uses JInit or Sun JRE.
    Kindly correct me if I am wrong.
    The console log is as follows
    Java Plug-in 1.6.0_17
    Using JRE version 1.6.0_17-b04 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\sunil
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    q: hide console
    r: reload policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    com.sun.deploy.util.ConsoleWindow
    javax.swing.JRootPane
    javax.swing.JPanel
    javax.swing.JLayeredPane
    javax.swing.JPanel
    javax.swing.JScrollPane
    javax.swing.JViewport
    javax.swing.JTextArea
    javax.swing.JScrollPane$ScrollBar
    com.sun.java.swing.plaf.windows.WindowsScrollBarUI$WindowsArrowButton
    com.sun.java.swing.plaf.windows.WindowsScrollBarUI$WindowsArrowButton
    javax.swing.JScrollPane$ScrollBar
    com.sun.java.swing.plaf.windows.WindowsScrollBarUI$WindowsArrowButton
    com.sun.java.swing.plaf.windows.WindowsScrollBarUI$WindowsArrowButton
    javax.swing.JPanel
    javax.swing.JButton
    javax.swing.JLabel
    javax.swing.JButton
    javax.swing.JLabel
    javax.swing.JButton
    sun.plugin2.main.client.PluginEmbeddedFrame
    Reading certificates from 137405 http://164.67.34.102:8889/forms/java/frmall.jar | C:\Documents and Settings\sunil\Application Data\Sun\Java\Deployment\cache\6.0\36\1a4500a4-49be8669.idx
    oracle.forms.engine.Main
    Loaded image: http://164.67.34.102:8889/forms/formsdemo/images/iorganizer.gif
    Reading certificates from 11 http://164.67.34.102:8889/forms/formsdemo/jars/iorganizer.jar | C:\Documents and Settings\sunil\Application Data\Sun\Java\Deployment\cache\6.0\23\b018557-49b3d76d.idx
    oracle.forms.engine.Splashscreen
    Loaded image: http://164.67.34.102:8889/forms/formsdemo/images/bannerlogo.gif
    Loaded image: http://164.67.34.102:8889/forms/formsdemo/images/white.gif
    oracle.ewt.event.tracking.GlassMouseGrabProvider$Proxy
    oracle.forms.ui.mdi.MDIContainer
    oracle.ewt.lwAWT.LWComponent
    oracle.ewt.lwAWT.LWComponent
    oracle.ewt.imageCanvas.ImageCanvas
    oracle.ewt.EwtComponent
    oracle.ewt.scrolling.scrollBox.ScrollBox
    oracle.ewt.scrolling.scrollBox.ScrollBox$1
    oracle.forms.ui.FormDesktopContainer
    oracle.ewt.scrolling.scrollBox.EwtLWScrollbar
    oracle.ewt.scrolling.scrollBox.EwtLWScrollbar
    oracle.ewt.lwAWT.LWComponent
    proxyHost=null
    proxyPort=0
    connectMode=HTTP, native.
    Forms Applet version is : 10.1.2.0
    oracle.ewt.lwAWT.lwMenu.LWMenuBar
    oracle.ewt.lwAWT.LWComponent
    oracle.ewt.lwAWT.lwMenu.LWMenu
    Loaded image: jar:http://164.67.34.102:8889/forms/java/frmall.jar!/oracle/forms/icons/frame.gif
    oracle.ewt.event.tracking.GlassMouseGrabProvider$Proxy
    oracle.ewt.button.ContinuousButton
    oracle.ewt.button.ContinuousButton
    oracle.ewt.button.ContinuousButton
    oracle.ewt.button.ContinuousButton
    oracle.ewt.event.tracking.GlassMouseGrabProvider$Proxy
    Reading certificates from 137405 http://164.67.34.102:8889/forms/java/frmall.jar | C:\Documents and Settings\sunil\Application Data\Sun\Java\Deployment\cache\6.0\36\1a4500a4-49be8669.idx
    I hope my query is clear now.
    Thanks & Regards
    Sunil

  • Can't get image in the scroll pane.

    I have written a program to show image in scrollpane. Image has put in the same directory of program. But Still I am not getting image in the scroll pane.
    Please have a look into program and let me know where I commit mistake.
    package com.lko.fx.controls;
    import javafx.application.Application;
    import javafx.scene.Group;
    import javafx.scene.Scene;
    import javafx.scene.control.ScrollPane;
    import javafx.scene.image.Image;
    import javafx.scene.image.ImageView;
    import javafx.scene.paint.Color;
    import javafx.stage.Stage;
    * @author Upadhyay
    public class ScrollPaneFx extends Application{
    private Scene scene;
    private Group root;
    * @param args
    public static void main(String args[]){
    launch(args);
    * @param primaryStage
    * @throws Exception
    @Override
    public void start(Stage primaryStage) throws Exception {
    root = new Group();
    scene = new Scene(root, 300, 240, Color.WHITE);
    scrollPaneDemo();
    primaryStage.setTitle("ScrollPane Demo");
    primaryStage.setScene(scene);
    primaryStage.show();
    private void scrollPaneDemo() {
    ImageView imgView = new ImageView(new Image(this.getClass().getResourceAsStream("img.png")));
    ScrollPane spane = new ScrollPane();
    spane.setContent(imgView);
    root.getChildren().add(spane);
    Thanks in Advance!
    Regards,
    Himanshu

    Ok, check whether it is the image loading or something else in your code. Is the result of the getClass().getResource() method null or not null? Once we know that we know which direction to hunt in.
    Also I assume you are running in an IDE. Which one? Make sure the build picks up images. Maven for example won't pick them up from your 'src/java' directory.

  • Any way for one VI to dynamically update images shown in another VI's Image Display control?

    I've just discovered (in LV v7.0) that, while I can wire to it, I cannot write image data to a "value" input terminal of a property node associated with an Image Display. When the VI runs I get this error:
    "IMAQ Vision: (Hex 0xBFF6051A) The Image Display control does not support writing this property node."
    (I must admit that I have to wonder why we are allowed to wire to it, if all it does is generate this error)
    Is there any way for one VI to dynamically update images shown in another VI's Image Display control?
    I am not interested in using IMAQWindDraw windows.

    OK, I have found one way to simultaneously access one VI's image data within another VI without the use of globals. I don't know if it makes use of a known feature of image data that will be with us forever or if it is a bug that will disappear sometime in the future...
    It seems that if I create an image data stream in one VI using IMAQ CREATE and name the data stream "ABC" and then create an image data stream in another VI using IMAQ CREATE and also name that data stream "ABC" then in fact they are both the same data streams and they can be read or written by either VI.
    Using this feature I can write the common data stream in one VI and using a shared occurrence or semaphore let the other VI know when it is OK to display the data from the common stream.
    This method requires that the displaying VI needs to have a while loop around the image display which is not nearly as simple as a display that is updated automagically by another VI writing to a VALUE input that is referenced back to the Image Display. I'd still like to know if there is some way to make that work.
    One corollary to this is that if you have several image data streams in use in a system (they can be in totally separate VI's, running independently) and you don't want them tromping on each other's image data then you need to make sure that they (the image data streams) get created with different names. An example of a place where this might bite you (and where I discovered this "feature") is to have multiple copies of the same VI with different names to do image acquisition and display from multiple cameras. Being copies of the same VI, they all had the same image data stream names, defined as constants, within them. When they were run simultaneously, the image data from all of the multiple cameras randomly appeared in all of the image displays. I don't know if this feature would hold up if the separate VI's were turned into separate executables and then run. Do any of you know if this sharing of image data streams with common names works across executables running on the same machine?

  • FP.Get Image method does not capture the background image

    The attached VI (8.5) demonstrates the issue nicely - the background image is not included in the image captured by the FP.Get Image method.
    Workaround - don't use the background image if you want to capture the FP like this - paste your image in the background or use a picture control.
    Message Edited by tst on 09-10-2008 09:20 PM
    Try to take over the world!
    Attachments:
    Get Image without background.vi ‏713 KB

    Hi tst,
    Thanks for the information.This was reported to R&D (#50678) for further investigation. R&D is currently investigating this issue. We appreciate your feedback.
    Regards,
    Stephen S.
    National Instruments
    Applications Engineering

  • Method Get Image: resolution

    With the method Get image (Front panel, Control, ..), what is the resolution of the image? The screen resolution ?  It is possible to increase this resolution?
    JM
    Jean-Marc
    LV2009 and LV2013
    Free PDF Report with iTextSharp
    Solved!
    Go to Solution.

    J-M wrote:
    Hi Maxime,
    It is for fine details on chart or graph.  When I add the image of some graphs in a report, the result is not as good as I would like.   If the method Get Image has the resolution of screen pixel, I have to live with that...
    Jean-Marc
    You could create a subvi with the graph and make it very large.  Shoot your image of that and then resize it for your report externally or if the report is HTML use the size tags, whilst the raw image is stored and able to be viewed in more detail.
    Just a note though, if you do this, in order to export the image, you will have to open the subvi front panel.  What I have done is insure that when the front panel is opened that it is opened off screen.
    Paul <--Always Learning!!!
    sense and simplicity.
    Browse my sample VIs?

  • Imaq Image Display Control - Zoom tool - zoom factor changes slowly

    Hi at all,
    we have a strange behavior with the zoom factor of the Image Display Control in an Labview executable.
    Ususally by clicking into the image with the zoom tool activated, the zoom factor changes from 1,2,4,8,16, ... ("x2")
    Now we have one PC, where it changes from 1,2,3,4,5,... ("+1")
    Has anyone an idea on which windows setting this behavior depends on? The PC runs with Windows XP SP3, the LV-Exe was built
    with LabVIEW 8.5.1 and the Vision Development Module 8.5.0. Is there any regsitry setting where I can adjust the "click intensity" or
    something like that? Or can I set a property of the image control to force a specific behavior?
    Actually I have never seen this behavior before, I only know the half/double mode. 
    In the software the operator has to search for fiducials on PCBs what means he has to click several times into the image.
    Changing in the Mode "+1" instead of "x2" is not acceptable for him.
    Thanks for your help!
    Stefan

    Hello Stefan,
    thank you for posting at the National Instruments forum. The "Zoom Behaviour" was changed due to customer requests. I totally agree with you, that it is not the best solution to click 24-times to get the desired region of interest.
    I created a small example for LabVIEW 2010, which uses a property node and event structure, to perform the zoom programmatically.
    Best regards
    MarianO
    Attachments:
    Calculate Zoomfactor.vi ‏21 KB
    Image Example.vi ‏63 KB

Maybe you are looking for