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

Similar Messages

  • Publication Quality Image Files [.TIFFs] of Waveform Graphs or Waveform Charts?

    I'm familiar with the Knowledge Base Article 2PP7CM7Y, How Can I Save a Front Panel Control to a JPEG, PNG, or BMP File?
    My problem is that the resulting pictures are nowhere near publication quality [i.e. the kind of thing you could import into Acrobat for submission to an academic or technical journal]. For instance, I've attached a PNG of an Electrocardiogram [ECG], called "ecg.png", that, in all honesty, doesn't deserve to be posted on a website, much less imported into an Acrobat document. As far as I can tell, I'm using all the high
    est settings [24-bit color, no compression].
    Does Labview have any other utilities for saving to industry standard image formats, especially high-resolution TIFFs? I know the information is there, because when I print the VI's Front Panel to our 600dpi laser print, I get really beautiful, publication quality prints. My suspicion is that whoever wrote the "Invoke Node/Get Image" VI [and/or the various "Graphics Format/Write File" VIs] simply took a snapshot of the graphic card's [VERY low resolution] video buffer, rather than calling the underlying software logic that gets invoked when you print to a 600DPI laser printer. Is there any way I can get access to that underlying software logic?
    Thanks!
    Attachments:
    ecg.png ‏693 KB

    Okay, I installed the HP PostScript drivers, but, as far as I can tell, there is no option to 'Save to File.' [Such an option may be there somewhere, but I looked all over the place, and I couldn't find it...]
    Besides, the idea of saving to PostScript, and then running some program like 'ps2png' or 'ps2tiff' is not very appealing to me, for at least two reasons:
    1) It's very batch-file-ish in nature, i.e. I've got to download some monstrosity like Ghostscript, get it installed, get it configured [no trivial task in and of itself, believe you me], then write some batch-file-ish thingamabob to open the PostScript file and process it - I'd much prefer to [at the very worst] make a call straight to a DLL from within a Labview VI. But that's o
    nly the start of my woes; once I've got a PostScript file, I've got to figure out some way to cut just the picture of the Waveform Graph from the larger picture of the VI window - I suppose I could use some sort of a Clipping Path or an Encapsulated PostScript Bounding Box, but at this point we've clearly crossed over into the realm of what I would call 'hideously ugly, grotesquely inelegant, batch-file-ish hack.' Plus, my gut instinct is that it would take a bare minimum of a week or more to get such a thing up and running efficiently, when, if I could make a call straight to the Labview printing infrastructure, I could do it in just a few minutes.
    2) It's very, very difficult to venture into the realm of PostScript software [especially Ghostscript] and keep your project from becoming contaminated by the GPL, or worse [the Aladdin license agreement ain't exactly a stroll on the beach].

  • Can't plot image into WDT waveform graph

    I'm trying to plot an icon onto a WDT waveform graph but it doesn't seem to be working. The image plots while using the default (array of doubles) data type, but goes missing when I change to WDT. As far as I can tell, the two graphs are the same except for their data type.
    Am I missing a step or is this a LabVIEW bug?
    Attachments:
    WDT problem.vi ‏26 KB

     I was able obtain the icon on the WDT waveform graph in your code by changing the property selected on its property node to PlotImages.Middle.

  • Code needed for "putting waveform graphs and 8bit images in the same window by Windraw"

    Hi Micheal, please sent the code example for my question:"putting waveform graphs and 8bit images in the same window by Windraw" , thanks.

    You can start from here ...
    Hope that helps,
    Michael
    Attachments:
    tester.vi ‏97 KB

  • Putting waveform graphs and 8bit images in the same window by Windraw

    How to put waveform graphs and 8bit images in the same window by Windraw VI?

    Use "Invoke Method: Get Image" to get a pic of your waveform graph/chart. Then combine this pic with your 8bit image using the IMAQ tools (IMAQ ImagetoImage). If you need an example send an e-mail again ...
    Michael

  • 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

  • Saving "Waveform graph" with cursors, set of different colors, in an image file

    Hello:
    I'm trying to save to a file, a waveform of a "waveform graph" that has cursors, which have different colors. When opening the file I can see that the waves are plotted defined color, but the grids and cursors are colored black.
    Someone can tell me what to do, so that the file is saved with the original colors of the "waveform graph"?
    Best Regards

    Probably this is happening because you are using the Invoke node Image Export, which captures an image with less information. However, if your application allows, using the Invoke Node Get Image, which captures your control, displays all the colors of your waveform, include cursors and grids colors.
    In this link bellow, you can see how use this Invoke Node:
    http://digital.ni.com/public.nsf/allkb/5AE4ADCBB65A6D8F86256FBF007A1AC1?OpenDocument
    I hope this helped you. Success in your application.
    Regards.
    Wesley Rocha
    Applications Engineer
    National Instruments Brazil
    www.ni.com/suporte
    Wesley Rocha
    Application Engineer
    National Instruments Brazil
    Visite a nossa comunidade em PORTUGUÊS!!!

  • Get image invoke method gives blank image when I try to capture waveform graph picture

    Hello
    I am facing problem when try to capture waveform graph picture using invoke method Get image and write JPEG function, some times it gives blank images.I am using these functions inside nested loops.
    ObservationsWith reference to attached VI)
    (1) Sometimes  I found it captures images correctly when i run labview program first time but after that it starts writing blank images.
    (2) Whenever i use flat sequence structure for waveform graph and get image node it always gives blank picture which indicates that execution of waveform graph and Get image should not be sequential.
    (3) Whenever it gives blank image i checked the image data which is not valid data so it indicates problem is with Get image method or labview program flow(may be race condition between waveform graph and Get image method).
           I have attached vi ,please change path name and folder name in which images are being saved.I'm using labview 8.5.1 .
    Attachments:
    image_capture_problem.lvproj ‏6 KB
    image capture problem.JPG ‏149 KB
    0.0_10__3.jpg ‏2 KB

    Hi,
    I have tried sequence structure.But sometimes it also gives blank images. I have attached new vi which is using flat sequence. Run this vi 7-8 times then you will observe blank images. I don't know why?Any help will be greatly appreciated.
    Attachments:
    image_capture_problem.vi ‏69 KB

  • Dispaying a waveform graph with control of the cursor in the document.

    I would like to be able to control the cursor when I save my waveform graph in html. I'm currently saving the graph through the report vi's

    I am not sure I understand your question. Do you want to simply control where the cursor is on the picture you are appending to the html report. If so then when you use the Append Control Image to Report VI it basically takes a snap shot at that moment and displays it. Therefore you just need to place the cursor where you wnat it before you add the image.
    To programttically control the cursor you will need to use property nodes of the Waveform Graph. A good start would be the property cursor>>cursor position>>all elements.

  • Working with dynamic scales in waveform graph - display problem

    Hello
    I want to use the same waveform graph in the frontpanel for different measurements. These measurements contains 1 to 8 curves, some of them I need to autoscale and others I want to use fixed scales. I wrote a method containing these functions and the functional behaviour is how I expected. But when it runs several times, LabView cannot correctly manage the graph display. Some scales are behind the graph or two scales are at the same position.
    Perhaps you have a look at my example VI (LV 7.1), I generate a random Waveform and want to display a random number of curves and some of them in fixed, and some in autorange. The more I run the VI, the more the waveform graph display gets wrong. Does anybody know a solution?
    Thank you very much for answering!
    sparti.
    Attachments:
    ScaleProblem.vi ‏165 KB

    hi there
    Ben, thanks for the link. Christian's suggestion is right and describes a similar problem.
    I solved the problem now on an other way. Each time before I change the visability of the scales I reset all settings to the default (startup) values by property nodes (YScale.Maximum, YScale.Minimum, All Visible...). Then I make the scales which I don't need unvisible, link the graphs to the prefered scales and set the Min/Max or autoscale.
    Important: I got 4 scales on each side. When I want to use eg 2 scales on the left, I need to make visible scale number 1 and 2. Scales 3 and 4 can then be set to unvisible (in other words in an incrementing order).
    Makeing scales visible and unvisible is a little bit nervous on the screen. So, during that process I bring a picture of the last waveform on the top of my screen and change to the graph view when all settings are done.
    Now I got a really great waveform viewer with the possibility, scaling some graphs by autoscale, others by fixed scales, using up to 8 scales selectable on the left/right side, user definied colors, names and units.
    Thank you all for taking part of my problem.
    sparti

  • Unexpected Windows cursor/Waveform Graph cursor behavior

    Hi,
    I got a very strange Windows cursor behavior with waveform graph. Simplified VI is attached.
    LabVIEW 2014 SP1
    The problem is:
    The VI contains only one waveform graph.
    1. I start the VI. Cursor Movement Tool is selected in the Graph Palette by default. Corresponding “Cross with dot” Windows cursor appears when mouse is moved over the plot area (see image). So far so good.
    2. I select Zoom in the Graph Palette and use it two-five times (second image).
    3. I select Cursor Movement Tool in the Graph Palette again but Windows cursor does not change as it should. It is an open cross now (third image); i.e. the same as shall appear when cross of Graph Cursor Lines is reached.
    4. I click mouse three-seven times anywhere in the plot area and the cursor becomes normal (as in the first image).
    The problem is not only in shape of the Windows cursor. The whole Graph cursor functionality does not work properly if the Windows cursor has the wrong shape.
    Please advise what could cause this problem.

    It seems, i cannot explain the question in good way
    It is not about my data or zooming. It is about strange bahaviour of the Graph. The following sequence of steps illustrates the problem and shows that the zooming is not the issue (or, at least, not the main issue):
    I do the following:
    1. Start the VI.
    2. Select first Graph cursor in Corsor palette and use pop-up menu "Bring to Center".
    3. Zoom couple of times (not too much) keeping the Grapg cursor visible.
    4. Select Cursor Movement Tool in the Graph Palette.
    5. "Open cross" Windows cursor appears from the beginning. I cannot pick up the Graph cursor.
    6. Click left button of the mouse several times in any poin of the graph area.
    7. Windows cursor is changed to the normal "cross with central point".
    8 Now I can pick up the Graph cursor.
    I would suspect problems with zoom until p.5. However p.6-8 are done without any change of the zoom.
    By the way, I found more:
    If I try to move the Graph cursor after p.5, the whole graph moves and fires event "Scale Range Change". It must not happen with Cursor Movement Tool selected.
    I can guess only about some strange setting of the graph. May be I am not aware about them

  • Editing the waveform graph

    Hi,
        I have encountered some problem is finding waveform graph. I downloaded the tutorial for ASK modulation i tried to do a new one as practice. But the graph are very different. it seems that the borders are transparent which can only see the graph portion only. I have tried to use waveform graph from the graph palettes. I edited it by stretching the graph (waveform result) area and unchecked the visible plot legend, scales and etc.. but i just can't do it the same as the example and the waveform at the bottom is slightly different also (but i don't know isit different scales). I have no choice but copy the graph and paste on mine. Anyone know the trick or tips in doing it? Thanks..
    Attachments:
    ASK.vi ‏53 KB
    simple_ask_transceiver (SW).vi ‏172 KB
    Image.PNG ‏21 KB

    Hi Serina,
    have you tried to use the waveform graph/chart from the "Classic" palette?
    Those controls/indicators have a "flat" look making a lot easier to hide unneeded features
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How the waveform graph indicator doesn't change its property ?

    I have designed a printcontrol vi which I only want to print the plots in the waveform graph on the front panel.In order to acquire this effect, I use the property to set the plot area background colour to transparency. In the course of running,the property works,
    I mean the waveform graph changes transparent.But I hope it will not change because it will not convient for the user.I don't know how to achieve this goal.Hope to get your help,thanks a lot!
    Attachments:
    11.vi ‏97 KB

    One of your problems is the fact that you reset the panel color only after the event has completed and since it generates the full report, this can take some time.
    The problem will be much less noticeable if you reset the changed properties right after grabbing the image.
    Attached is a quick draft. Modify as needed.
    (Sorry, I don't have 7.1, so I downconverted from 8.0. There could be some conversion errors that should be easy to fix.)
    You should also make sure to place the terminals of the latch action booleans INSIDE their corresponding event case, else it might not reset to false during execution of the event.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    11MOD.vi ‏58 KB

  • Waveform graph with timestamp

    I have 5 arrays of data, 4 are data values and 1 is the UTC seconds.  I want to use a waveform graph as it smooths the plots so the traces look
    more rounded compared to an XY Graph.  I have experimented with bundle and build waveform setups but the best  I have been able to do is to get the timestamp along the X axis but no data shows up in the graph  or all the data shows up as but it looks like the axis is swapped but the timestamp is still at the bottom.
    Does anyone know why the waveform graph plots are smoother than the XY Graph plots.  If I knew this answer I could use the XYGraph instead.
    Thanks
    Tim C.
    1:30 Seconds ARRRGHHH!!!! I want my popcorn NOW! Isn't there anything faster than a microwave!

    I don't notice a difference between an XY Graph and a Waveform Graph if the dt on both are the same and assuming all of the other attributes (interpolation, point style, range, etc.) are the same as shown below. To create a waveform graph and assuming that the dt is constant in your time array, you can do something like the other image. An XY graph is normally used only when the intervals on the x axis are not constant. If you see a difference, you should post your VI (with data in the arrays) so that someone can look at it.
    Message Edited by Dennis Knutson on 09-15-2007 09:38 AM
    Attachments:
    Waveform Graph versus XY Graph.PNG ‏21 KB
    Build Waveform.PNG ‏8 KB

  • A question about Waveform graph

    Hello everyone.. I have made a waveform graph to measure pressure with my DAQ NI-9237. The problem is the time value in the x-axis shown on the picture below. It only shows the measurements from 0 to 1, but i need from 0 to 4 seconds. 
    Thanks in advance
    Oesen
    Best regards
    Oesen

    Hi Oesen.
    It's because you convert your data to a double, which does not contain any information about the time. Instead, simply delete the 'Convert from Dynamic Data' and wire in the dynamic data directly to the chart. The Waveform Chart supports this datatype as well.
    Another solution is to keep the 'Convert from Dynamic Data', but instead of converting the data to doubles, you convert to a waveform. You do this by dobbel-clicking on the function and select 'Single Waveform' in the list. I personally think this is the best solution, since you are now able to work with your data in a way the dynamic datatype won't allow you. Try and wire the waveform to 'Get Waveform Components' and see how data is stored.
    You can read more about the waveform datatype here:
    Using the Waveform Data Type in LabVIEW
    http://digital.ni.com/public.nsf/allkb/B965F316364​DE17B862572DF00363B10
    I hope this information is helpful.
    Best Regards
    Alex E. Petersen
    Certified LabVIEW Developer (CLD)
    Application Engineer
    Image House PantoInspect

Maybe you are looking for

  • Open only page/iView in new window

    Hi, How can I publish a porta page (or iView) in a way that I can open the page/iView without the role menu? Or what kind of URL should I use to call the page (or iView). In other words I want to achieve the same functionality which I get when I test

  • Mail, Server Admin, MySQL running very, very slow

    Hi all, I have this Leopard Server on a Mac Mini and I experience some big bottlenecks on mail services (especially webmail), Server Admin connections (both local and remote), and also connections with mySQL clients (remote). Local MySQL is working f

  • GL Account Lines Display

    Hi All, One GL clearing account has thousands of line items which makes it difficult to get data displayed and screen always shows time out error. ( Account > Display Line Items ) Is there any report which I can run to select data pertaining to a cer

  • Double movies created in IDVD???

    Hi, I just tried the one step IDVD and created a number of DVDs via camcorder. Each completed DVD has two copies of the movie on it. I don't know why or how this happened. Any ideas? TIA Jerry (a MAC newbie)

  • Transferring Photoshop Album starter ed to another computer

    Just was changed to a new pc. I have downloaded the latest version of Photoshop Album 3.0 and have transferred all the original photos in the same directory order. How do I bring up the album as I had previously setup- with tags, etc...? Thanks, Patm