Updating image of a JLabel

Hey all, I've been having some problems with repainting a JLabel with a new Image, I've looked at some other threads of this incident, but none of their solutions are working for me, any help appreciated. Code I'm currently using:
Image img = Toolkit.getDefaultToolkit().createImage("Status1.gif");
lblPicture.setIcon(new ImageIcon(img));
lblPicture.repaint(); What happens is when the action occurs the Label gets repainted to nothing, no Exceptions or anything of the sort.

Whipped up a demo anyway:
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.net.*;
import javax.swing.*;
public class IconTest {
    public static void main(String[] args) {
        EventQueue.invokeLater(new Runnable(){
            public void run() {
                new IconTest().go();
    void go() {
        JPanel cp = new JPanel();
        cp.add(label);
        cp.add(init("bronze"));
        cp.add(init("silver"));
        cp.add(init("gold"));
        cp.add(init("krap"));
        JFrame f = new JFrame();
        f.setContentPane(cp);
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.pack();
        f.setLocationRelativeTo(null);
        f.setVisible(true);
    Icon empty = new EmptyIcon();
    JLabel label = new JLabel(empty);
    JButton init(String text) {
        try {
            JButton btn = new JButton(text);
            final URL url = new URL("http://forums.sun.com/im/" + text + "-star.gif");
            btn.addActionListener(new ActionListener(){
                public void actionPerformed(ActionEvent evt) {
                    ImageIcon icon = new ImageIcon(url);
                    System.out.println(icon.getImageLoadStatus());
                    boolean ok = icon.getImageLoadStatus() == MediaTracker.COMPLETE;
                    label.setIcon(ok ? icon : empty);
            return btn;
        } catch (MalformedURLException e) {
            throw new RuntimeException(e);
class EmptyIcon implements Icon {
    public int getIconWidth() {return 16;}
    public int getIconHeight() {return 16;}
    public void paintIcon(Component comp, Graphics g, int x, int y) {
        g.setColor(Color.RED);
        g.drawLine(x, y, x+15, y+15);
        g.drawLine(x, y+15, x+15, y);
        g.drawRect(x, y, 15, 15);
}

Similar Messages

  • Updated image is not continuing with the State Restore Phase

    MDT 2010 Update 1
    Our MDT guru quit about a month ago.   I've done basic stuff here and there
    But have never updated an image..
    1.  I deployed our current image to a Vmware workstation.  Added about 200 updates. Nothing else done.
         I than rebooted and logged in as local admin and ran litetouch.wsf in a command prompt.
         And ran the "Sysprep and Capture image" task sequence.
         This sysprep'd and imaged with no errors to the captures folder.
    2.  I than moved that updated image to the "Operating Systems" folder on the deployment share.  Renamed the old .wim file and renamed the new one to be the same as the old one..    (Not completely sure this is the correct
    way to do this)  But couldn't find any info on how this is done)
    I than proceeded to reimage a machine with the updated .wim.
    It gets all the way to the State Restore phase and just stops.   After the final reboot.  I logon with the local admin account as usual and it does not continue.   the Minint and _SMSTaskSequence folder are still there..  If
    I let it set for hours nothing happens...
    I compared the BDD.log file for both images.    They seem to be identical up until the State Restore phase is supposed to start.
    I see NO errors in the BDD log file...
    So I am lost as in what to do to try and remedy this issue..
    Info From Sharepoint

    Its the new WIM that is not continuing...
    I did try the import.   and it did the same thing.
    here is the ending of the BDD.log file
    ZTIConfigure COMPLETED.  Return Value = 0    ZTIConfigure    4/22/2014 12:00:53 PM    0 (0x0000)
    ZTIConfigure processing completed successfully.    ZTIConfigure    4/22/2014 12:00:53 PM    0 (0x0000)
    Microsoft Deployment Toolkit version: 5.1.1642.01    ZTIdrivers    4/22/2014 12:00:53 PM    0 (0x0000)
    The task sequencer log is located at X:\windows\TEMP\SMSTSLog\SMSTS.LOG.  For task sequence failures, please consult this log.    ZTIdrivers    4/22/2014 12:00:53 PM    0 (0x0000)
    Write all logging text to \\bimaemg1mdtx64\deploymentshare$\MININT-C1QJ4FN    ZTIdrivers    4/22/2014 12:00:53 PM    0 (0x0000)
    Validating connection to \\bimaemg1mdtx64\deploymentshare$\MININT-C1QJ4FN    ZTIdrivers    4/22/2014 12:00:53 PM    0 (0x0000)
    Already connected to server bimaemg1mdtx64 as that is where this script is running from.    ZTIdrivers    4/22/2014 12:00:53 PM    0 (0x0000)
    No driver copying needs to be performed during the Lite Touch postinstall phase.    ZTIdrivers    4/22/2014 12:00:53 PM    0 (0x0000)
    Updating downlevel OS configuration.    ZTIdrivers    4/22/2014 12:00:53 PM    0 (0x0000)
    Vista identified, skipping update of Device Path    ZTIdrivers    4/22/2014 12:00:53 PM    0 (0x0000)
    ZTIdrivers processing completed successfully.    ZTIdrivers    4/22/2014 12:00:53 PM    0 (0x0000)
    Microsoft Deployment Toolkit version: 5.1.1642.01    ZTINextPhase    4/22/2014 12:00:53 PM    0 (0x0000)
    The task sequencer log is located at X:\windows\TEMP\SMSTSLog\SMSTS.LOG.  For task sequence failures, please consult this log.    ZTINextPhase    4/22/2014 12:00:53 PM    0 (0x0000)
    Write all logging text to \\bimaemg1mdtx64\deploymentshare$\MININT-C1QJ4FN    ZTINextPhase    4/22/2014 12:00:53 PM    0 (0x0000)
    Validating connection to \\bimaemg1mdtx64\deploymentshare$\MININT-C1QJ4FN    ZTINextPhase    4/22/2014 12:00:53 PM    0 (0x0000)
    Already connected to server bimaemg1mdtx64 as that is where this script is running from.    ZTINextPhase    4/22/2014 12:00:53 PM    0 (0x0000)
    Property PHASE is now = STATERESTORE    ZTINextPhase    4/22/2014 12:00:53 PM    0 (0x0000)
    ZTINextPhase COMPLETED.  Return Value = 0    ZTINextPhase    4/22/2014 12:00:53 PM    0 (0x0000)
    ZTINextPhase processing completed successfully.    ZTINextPhase    4/22/2014 12:00:53 PM    0 (0x0000)
    Property DestinationLogicalDrive is now =     LiteTouch    4/22/2014 12:00:53 PM    0 (0x0000)
    LTI initiating task sequence-requested reboot.    LiteTouch    4/22/2014 12:00:53 PM    0 (0x0000)
    Info From Sharepoint

  • For all Jedi Masters: How can I update images in ScrollingImagePanels ?????

    I have posted an old topic but now i understand my error.
    Please people!!!! I think it is very simple, but i am not getting results at updating images in ScrollingImagePanels.
    My ScrollingImagePanel in a JInternalFrame, and the JInternalFrame is in a JDesktopPane.
    In my code i try to remove the actual ScrollingImagePanel and create a new other. But the are no references to the ScrollingImagePanel in the else block. The code doesn't compile. Please, see the code below for a good compreension:
    public void atualiza(){
    if (ziboro == false){ //no images displayed yet
         ziboro = true;     
         JInternalFrame teste = new JInternalFrame("teste",true,true,true,true);
    teste.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
    teste.addInternalFrameListener(this);
    teste.setLocation(10,10);
    teste.setSize(new Dimension(200,200));
    ScrollingImagePanel FlipVPanel = new ScrollingImagePanel(imagemBufa, 800, 800);
    teste.getContentPane().add(FlipVPanel);
    displayPanel.add(teste);
    teste.setVisible(true);
    teste.moveToFront(); return;
    else{
    System.out.println("Jedi!");
    teste.getContentPane().remove(FlipVPanel);//This part is my problem
    ScrollingImagePanel FlipVPanel = new ScrollingImagePanel(imagemBufa, 800, 800);
    teste.getContentPane().add(FlipVPanel);
    teste.setVisible(true);
    teste.moveToFront();
    return;
    Thank you for your atention!
    Poxa se vc entende portugu�s e quiser e souber me ajudar eu ia ficar agradecido pra caramba!

    Ah! I'm sorry. Probably I couldn't explain you my problem. So let me give you some background.
    We used to generate the preview of all the pages in an InDesign document using the export functionality. But we found that, it's a slow process especially when the document uses images that are huge in size (can even be 2 or more GB). So we decided that since InDesign already has the preview (we can see this even the image link is broken), why shouldn't we use this?
    But while doing this, I realized that I can't get the preview of other pages except the first page.
    So, can we say the script can't generate preview images of all the pages (I'm not talking about the individual images placed in a page), or the script is OK but it can do that only for CS5?
    Best Regards,
    -Arafat

  • Need help in displaying an Image in a JLabel

    Hi everyone,
    I am using a JLabel to display images on a particular screen. I am facing some problem while doing so..
    On my screen there are images of some garments. When the users select colors from a particular list, i should color this garment images and load it on the screen again with the colors. I have a floodfill class for filling the colors in the images. The problem I am facing is I am able to color the image properly with my floodfill class but when displaying the image on the same jlabel, the image gets distorted somehow.
    Everytime I color the image, I create an ImageIcon of the image and use the seticon method from the JLabel class. First I set the icon to null and then set it to the imageicon created. here is the code I use.
    If 'image' is the the image i have to load
    ImageIcon imgicon = new ImageIcon(image);
    jlabel.setIcon(null);
    jlabel.setIcon(imgicon);I am setting the icon to null because I have not found any other method to clear the previous image from the jlabel.
    Can anyone who has worked on images before and faced a similar situation help me with this?? Is there some other container I can use besides the JLabel to display the images perhaps?
    Thanks in advance.....
    Bharat

    And the thing is when I first go into that screen with the selected colors it is displaying the images perfectly.
    It is only giving problems when I pick different colors on the screenit really sounds like the problem is in your floodfill class.
    I have no idea what's in floodfill, but if you were e.g. using a JPanel and paintComponent,
    you would need to have as the first line in paintComponent()
    super.paintComponent(..);
    to clear the previous painting.
    if not, you would be just drawing over the top of the previous paintComponent(), and if the calculation of the
    painting area is not 100% exact, you may get the odd pixel not painted-over, meaning those pixels will display
    the old color.

  • How do I correctly update images on my Gallery page in Adobe Muse 2011-2013?

    I am trying to update images on my Gallery page  at: www.glennmcfall.com. When I add new images those new images are not active. When I click on the thumbnail (when I use Preview Page in Browser) the slideshow image appears , when I click on that image a larger image or video should appear but doesn't. I noticed when an image is active an image of a hand appears when hovering over the art/photo/video but this hand does not appear when I am trying to access the largest image. What do I need to do to correct this? I am using Adobe Muse 2011-2013 version.

    Hi
    Can you provide steps to follow for replication ?
    I checked the site , but which thumbnails exactly shows this behavior etc ?
    Thanks,
    Sanjit

  • Updating images in Indesign

    Is it  > really < necessary to manually update images in Indesign when you have changed them? If you have changed a batch can you not just auto update the way you always could in that thing we used to use??
    Thanks!

    I'm having the same exact problem, except in CS6- probably the same program. I'm updating everything now, I'll let you know how it goes.

  • How to add multiple images to a JLabel from the jar file

    I want to add multiple images in a JLabel but the icon property only allows me to add one. I thought I could use html rendering to add the images I need by using the <img> tab, but I need to use a URL that points to the image.
    How do I point to an image inside the jar file? If I can't, is there another way to show multiple images in a JLabel from the jar file?

    Thanks, it works perfectly. It's a really smart way of fixing the problem too :)
    I also found your toggle button icon classes which is something I've also had a problem with.
    Thanks.

  • How  to update image in adobe form

    Good Day
    I am trying to update image in adobeform. i used object library->image->and double clicked it and i got a popup and given the path. i got my image there
    but when i am running my adobeform in url  I am unable to see the image on it.  is it  because the path is from my desktop.  there is no binding done with any field on the context of adobeform.. do i need to upload the image in se78 and then do binding....
    pls help
    Regards

    hi battula,
    1.upload the image in se78
    2.Get the xstring of image by function module
    data img_ x_string type  xstring.
    data img_string type string.
    CALL METHOD cl_ssf_xsf_utilities=>get_bds_graphic_as_bmp
       EXPORTING
         p_object       = 'GRAPHICS'    " SAPscript Graphics Management: Application object
         p_name         =  'LOGO'   " Name of image
         p_id           =  'BMAP'   " SAPscript Graphics Management: ID
         p_btype        =  'BCOL'   " SAPscript: Type of graphic
       RECEIVING
        p_bmp          =    img_x_string.
    and convert this xstring to string by function module
    CALL FUNCTION 'SSFC_BASE64_ENCODE'
                     EXPORTING
                       bindata                        = V_FIELD
    *                BINLENG                        = BINLENG
                    IMPORTING
                      B64DATA                        =  img_string.
    *               EXCEPTIONS
    *                 SSF_KRN_ERROR                  = 1
    *                 SSF_KRN_NOOP                   = 2
    *                 SSF_KRN_NOMEMORY               = 3
    *                 SSF_KRN_OPINV                  = 4
    *                 SSF_KRN_INPUT_DATA_ERROR       = 5
    *                 SSF_KRN_INVALID_PAR            = 6
    *                 SSF_KRN_INVALID_PARLEN         = 7
    *                 OTHERS                         = 8
    3.bind the img_string to imageField in  adobe form ..
    if you want to update image then update image in se78 keeping name same.
    4.and write also javascript code
    on initialization event of ImageField
    this.access = "readOnly";
    hope it will help.
    regards
    Jitendra..

  • Iphoto updating images from Mac to iPad

    Hi
    When I have edited photos on my mac in iPhoto, I then plug in my iPad to sync the new edited photos into the same event, but the updated images that I have edited will not update on the iPad? It used to do this but not anymore, not sure if I have done something on my syncing, of which I get really confused with.
    Thank you
    Sheena

    This is a long shot but close iPhoto, go to your Pictures folder and open the iPhoto package with the Finder as shown in this screenshot
    Look for a folder named iPod Photo Cache
    Move it to the Trash in the Dock. That's a folder that will be recreated then next time you sync.
    Launch iPhoto and try syncing the iPad again.

  • Passing values to next page on Update image click?

    Hi Everyone,
    I have developed one OAF page which has onw table data to show. The last column is Update Image icon.
    Columns are like this: Eno, enmae, comm, address, salary, update.
    On clicking on update icon on any row the corresponding Eno and Ename should be passed to next Update page and these two values has to be displayed on teh Update page.
    How can i do that?
    Please help...
    Thanks.

    PPR event on Update Image would do the magic for you.
    Go to the properties of the Image icon and select below
    1) Action Type : fireAction
    2) Event : updateEmp (This event needs to be captured in the page CO)
    3) Parameters :
    a)pEmpNo : ${oa.current.EmpNoID} (EmpNoID is the view attribute for Employee Number. You keep proper name of your VO attribute here)
    b)pEmpName : ${oa.current.EmpName} (EmpName is the view attribute for Employee Name. You keep proper name of your VO attribute here)
    c) Add more parameters if you want to pass maore
    4) In processFormRequest of the page catch the event 'updateEmp' and forward to the next page
    String eventRaised = pageContext.getParameter("event");
    if ("updateEmp".equalsIgnoreCase(eventRaised)) {
    HashMap actionHashMap = new HashMap();
    String pEmpNo= pageContext.getParameter("pEmpNo");
    String pEmpName = pageContext.getParameter("pEmpName");
    actionHashMap.put("pParamEmpNo", "{!!" + pageContext.encrypt(pEmpNo)); --always encrypt
    actionHashMap.put("pParamEmpName", "{!!" + pageContext.encrypt(pEmpName ));
    pageContext.setForwardURL(include the next page function/URL and other parameters along with actionHashMap);
    5) In the next page CO, get the passed parameters in processRequest using
    String pEmpNo= pageContext.getParameter("pParamEmpNo");
    String pEmpName = pageContext.getParameter("pParamEmpName");
    --Do your other stuff on how to use these parameters
    Hope this will direct you properly.
    Regards,
    Peddi

  • Best way to update images using PHP / MySQL?

    HI
    I want to update images using PHP/MySQL, so users can update their images and maybe some other files but mainly images.
    thanks

    How messed up is this code?!
    <?php
    //connect to database
    $con = mysql_connect("testhost","testuser","pass");
    // file properies
    $file = $_FILES['image']['tmp_name'];
    if (!isset($file))
    echo "please select an image";
    else {
        $id = $_REQUEST['id_display'];
        $image = ($_FILES['image']['tmp_name']) ? file_get_contents ($_FILES['image']['tmp_name']) : '';
        $image_name = ($_FILES['image']['name']) ? addslashes($_FILES['image']['name']): '';
        $image_size = ($_FILES['image']['tmp_name']) ? getimagesize($_FILES['image']['tmp_name']): '';
        if ($image_size == FALSE)
        echo "You have not selected an image.";
        else {
            mysql_select_db("test_display", $con);
            mysql_query("UPDATE testtable SET image = '$image', imagename = '$image_name' WHERE id_display='$id'");
    ?>
    And the upload page....
    /*Update code */ /*End update code */                            

  • Please Great Masters: how to update images in ScrollingImagePanels ????????

    I have posted an old topic but now i understand my error.
    Please people!!!! I think it is very simple, but i am not getting results at updating images in ScrollingImagePanels.
    My ScrollingImagePanel in a JInternalFrame, and the JInternalFrame is in a JDesktopPane.
    In my code i try to remove the actual ScrollingImagePanel and create a new other. But the are no references to the ScrollingImagePanel in the else block. The code doesn't compile. Please, see the code below for a good compreension:
    public void atualiza(){
    if (ziboro == false){ //no images displayed yet
    ziboro = true;
    JInternalFrame teste = new JInternalFrame("teste",true,true,true,true);
    teste.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
    teste.addInternalFrameListener(this);
    teste.setLocation(10,10);
    teste.setSize(new Dimension(200,200));
    ScrollingImagePanel FlipVPanel = new ScrollingImagePanel(imagemBufa, 800, 800);
    teste.getContentPane().add(FlipVPanel);
    displayPanel.add(teste);
    teste.setVisible(true);
    teste.moveToFront(); return;
    else{
    System.out.println("Jedi!");
    teste.getContentPane().remove(FlipVPanel);//This part is my problem
    ScrollingImagePanel FlipVPanel = new ScrollingImagePanel(imagemBufa, 800, 800);
    teste.getContentPane().add(FlipVPanel);
    teste.setVisible(true);
    teste.moveToFront();
    return;
    Thank you for your atention!
    Poxa se vc entende portugu�s e quiser e souber me ajudar eu ia ficar agradecido pra caramba!

    I have posted an old topic but now i understand my
    error.
    Please people!!!! I think it is very simple, but i am
    not getting results at updating images in
    ScrollingImagePanels.
    My ScrollingImagePanel in a JInternalFrame, and the
    JInternalFrame is in a JDesktopPane.
    In my code i try to remove the actual
    ScrollingImagePanel and create a new other. But the
    are no references to the ScrollingImagePanel in the
    else block. The code doesn't compile. Please, see the
    code below for a good compreension:
    public void atualiza(){
    if (ziboro == false){ //no images displayed yet
    ziboro = true;
    JInternalFrame teste = new
    JInternalFrame("teste",true,true,true,true);
    teste.setDefaultCloseOperation(WindowConstants.DISPOSE_
    N_CLOSE);
    teste.addInternalFrameListener(this);
    teste.setLocation(10,10);
    teste.setSize(new Dimension(200,200));
    ScrollingImagePanel FlipVPanel = new
    ScrollingImagePanel(imagemBufa, 800, 800);
    teste.getContentPane().add(FlipVPanel);
    displayPanel.add(teste);
    teste.setVisible(true);
    teste.moveToFront(); return;
    else{
    System.out.println("Jedi!");
    teste.getContentPane().remove(FlipVPanel);//This part
    is my problem
    ScrollingImagePanel FlipVPanel = new
    ScrollingImagePanel(imagemBufa, 800, 800);
    teste.getContentPane().add(FlipVPanel);
    teste.setVisible(true);
    teste.moveToFront();
    return;
    Thank you for your atention!
    Poxa se vc entende portugu�s e quiser e souber me
    ajudar eu ia ficar agradecido pra caramba! Ol� Ninja.
    N�o testei isto que te vou dizer, mas parece-me que o problema � o seguinte:
    Tens um if onde declaras a vari�vel local "ScrollingImagePanel FlipVPanel". Ora, o que acontece � isto, "if(ziboro == true)" o programa salta para o "else", ou seja, n�o leu "ScrollingImagePanel FlipVPanel = ...", logo n�o sabe o que � o "FlipVPanel". A solu��o passa, parece-me, por definir FlipVPanel a um n�vel mais elevado, talvez como membro da classe.
    Experimenta isto; se n�o resultar, avisa.

  • How can I force update image sequences?

    I am using Premiere to composite various image sequences from a 3D program, Blender.  Many times I export a draft version from Blender, import the sequence to Premiere, place it in the time line, then I find that I want to make some changes in Blender and re-render some of the frames.  Of the frames that I re-render, Premiere only updates some of them.
    I did a test where I re-rendered a section with a different background color to the scene.  In Premiere it updated the first three frames, then the fourth was the old image, 5th and 6th were new, 7th was old, 8th and 9th were new, and so on.  It did this for the entire updated image sequence, using a combination of old and new frames.
    I did the above test three times.  The first time I saw mixed frames, the second time everything imported fine, the third time I got the mixed frames again.
    If I restart premiere, then it goes through the "media pending" screen for all of my media and it then shows the correct updated frames, but that would be inconvenient to have to restart premiere every time I want to see my new frames.
    I am using Premiere Pro CS5.0.3, on a 2.66 Ghz Quad-Core Mac Pro with 8GB of RAM.  The files are located on an eSATA RAID 5 array.
    Is there a way I can force Premiere to update the frames in the image sequences?
    Does anyone else have these problems?  What do you do when dealing with many image sequences that you update frequently?
    Thanks for any help.

    Is there a way I can force Premiere to update the frames in the image sequences?
    Three choices.
    1. Don't leave Premiere open while rendering in another
    application (this is what I do).
    Overwritten files will update when you launch Premiere.
    2. Right-click your image sequence in the Project window,
    select "Make Offline...>Media Files Remain on Disk>OK.
    Then, right-click your image sequence in the Project window,
    select "Link Media...
    3. Close then re-open your project without exiting Premiere.
    File>Close (Ctrl>W), then re-open same project.

  • Scalable Image in a JLabel

    Hi,
    I am writing an About dialog that is just a frame filled with an image that I have made for the About screen. The problem is that I want the image size to be exactly fit to the JFrame. setBounds seem to be not right when I setBounds to the Image Size (e.g. 400x297). Is there a way to scale the Image in the JLabel to fit the frame, or scale the frame to fit the Image, or find the right values for setBounds ? Here is the code.
    import java.awt.*;
    import javax.swing.*;
    class About {
         About(){
              JFrame frm = new JFrame("About");
              frm.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
              frm.setBounds(400,400,430,330);
              frm.getContentPane().setLayout(new BorderLayout());
                                              frm.setUndecorated(true); // SkinLF
              frm.getRootPane().setWindowDecorationStyle(JRootPane.FRAME); // SkinLF
              frm.setDefaultLookAndFeelDecorated(true);  // SkinLF
              frm.setResizable(false);
              JLabel about = new JLabel(new ImageIcon("about.jpg"));
              frm.getContentPane().add(about,BorderLayout.CENTER);
              frm.setVisible(true);          
    }

    hi , hi , hi ,
    I read you code well and understand that you want to fit the image in the
    frame to the frame to image ,
    if this is oky , then : your code is poor , because it poor idea to use the JLabel to put in it your image , the best idea is to extends JPanel Class
    and to override the paint method - paint( Graphics g ) { .... }
    method and draw your image here , as the following code show :
    public class PanelImage extends JPanel {
                         Image yourImage ;
                         public PanelImage( Image im ) {
                                this.yourImage = im ;
                         public void paint( Graphics g ) {
                                super.paint( g ) ;
                                g.drawImage( 0 , 0 , this.getWight() , this.getHeight() , this.yourImage);
    and add the instance from this class to your JFrame and your are very happy very happy , It is Java .
    Regards , M_darim ( SCJP 5 ) .

  • 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?

Maybe you are looking for

  • Won't detect Logitech Bluetooth mX900 mouse unless moving it at startup

    When I start up my iMac, it does not automatically detect my Logitech MX 900 bluetooth mouse unless I am moving the mouse around at the right moment. If I am not moving the mouse, a screen pops up saying the computer has been unable to detect the mou

  • Getting Stuck in Start-up

    I recently did the weekly update on my computer and my macbook froze during the process. I had to shut down my computer by holding down the power button. I then tried to start it back up, and it gets stuck in the start up screen with the apple. It is

  • How to execute the Code-Behind of .aspx linked using XML Data Connection

    I have a dashboard with a live XML Data Connection tied to a Default.aspx file.  That .aspx file has a Default.aspx.vb code-behind file tied to it with some logic in the Page_Load sub routine.  If i open the .aspx on my own in the browser, the code-b

  • No luck with SCT

    I tried overstock and J Crew and didn't get any pop ups. I even made sure my pop up blocker was off and that I'm opted in for offers. Is it because I was in using my phone? Wasn't sure if that matters or not.

  • Multiple Quizzes using Captivate 3

    I am currently using Captivate 3 and I had a very large project with multiple quizzes.  Captivate was able to go through the first quiz, but every time I hit another quiz, the system would freeze. I am looking to do multiple quizzes - does anyone kno