Enregistrer l'image d'un graphe 3d ou la face avant du vi

Bonjour à tous,
J'utilise labview 2011, mon VI trace un graphe 3d avec différentes mesure, je voudrais enregistrer l'image du graphe 3d ou de la face avant directement dans un fichier.
Est ce possible ou il y a t il des solutions alternative autre que l'imprim écran?
merci de vos réponses
Solved!
Go to Solution.

je joins une capture d'écran du noeud de méthode
Attachments:
vi marbre.JPG ‏26 KB

Similar Messages

  • Image face avant

    bonsoir,
    je souhaite mettre une image en fond d'ecran sur ma face avant de VI.
    Qd je la mets, je ne vois plus les différents onglets et boutons que j'utilise
    Avez vous une solution, merci d'avance
    Phil
    Philippe B.
    Certified Associate Developer / Dépt Moyens d'essais
    www.ingenia-system.com

    Petite remarque préliminaire : la catégorie Signal Conditioning n'est certainement pas la plus appropriée pour poser cette question...
    Quelle version de LV utilisez-vous et comment avez-vous procédé ?
    Je ne me rappelle plus exactement à partir de quelle version cette fonctionnalité est apparue mais en tous les cas LV8.5 permet de définir une image d'arrière-plan pour un VI. Voici la marche à suivre :
    Cliquer sur une barre de défilement du VI
    Sélectionner Properties
    Il est alors possible de sélectionner une image d'arrière-plan
    Si vous ne deviez pas avoir utilisé cette méthode, je vous suggère de sélectionner l'image et puis de presser Ctrl+Shift+J pour la déplacer en arrière-plan.
    Message Edité par JB le 03-12-2008 06:37 PM

  • Importing Graph to Image (oracle dss graph Graph)

    I am trying to implement a Copy Image of a Graph(oracle.dss .graph.Graph) , My code is working but there is still an issue:
    * When copy and pasting the image, I get a black background due to the transparent background of the Graph. I tried to change the color of the background using the following:
    this._graph.setBackground(Colo.gray);But still not working. Any Idea of how to copy the Graph on the clipboard so that I don't get black background on the image pasted ?
    private oracle.dss.graph.Graph _graph;
                    public void actionPerformed(ActionEvent e) {
                        try{
                           ByteArrayOutputStream out = new ByteArrayOutputStream();
                           _graph.exportGraphToStream(out);
                           BufferedImage image  = ImageIO.read( new ByteArrayInputStream(out.toByteArray()));
                          CopyImagetoClipBoard ci = new CopyImagetoClipBoard(image);
                        }catch(Exception ex) {
                            theLogger.log(Level.SEVERE,ex.getMessage(),ex);
        class CopyImagetoClipBoard implements ClipboardOwner {
                public CopyImagetoClipBoard(Image i) {
                    try {
                        TransferableImage trans = new TransferableImage( i );
                        Clipboard c = Toolkit.getDefaultToolkit().getSystemClipboard();
                        c.setContents( trans, this );
                    catch ( Exception x ) {
                        x.printStackTrace();
                        System.exit( 1 );
    ...Note that this should be in Memory, since It is only a "Copy Image" feature
    Edited by: user13679988 on Mar 13, 2013 3:04 PM

    I'm almost sure the Graph background has transparent background.
    I have 2 available operations that can be done on the graph ( which are the ones that I'm trying to implement )
    1) Save Image As. which It will import the graph to a PNG Image, this one is working fine:
            this.saveImageAs.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        try{
                        JFileChooser fc = new JFileChooser(_graph.getTitle().getText());
                        //fc.addChoosableFileFilter(new ImageFilter());
                        int result =  fc.showDialog(Ide.getMainWindow(), "Save");
                        System.out.println();
                        _graph.setImageSize(new Dimension(1024,600));
                        _graph.exportToPNGWithException(new FileOutputStream(fc.getSelectedFile()));
                         }catch(Exception ex){
                                theLogger.log(Level.SEVERE,ex.getMessage(),ex);
                });If I open the image that was store after this, I see that the transparent background, so It looks good for me. so this is not a problem at all.
    2) the Second one ( Which is actually not working at all ) Is the Copy Image, which It is suppouse to copy the image to the clipboard so that the use can be able paste it on a word document, wordPad, or any other editor. Just as you can do on any image on a Webbrowser.
            this.copyImage.addActionListener(new ActionListener(){
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        try{
                        ByteArrayOutputStream out = new ByteArrayOutputStream();
                        _graph.setImageSize(new Dimension(1024,600));
                        _graph.exportGraphToStream(out);
                        BufferedImage image  = ImageIO.read( new ByteArrayInputStream(out.toByteArray()));
                         CopyImagetoClipBoard ci = new CopyImagetoClipBoard(image);
                        }catch(Exception ex) {
                            theLogger.log(Level.SEVERE,ex.getMessage(),ex);
                });As a result, when pasting the copied image to paint or to word or anywhere, I always get a black background, what looks horrible btw. this is a big issue.
    I try to use your method makeColorTransparent. but It caused my application to get frozen =/ not sure why.
    as follow:
      CopyImagetoClipBoard ci = new CopyImagetoClipBoard(makeColorTransparent(image,Color.BLACK));The reason why I believe the problem is not on the exportToStream but on the ImageIO.read is because exportToStream uses the exportToPNG that actually works fine to export the image ( since I used it on the Save Image As option )
         * @internal
         * Called when the graph must be rendered to the provided OutputStream
         * @param out OutputStream object to use in exporting the graph
         * @return boolean True if the export completed successfully, False otherwise
        public boolean exportGraphToStream(OutputStream out)
          this.exportToPNG(out);
          return true;Take a look how It looks like to copy and paste on paint:
    [Graph after Copy and Paste on Paint|http://postimage.org/image/m9szt96vr/]
    http://s15.postimage.org/ybodneg4b/graph_After.png
    Now take a look how It looks like when exporting to Image png:
    [Graph Imported as PNG|http://postimage.org/image/4g3dgfic9/]
    http://s12.postimage.org/r4skfzzq5/Export_Img.png
    Edited by: user13679988 on Mar 14, 2013 10:46 AM

  • Images de face-avant dans fichier

    Bonjour à tous  et bonne année !
    Je souhaiterais enregistrer des images de face-avant de graphe dans un fichier mais en les gardant toutes.
    Ce que ne fait pas le noeud de méthode " obtenir une image" ...
    Avec la possibilité de les numéroter ou de les dater.
    Pouvez vous m'indiquer un exemple ou quels outils utiliser ?
    Merci
    Cordialement.
    Résolu !
    Accéder à la solution.

    Moi j'étais en vacance! il ne fallait pas reprendre le travail le 02/01! Mais comme vous avez la solution, vous pouvez mettre le post comme "résolu"! bonne année
    Luc Desruelle | Voir mon profil | LabVIEW Code & blog
    Co-auteur livre LabVIEW : Programmation et applications
    CLA : Certified LabVIEW Architect / Certifié Architecte LabVIEW
    CLD : Certified LabVIEW Developer / Certifié Développeur LabVIEW

  • Mesurer un temps entre deux points sur un graphe déroulant et afficher ce temps sur la face-avant

    mesurer un temps entre deux points A et B et afficher ce temps sur la face-avant.
    Le graphe est déroulant.
    Attachments:
    demande_solut.tif ‏762 KB
    diagramme_philippe.tif ‏571 KB

    Lulu,
    Pardon mon francais. N'es pas tres bon.
    En le version de LabVIEW 6.0 et mas, c'est un feature (?) en les graph ou le temps puet etre afficher en le graphe. Si vous avez C'est version de LabVIEW, ce ne pas de problemme.
    Mai, si vous n'avez pas 6.0+, vous avez le fait de mains. (manually, in english). A ce fait, vous avez calculer le temp avec le taux (vitesse?) d'acquisition de data. C'est temp avec deux points et 1/le taux d'acquisition.
    temp = t (seconds)
    taux d'acquisition = r (hz - samples/second)
    t=1/r
    Apres vous avez le temps, se afficher en le graphe avec le "bundle" pour l'example de "waveform chart". Je n'avez pas du LabVIEW en francais, et je ne se pas le nome de l'example.
    Bon Chance.
    En Englais:
    I think you
    are trying to display the time on a graph/chart of your data. In LabVIEW 6 and higher versions, you can very easily do this with a feature you just turn on (look at the Graph and Chart examples.) If you have an older version, you will have to calculate this. Its quite easy to do. I have included a GIF image of an example of how to do this.
    I know my French is terrible, but I hope this helps.
    Good luck.
    Attachments:
    real_time_chart.gif ‏16 KB

  • Aucune donnée dans les graphes lors d'une impression de la face avant après exécution

    En utilisant la fonction d'impression de la face avant après exécution disponible dans les propriétés du VI, les objets de la face avant sortent correctement mais les graphes sont vides de toutes les données, alors qu'elles sont bien présentent à l'écran. Par ailleurs les autres champs de commande, et autres indicateurs sont correctement reproduits. Quelqu'un a t -il une idée. D'avance merci.

    Si vous postez dans la section de langue française ici, alors vous pouvez obtenir une réponse plus rapide.
    Si vous pouviez nous donner soit une copie de votre vi si possible, ou une image de la vi alors il serait de régler le problème beaucoup plus facile.
    Cependant, il semble que vous avez tout simplement obtenu le flux de données ou des connexions mal quelque part qui devrait être une solution facile.

  • Comment intégrer une image en face avant d'un VI ?

    Bonjour, je souhaite intégrer une image dans la face avant de mon VI et non pas dans une pop-up comme le fait windraw. Y a t il une possibilité ?
    Merci,
    CB

    Extrait de l'aide LV pour "importing, graphics"
    Importing Graphics in Windows
    You can import an image from a graphics application, drag and drop an image file into LabVIEW, or use the Edit»Import Picture from File menu item.
    Complete the following steps to import an image from a graphics application. You can import any image format your graphics application supports, except animated images.
    In your graphics editing application or Web browser, copy an image to the clipboard.
    Switch to LabVIEW. The image is automatically available on the LabVIEW clipboard.
    Place your cursor in the place you want to paste the image.
    Select Edit»Paste to place the image in LabVIEW.
    Complete the following steps to drag a graphics file (CLP, EMF, WMF, BMP, or animat
    ed) from Windows Explorer and place it in LabVIEW.
    In Windows Explorer, select the graphics file you want to import.
    Drag the file into the LabVIEW window and place the cursor where you want to paste it.
    Release the mouse button. The image from the file appears in LabVIEW.
    Complete the following steps to import a graphic (CLP, EMF, WMF, BMP, or animated) using the LabVIEW import picture from file feature.
    Select Edit»Import Picture from File.
    Use the dialog box that appears to navigate to the image file you want to import. Select the file and click the OK button.
    Place your cursor in the place you want to paste the image.
    Select Edit»Paste in LabVIEW.

  • Afficher une image png sur face avant

    Bonjour,
    Je cherche à afficher une image .png sur la face avant de mon vi. J'ai bien trouvé plusieurs exemples sur les forums mais tous utilisent des containers.
    J'aimerais juste afficher l'image en elle même sans avoir de cadre autour... (j'ai rajouté l'icone verte sur le print screen en faisant un copier-coller mais il n'est pas possible de la rendre invisible).
    Le but final serait d'afficher telle ou de rendre invisible cette image.
    Cela est-il possible?
    J'utilise LB2010 ou 2009...
    Merci d'avance
    Résolu !
    Accéder à la solution.
    Pièces jointes :
    Sans titre.JPG ‏28 KB

    Bonjour,
    Tu peux aussi utiliser un picture ring de la palette classic, et rendre le cadre transparent. Tu importes ton image en laissant un item vide. Tu n'as qu'à changer la valeur pour afficher ou non l'image (ou utiliser un noeud de propriété visible fonctionne aussi).
    Cordialement,
    Simon D.
    CLA | Certified LabVIEW Architect
    CTA | Certified TestStand Architect

  • Import image to waveform graph

    Hello
    I would like to import an waveform saved in some image format (PNG or JPEG) and display it in the waveform graph. I checked with the property node "plot images" but I am unable to specify the path of the image using this property node as in my case the image is varied  with different experiments for comparing two waveforms(one waveform is in image format and the other is obtained from an oscilloscope instrument). Could someone please suggest how could I do this. 
    Best Regards
    Pratheek
    Solved!
    Go to Solution.

    Hi Hooovahh
    Thanks for the solution. One more problem. In the waveform graph, it is displaying the labels, X-axis and Y-axis values. I woud like to have only the waveform without any labels   is it possible to remove these lables from displaying in the waveform graph. could you please help. Thankyou in advance
    Best Regards
    pratheek
    Attachments:
    Capture.PNG ‏34 KB

  • Exportez une image d'un graph par programmation

    Bonjour à tous,
    Pour un projet de testeur automatique que je dévelloppe, je crée une fonction qui génére un rapport Excel. Ceci se fais plutot bien avec les outils LabView, mais le soucis se situe au niveau de différentes courbes que j'enregistrent et que je souhaite intégré au rapport.
    J'ai donc pensé utilisé le noeud de méthode avec la méthode ExportImage, le fichier de l'image se crée bien mais n'est écrit dessus... Il est donc impossible de les intégrées au rapport... 
    Voici comment j'utilise le noeud de méthode:
    Sachant que le fichier dans lequel je viens écrire est crée juste avant, est-ce normal que ça ne marche pas ?
    Cordialement
    Nathan
    Résolu !
    Accéder à la solution.

    NathV74 a écrit :
    Bonjour,
    Je travail sous LabView 2014, j'ai essayé un exemple simple comme tu dis où je ne fais que crée le fichier et exporter l'image dedans et rien ne change, le fichier en question reste vide...
    Nathan
    Salut,
    Poste l'exemple en question pour que l'on essaye de reproduire le problème.
    a+
    Reg

  • Capture image of just graph

    I need to make a shortcut too capture a single graph of a vi´s panel, but
    just the graph and save it as BMP/JPEG is that possible? I can save it but
    only the whole front panel or visible area Thanxabunch.
    Stirmir

    It would help if I attached the code...
    This account is no longer active. Contact ShadesOfGray for current posts and information.
    Attachments:
    ControlToPNG.vi ‏22 KB

  • Afficher les curseurs sur un graphe déroulant empiler

    Bonjour,
    Comment faire pour visualiser les coordonnées XY a partir d'un graphe déroulant dont les courbes sont empilées?
    Remarque : sur un graphe déroulant avec des courbes empilées, il semble impossible d'avoir des curseur par contre sur un graphe, on peut avoir des curseurs mais pas empiler les courbes.

    Bonjour,
    Je t'envoie une solution alternative dans laquelle j'affiche les courbes dans deux graphes différents et je lie par programmation les coordonnées des curseurs de chaque grahe.
    J'ai également trouvé un exemple qui montre comment enregistrer l''image d'un graphe.
    En t'inspirant de ces deux exemples, tu devrais pouvoir réussir à obtenir ce que tu veux.
    Johan G.
    NIF
    .NIDays2008 {font-family:Arial, Helvetica, sans-serif; font-size:12px; color: #065fa3; font-weight: bold; text-decoration: none; text-align: right;} .NIDays2008 a, a:hover {text-decoration: none;} .NIDays2008 a img {height: 0; width: 0; border-width: 0;} .NIDays2008 a:hover img {position: absolute; height: 90px; width: 728px; margin-left: -728px; margin-top:-12px;}
    >> Avez-vous entendu parler de NI Days ?
    Attachments:
    Programmatically_Saving_Your_Waveform_Graph_with_Image_and_Color_Options.vi ‏72 KB
    Curseur.vi ‏25 KB

  • Images still not updated -- graphs dont show!

    Hi,
    APEX was upgraded to 3.2.1 (from 3.0.X) and the image folder was with it. By updating the image folder many graphs didn't work because they've been built with the Integration kit syntax. I did most the steps here: http://anychart.apex-evangelists.com/pls/apex/f?p=755:17:0::NO:::
    Now I did the second steps although the HTTP server is on a separate server to the database...looking at APEX the images havent updated...they're still using the old files which were removed in the "Create Graph" window and graphs made already don't display (bad syntax). Ideas?
    Mike

    updated with an older version of the standard charts :/

  • Transparent image/graph

    I've been reading a number of posts, but yet to find a clear answer to my problem.
    My ultimate goal is to have an image and a graph, one overlayed on top of the other (whether it is a transparent picture on a graph, or vice versa, it doesn't matter).  I just want to have both images roughly 50% transparent.  Imagine a gps image with a topography intensity map laid over the top... that's what I'm going for.
    From my experience so far, I've found that the transparency levels of the  3D controllers are unchangeable.  Although the transparency levels of the intensity & (x,y) graph shells are changeable, I haven't been able to change the transparency of the graph that it projects.  On the other hand, I've been able to make an image compltetely transparent, but not partially.  I realize that I might be able to import a partially transparent image into LabVIEW and work from their, but the program that I'm making now, will only deal with unaltered images (aka, not pre-transparent images).
    If anyone has any ideas, that'd be great.

    Thanks for the quick and complete response.  I think I understand what you're trying to do, but unfortunately I'm not getting the program to function properly.  The image that is generated is a blank.  One of the things I wasn't sure of, was the slider.  Is that just supposed to change the color intensity of the image?  Another question... which might be a very obvious one, but where is the 'new picture' function?  I've been looking through the function menu and have been unable to locate it.
    Hopefully I can try and figure the rest of this program out.  I attached a sample program that i found in the forums that is helping me get a little closer (this one puts an image behind/in front/ or in between a graph).  I'm still not convinced that this program will work with an intensity graph, but I'm going to give it a try.
    Thanks again.
    Attachments:
    image overlay.vi ‏43 KB

  • Probleme avec Imaq write file qui n'enregistre pas les images en jpg

    Bonjour,
    dans le cadre d'un stage, je suis en train de dévellopper un programme qui récupère une vidéo issue d'une caméra usb. Jusque là tout vas bien. Mais je souhaite réalisé une vidéo a partir d'une suite d'image au format jpeg que le programme aura enregistrer dans un dossier.
    Mon probleme etant que Imaq write file 2 que j'utilise n'arrive pas a enregistrer les image au format jpg (alors qu'il y arrive au forma png, tiff ou jpg2000). Ainsi, lorsque je lance la capture, le programme a l'air de faire des opération mais lorsque je vais dans le dossier où doivent etre entreposé les jpeg, celui ci est vide.
    J'utilise labview 2010 et suis sous windows 7 x64 bits.
    Merci d'avance pour l'aide que vous pourez m'apporter.

    oui bien sur, le voila :
    Pièces jointes :
    test Controle_caméra_prosilica_2.8_2121.vi ‏3752 KB
    CalculateFPS.vi ‏12 KB

Maybe you are looking for