Print a graph

I have a front panel with a waveform graph on it and would like to add a push
button "print graph".
Is there a way to print out of a waveform graph?
I found the "print panel" vi and "append front panel image to report" vi, but
they both make a hardcopy of the entire front panel.
I hoped to find something like "print indicator" or "append indicator image to
report".
Peter Nyffeler mailto:[email protected]
Tel P 01 363 62 42, Tel G 01 632 43 60, Fax G 01 632 10 21

Peter,
Here is a small piece of code that prints an image of the graph. It uses the report tools, basically creates a new report, adds the control image (using a control reference, prits the report to the default priter and closes the report. To create the control reference just right-click in the control and select Create>>Reference. You can find this VIs in the Report palette.
Hope this helps.
Regards,
Juan Carlos
N.I.
Attachments:
Print_Control_IMAGE.bmp ‏245 KB

Similar Messages

  • How to print a graph in which internal table has more than 32 entries?

    hiii experts
    i am trying to make a line graph using 'gfw_pres_show' function module.
    but in report internal table has more than 32 entries
    so how can i print a graph having more than 32 entries?

    Hi ricky_lv,
    According to your description, there is main report and subreport in it, when the subreport spans across multiple pages, you want to show column headers on each page. If that is the case, we can set column headers visible while scrolling in main report.
    For detail information, please refer to the following steps:
    In design mode, click the small drop down arrow next to Column Groups and select Advanced Mode.
    Go to your Row Groups pane, click on the first static member.
    In properties grid, set FixData to True.
    Set RepeatOnNextPage to True.
    Here is a relevant thread you can reference:
    https://social.technet.microsoft.com/Forums/en-US/e1f67cec-8fa3-4c5d-86ba-28b57fc4a211/keep-header-rows-visible-while-scrolling?forum=sqlreportingservi
    The following screenshots are for your reference:
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    If you have any feedback on our support, please click
    here.
    Wendy Fu
    TechNet Community Support

  • Print xy graph in landscape

    Hello,
    I'm trying to print an xy graph to a printer in landscape mode with labview 6.0.2.
    what i did is:
    1) created vi containg the xy graph that in his VI property (printing Options) i checed the"Automatically Print Panel Evry Time VI Completes Exexution"
    2) when i want to print the graph i send data to it, open his front panel and then close it.
    3) changed in "printer and fax" the printer proparty to landscape
    4) in the menu of the vi graph in "print page" i change also to landscape.
    what i got is a cramped graph but not in landscape but in portrite.
    please help me to print in landscape.
    Thanks
    Barak.

    Attached is a zip archive containing some vis showing how I print things. You'll notice that the VI that does the printing has two inputs: the data to be displayed and a reference to the graph that is going to be printed. The reference allows you to modify plot parameters on the fly. For example, change the names of one of the plots in the legend and the name will also change on the printout.
    This technique allows you to print a front panel without going to the trouble of having to open the subvis front panel, print it and then close it again.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps
    Attachments:
    print_demo.zip ‏52 KB

  • How can I chose a printer to print my graph?

    hi,
    how can I chose a printer to print my graph? At the moment I can print only with the standard printer, but I want to chose different printers, because I have three printers. How can I solve this in Labview? Is there a property in the property node or a VI?

    If you have the Report Generation Toolkit you can use the Qurey Available Printers.vi to get a list of printers configured for your PC, write a vi to select from this list, and pass that printer to the Print Report.vi.
    If you don't have the toolkit, you can use the property node (located under the Application Control palette), Printing:Available Printers property to obtain a list of printer names programmatically, then write a vi to select from the list, and pass that printer to the Printingefault Printer property to set the default printer in LabVIEW programmatically.

  • Print stretched graph image

    I'm looking for a way to print a cwgraph stretched on a complete page ( larger then screen size)
    Is there one?

    To update the example code so that it behaves differently from only using half of the page like you're seeing, look at this section of the code in OnPrintBestFit:
    if (bResizeGraph) {
    // create a rectangle to resize the graph to (on the screen)
    CRect rcNew;
    rcNew.left = 0;
    rcNew.top = 0;
    rcNew.right = (long)(cInchesWide * logicalPixelsPerInchX_Screen);
    rcNew.bottom = (long)(cInchesTall * logicalPixelsPerInchY_Screen);
    // resize the graph so it will render larger (with more detail)
    // the FALSE tells it to not redraw
    m_Graph.MoveWindow(rcNew, FALSE);
    // Calculate a rectangle (in printer coordinates) to print the
    // graph in.
    rc.left = 0;
    rc.top = 0
    rc.right = (long)(cInchesWide * logicalPixelsPerInchX_Printer);
    rc.bottom = (long)(cInchesTall * logicalPixelsPerInchY_Printer);
    Adjust the calculation for the rcNew.bottom and rc.bottom according to what you want.
    - Elton

  • Print Dynamic Graph

    I have created a graph with a large number of samples on the X-axis, so the FULL graph can only be viewed using a horizontal scroller. But while printing the graph I am unable to get a print of the entire graph (only the viewable area is printed). Similarly for saving, I am not able to save the entire Length of the graph. Since my data is variable, I cannot have a fixed limit on the X-axis, so a horizontal scroller is a must to view. Any help in this regards would be highly appreciated.
    thnx,
    -prak

    Before drawing the graph onto the panel, draw the graph in its entirety onto an offscreen buffer. Then, copy the viewable portion of the graph onto the panel. Print from the offscreen buffer.

  • Can't print a graph on the whole page in landscape

    Hello!
    I have XY graph that I want to print on the whole page in landscape orientation (paper A4).
    On the screen the graph is small, so I do resizing, appending image to report, and then printing.
    After sending it to the printer I get preview (from the printer software) and see that the graph uses only approx. 5/6 of the page in the width, in other words the height of the graph takes the whole height of the page (21 cm) and the width of the graph leaves 5 cm of the page unused.
    I tried to change the width and the height of the plot area to get proper ratio, but in vain.
    If I set the height of the graph too large it goes beyond the page, but whatever I write to the width I always get 5 cm of the page unused on the right side. (not including 1 cm of the margin).
    Note: surely, if you set small width you can get more space of the page unused, I'm talking about increasing the width of the graph.
    Any ideas?
    See attached for the vi. I tried to save it for 7.1 version but it can't, so you'll need LabView 8.0 to check it.
    Also in attached you can find the page preview I get before it goes to printer.
    Thanks in advance.
    Rashid.
    Using LV 8.0 Pro on WinXP with printer Canon PIXMA iP1000 (also tested on HP printer, but I think it doesn't matter).Message Edited by Rashid on 06-06-2006 07:09 AM
    Attachments:
    Graph printing out.vi ‏40 KB
    Report preview.png ‏48 KB

    Rashid,
    It could be that you would need to install the entire LabVIEW 8.0.1 update rather than just the updated Run-Time Engine (RTE).  Here is a link to the 8.0.1 update.  If you download and install this version, you can then use the utility to mass compile or compile when you are prompted. 
    Repost if you have more questions!
    Andy F.
    National Instruments

  • Print Charts/Graphs on Smart Forms

    Hi Seniors,
    Here is a requirement on Smart Forms:
    I need to print Charts on Smart Forms. I have been through many answers on SDN but unfortunately, there are not many appropriate solutions. I executed some standard reports and got Charts and graphs as output but am not able to use it to display the same on Smart Forms. I have even  tried using classes for charts / graphs, business graphics(may be there would have been some sequential procedure for that).
    In the Smart Form, I have tried Form Attributes>Output Options>Output Format--> XSF output
    with output mode: 'Spool' and Output Device: 'XSFOUTDEV' from help.sap(I couldn't get what output device that was and was unable to execute).
    I have tried executing transaction GRAL(demo reports for SAP graphics) too.
    I found a report that would produce graph in Excel, I executed it, saved the graph from excel in '.bmp' format in SE78 and then printed it on Smart Form. But all I want is to have it done dynamically.
    I saw answers that we can save the graph chart/graph onto the desktop, upload it and then display it on the Smart Forms. But, when i tried it, I saw that it could be saved only in '.dat' format. I have to save it dynamically in a supported format like '.bmp' and print it on the Smart Forms(the graph would change depending upon the input values). Please help me resolve this.
    Thanks in Advance,
    Chaitanya.

    Dear Bouman,
    Thank you for the reply. I can write a report if would helps me to upload images dynamically. I saw your program but, here we cant give the name of the chart that comes as output. I tried to save the chart but it comes in '.dat' format but not in '.bmp' format. We may be having some classes or function modules that we need to call in a particular sequence. What other options do we have. Please help me resolve this.
    Regards,
    Chaitanya.C.N

  • How to print cproject Graph?

    hello frnds,
    i want to print graph in the cproject. here print button is given but from there i can only print the details of project. i m not able to print graph. will anybody tell me that is there any badi given to print that or not? if yes then which badi? plz reply as soon as possible. i have to urgently complete this. i also want to find out that how the details are printed. smartform is used there but which badi is called to print it? plz tell me.
    Thank you very much.
    waiting for ur reply.

    Hi Hetal,
    within cPro 3.1 the GANNT Chart can be printed out only with sorry, MS Project
    But with cPro 4.0 there exists a really cool solution to print, zoom etc the Chart.
    Regards
    Björn

  • How to print a graph in LV7.0

    I have a waveform graph,how to print it?
    thanks a lot!

    there are a couple of ways to do this ... if you want the entire panel you can do it manually by ctrl-p (windows at least)... you can also use the VI Server method get image along with the Open Vi Reference.vi and Print VI to printer method to print the whole panel programatically...
    you can also use Append Control Image to report.VI in conjunction with the print report.vi to print your control...
    Dan

  • How do I print a graph in black & white?

    Hello all,
    I've tried the Print VI Upon Completion and the Report Generation tools. Neither seem to be able to print a single or multiple graphs in black that is dark enough to read. For some reason, they all print in grey. Is there a way to print in B&W using native LabVIEW tools?
    I built a piece of SW (see attached, requires IMAQ Vision) to use the IMAQ Vision tools to perform a color equalization, which works pretty well. This seems to be VAST overkill for such a simple task (not to mention complications with licensing for EXE versions). Is there an easier way to do this?
    I used the tool above with the Report Gen tools. For some reason, no matter how I set the margins (standard report), the Report Gen tools always resize the image to leave >2 INCHES of dead space at the right (landscape view). How can I correct this? The min margin for left and right seems to be 0.25", although they don't seem to work for images.
    Thanks kindly,
    Derek
    Attachments:
    Save Equalized Front Panel Image to Bitmap File.vi ‏20 KB

    Hi Derek,
    Have you tried changing the setting in Page Setup on this VI to affect the change?
    Stephen Meserve
    National Instruments

  • Problems to print xy-graph

    Hi!!
    I have problems to print a xy-graph...it gives a error:
    "append control image to report.vi is not acceptable"...Least if I try to use...
    I attached a file for my project...
    Attachments:
    ThemMonitoringSystemMOD(print).vi ‏149 KB

    I see, its still the same problem described in your other thread DAQmxbaseRead.vi error.
    The correct error message is, that a subvi is not executable..
    This is, as Wolfgang wrote, because two SubVIs accidentally have the same name. One of them is in the report palette, the other one in the daqmx palette. LabVIEW cannot handle this - only one VI will be in memory and the other one will be replaced, which leads to the error that the vi cannot be executed.
    Until this issue is going to be solved with the next daqmx driver you will have to rename the instance of the vi that is part of daqmxbase.
    Since this vi is hidden quite deeply inside the library its best to first close all labview windows, then open a new vi and place the daqmxbase read function inside. Open the VI Hierarchay (Browse meny). In the hierarchy window, go to the menu edit-> find. Search for object, as object choose VI by name. select the check data size.VI
    Once you found the vi inside the hierarchy, doubleclick it and choose save as... Save it with a different name and make sure this new name is used in the hierarchy window as well. The daqmxBase functions must be linked to the VI with the new name. Thus, closing the windows now and being asked if you want to save the changes you have to click yes.
    I hope this explanation will help you to get your code running.
    Ingo Schumacher
    Systems Engineer Sound&VibrationNational Instruments Germany

  • Printing a graph from a FormView (SOS)

    I'm having problems with printing a CWgraph which is positioned on FormView. (C++)
    I tried using the attatched code but it only prints when the graph is positioned on a dialog.
    What's the diffrence?
    Attachments:
    cwprinting.zip ‏80 KB

    Ahhh, just a simple C mistake. You have an error in one of your lines with the operator orders. You have the line:
    double cInchesTall = cInchesWide * rcGraph.Height() * 60 / rcGraph.Width() * 60;
    in your program. This line calculates how tall (in inches) the printout should be based on a fixed width of 6 inches. In our examples the * 60 is not there and that is what is causing your problem. I'm not sure why you have * 60 on your rc width and height, but that is causing the problem. You DON't have parentheses. Therefore your graph height is coming out 3600 times larger than it should. ) That's going to be one HUGE graph. You printer is running out of memory and therefore, you don't get the printout. Change that l
    ine to:
    double cInchesTall = cInchesWide * (rcGraph.Height() * 60) / (rcGraph.Width() * 60);
    or
    double cInchesTall = cInchesWide * rcGraph.Height() / rcGraph.Width();
    Either one should fix your problem. At least it did for me with your code.
    Best Regards,
    Chris Matthews
    National Instruments

  • Forms 10g BI Graph Bean - Is there way of printing the graph ?

    Hi All,
    A simple "nice to have" requirement : after producing a graph on the Form using the BI Graph Bean, is there a way of printing it ?
    Regards,
    Steve

    I've actually modified the Bean and solved the problem by writing the graph to a file which can then be printed. This code goes into the FormsGraph code at around Line 1128
                 * Saves the graph as either a GIF or a PNG file
                if (_ID == pSaveGraph) {
                    String sFileName = null;
                    if (_object != null && (String)_object != "") {
                        sFileName = (String)_object;
                        File f = new File(sFileName);
                        if (f.canWrite()|| !f.exists()) {
                            FileOutputStream fo = new FileOutputStream(f);
                            if (sFileName.toLowerCase().endsWith("png")) {
                                m_graph.exportToPNG(fo);                           
                            } else if (sFileName.toLowerCase().endsWith("gif")) {
                                m_graph.exportToGIF(fo);
                            } else {
                               DebugMessage("SAVE_GRAPH: Not a GIF or PNG type file");                          
                            fo.close();
                            return true;
                        } else {
                            DebugMessage("SAVE_GRAPH: cannot write to " +
                                         sFileName);
                            return true;
                    } else {
                        DebugMessage("SAVE_GRAPH: No Filename passed");
                        return true;
                }and then separately I've declared by new ID
         * Allows the graph to be saved
        protected static final ID pSaveGraph = ID.registerProperty("SAVE_GRAPH");So when calling the save graph add in the filename as the 4th parameter eg:
        set_custom_property(v_bean,1,'SAVE_GRAPH',v_file_name);       

  • Print a graph when used different resolutions

    Hello,
    my LV programm
    (using V8.5.1) must run on computers with different resolutions (1024x768,
    1280x1024...), so I used the option
    "new scaling of all frontpanel elements after changing the windows size" (free translating   )
    (German: "Alle Elemente des Frontpanels bei Änderung der Fenstergröße neu skalieren")
    in my VI.
    This works fine but now I have some trouble with the printout of a graph.
    Depending of the selected resolution of the computer, the graph will be printed complete or only partial, then the lower part of the graph is missing.
    To print out the graph I used the VI  "Append Control Image to Report.vi"
    Can anybody help me?
    Gruß
    jan91

    Hello Jan,
     you are right - when printing the report in landscape orientation, images will be cropped if higher than the paper size.This issue has already been reported to our LabVIEW R&D team (#36511) and should be solved in a forthcoming update of the report generation toolkit. In my opinion, the issue is linked to the problem that the image will not fill out the report page completely to the right margin (#36926), another nuisance you might also have encountered.
    I have created a workaround for the problem,  which you should find attached to this post. As you change the graphs background color for printing, I added another property to resize the graph to the maximum printable size (evaluated here in trial&error, depending on your printer, the maximum size might change a bit), and another one to restore the original size when the report is done. To reduce the "blink time" of the graph, I placed the restoring property node directly after the control image has been attached to the report, so that during printer initialization, the original layout is already visible again.
    Hopefully, this is acceptable for you, until these issues have been fixed.
    Best regards,
    Sebastian 
    Attachments:
    print graph (modified).vi ‏44 KB

Maybe you are looking for

  • How to Fix iMac

    Ok so here's what happened. I installed Windows 7 64 bit on my brand new iMac (2011 with a mountain Lion) using Boot Camp Assistant. I followed all of the instructions and it worked fine (even Mountain Lion). So I wanted all of my files to be on it t

  • Flash player plays when video fully buffered

    Hello there, I'm having problems with the flash player on firefox. Every flash video that I want to watch only plays after it's fully buffered, it won't even show the buffering bar at all. On IE and Chrome it works fine.

  • Why it is necessary that public class name should  same as filename in java

    hi, why it is necessary that public class name should same as filename in java. As I know that it is a convention, but I want the information why this convention is made. thanx.

  • How I can do this update, when I have two records (one primary key, no seq)

    How I can do this update in pl\sql Here is the table with some data CREATE TABLE INSERT_TE PIDM        VARCHAR2(8), FORM_ID     VARCHAR2(2), TEACHER     VARCHAR2(30) INSERT into INSERT_TE PIDM, FORM_ID, TEACHER SELECT '1106651', 'TE', 'Teacher, Alber

  • Newbie's first Spry site

    Although I've designed web sites, this is the first time I've tried programming. Cribbing from other people's code; reading the forums etc has all been very usefule (and inspiring). However, after wrestling with CSS, XML and Spry, I need some help. S