Save vi to jpg without displaying vi

So I have a vi that takes in a file and displays it on a graph, with all sorts of fancy options on it. One of those options is to save the graph to a jpg. When you go to save it as a jpg, it opens another vi with a special layout and sets up all sorts of text on the front panel of this subvi. Then it saves the front panel to a jpeg.
I have another vi that is a batching program for my graphing vi. This vi takes in a directory of files, and then background loads the graphing vi, and proceeds to queue up commands and graph the files and save them. The graphing vi is set up so that when you save to jpg while batching, it does not load the front panel. This is done because if you're processing a huge list of files, you don't need a vi popping up a bunch of times.
My problem is that if I don't pop the front panel of the save subvi, it doesn't draw the graph, and so even though it updates all the text and graph information (axis names and stuff like that), it doesn't draw the graph because I don't display it. Is there a way to get LabView to draw this graph without popping the front panel?
The main reason I want to solve this is that the batching program actually handles several different kinds of graphing (I'm building it modularly so I'm solving this one vi at a time), and in the end I don't want several windows popping up every time I save a graph, per file batched.
Thanks!

I'm seeing the same thing you are...
I made 2 VI's:
"SendDatatoSubVI" creates an array of random data, and passes that data and a string to "FP-to-Image1"
"FP-to-Image1" plots the data on a graph, and saves the front panel image to a .jpg file.
If "FP-to-Image1" is in memory (but not necessarily open), the .jpg file saved has the data on the graph. If I close both VI's, then open just "SendDatatoSubVI" then the first time it is run, there is no data the graph. I have seen 2 ways to make it work every time:
Option A) In the sub-vi's Window Appearance property, set the "Window runs transparently to 100%"
Option B) In the sub-vi't Window Run-time Position property, set Position to "Minimized"
In the main VI, be sure to set the SubVI Node Setup to "Show front panel when called" and "Close afterwards if originally closed"
I'm using LabVIEW 8.5.
Message Edited by LabViewGuruWannabe on 01-16-2008 07:15 PM
Message Edited by LabViewGuruWannabe on 01-16-2008 07:16 PM
Message Edited by LabViewGuruWannabe on 01-16-2008 07:16 PM
Message Edited by LabViewGuruWannabe on 01-16-2008 07:19 PM
Attachments:
SendDatatoSubVI.vi ‏10 KB
FP-to-Image1.vi ‏21 KB
fpimage1.jpg ‏28 KB

Similar Messages

  • How to save component to jpg without jframe

    the code shows 2 methods to save component to jpg,
    but if comment
    f.getContentPane().add(lb);neither saveJPG_1() nor saveJPG_2() works.
    can you explain why and how to work without jframe?
    thanks.
    public class Test1 {
          * @param args
          * @throws Exception
         public static void main(String[] args) throws Exception {
              new Test1().run();
         private void run() throws IOException {
              JLabel lb = new JLabel("Test Text");
              lb.setOpaque(true);
              JFrame f = new JFrame();          
              f.getContentPane().add(lb);
              f.pack();
              saveJPG_1(lb, new File("test1.jpg"));
              saveJPG_2(lb, new File("test2.jpg"));
              f.dispose();
         private void saveJPG_1(Component c, File file) throws IOException {
              Dimension dim = c.getPreferredSize();
              Image im = c.createImage(dim.width,dim.height);     
              c.paint(im.getGraphics());          
              ImageIO.write((RenderedImage)im, "jpg", file);
         private void saveJPG_2(Component c, File file) throws IOException {
              Dimension dim = c.getPreferredSize();
              BufferedImage im = new BufferedImage(dim.width,dim.height,BufferedImage.TYPE_INT_RGB);                    
              c.paint(im.getGraphics());
              ImageIO.write(im, "jpg", file);
    }

    Lazy loading is common place among variety of
    systems.
    Java GUI runtime must be doing it because on my
    Linux/JDK 1.6(build 61), component c is null at:
    c.paint(....);
    when adding onto contentpane is commented out.Lazy loading means classes are loaded on demand and at the last moment possible. What makes you think that this allows for a variable to be null even after the component has been instantiated? And what does the Java "GUI runtime" have to do with it? It's the class loader that's responsible for this. It should be impossible for c to be null at that point in the code. You're using a beta JDK though right? Perhaps that's the culprit.
    the code shows 2 methods to save component to jpg,
    but if comment
    f.getContentPane().add(lb);neither saveJPG_1() nor saveJPG_2() works.
    can you explain why and how to work without jframe?
    thanks.
    public class Test1 {
          * @param args
          * @throws Exception
    public static void main(String[] args) throws
    s Exception {
              new Test1().run();
         private void run() throws IOException {
              JLabel lb = new JLabel("Test Text");
              lb.setOpaque(true);
              JFrame f = new JFrame();          
              f.getContentPane().add(lb);
              f.pack();
              saveJPG_1(lb, new File("test1.jpg"));
              saveJPG_2(lb, new File("test2.jpg"));
              f.dispose();
    private void saveJPG_1(Component c, File file)
    ) throws IOException {
              Dimension dim = c.getPreferredSize();
              Image im = c.createImage(dim.width,dim.height);     
              c.paint(im.getGraphics());          
              ImageIO.write((RenderedImage)im, "jpg", file);
    private void saveJPG_2(Component c, File file)
    ) throws IOException {
              Dimension dim = c.getPreferredSize();
    BufferedImage im = new
    ew
    BufferedImage(dim.width,dim.height,BufferedImage.TYPE_
    INT_RGB);                    
              c.paint(im.getGraphics());
              ImageIO.write(im, "jpg", file);
    Can you display a JPanel on the screen without help? No. At some level it has to go back to a heavyweight widget. In this case the JFrame is that widget, so without it or a supplement you can't create the graphics context to create an Image of what that JPanel would look like displayed.

  • Open a jpg; save a jpg without loss; why not?

    I just purchased Elements 8 to run under Windows 7.
    If I open a jpg in the editor, why do I have to experience the loss of saving it as a jpg? It's already a jpg.
    In Photoshop it is possible to open and save jpg's repeatedly without loss. But not in Elements? Why not?
    I understand that I have the option to save the file in photoshop format and then save it as a jpg again only after the final editing is done and the image flattened.
    And I understand that I have the option to save it as a high-resolution jpg more than once.
    But in Photoshop neither of those processes is necessary.
    It is inconvenient not to be able to open an existing jpg and save it as such, without having to experience the loss inherent in making it a jpg again, when it is already a jpg to begin with.
    Clearly this problem has been solved in Photoshop. Why not in Elements?
    Thanks.

    Saving as a jpg implies loss.
    save a RAW file as a JPG -- you have loss -- cannot be avoided because JPG files hold less datasave the same RAW file as a JPG and should get the same result -- same loss
    when a JPG is loaded into PSE, the missing pixels are rebuilt by expanding the data to a normalized form, but this WILL differ from the original RAW, it has to since the JPG save discarded data -- so saving again as a JPG will also discard data and since the loaded expanded form differred from the original form, this new save will discard data a bit differently -- so you get accumulated loss - hopefully not as large as the first JPG save.
    Does PhotoShop differ from this?  I don't see how -- unless it retains the original and keeps changes (which I believe LR does and maybe NX2, not sure).
    So you CAN eliminate compounding the loss by always applying edits to the original -- but that would seem like a difficult task when you get into layers for example, so perhaps PhotoShop can reduce it for some edits -- but I don't have photoshop so I cannot test.

  • How to save the item without displaying into the Page

    hi
    I have the reqt to save the item without displaying into the Page.
    thanx

    In your yyy Table View Object create one attribute for BusinessGroupId as you want to save it in your yyy table VO.
    Now on click of save button capture this ViewObject and set this VO Attribute at run time. I am assuming that yyytableVO is EO based.
    Snippet
    Controller PFR Code
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    pageContext.getParameter("Save") != null)
      OAViewObject vo = (OAViewObject)am.findViewObject("yyyTableVO");
      if (vo != null)
         vo.getCurrentRow.setAttribute("BusinessGroupId", value);//value is what you have capture from pageContext.getparameter
    }Thanks
    --Anil                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Lost metadata in file after attempt to Save RAW As JPG in PS CS3

    Someone in other place in this Forum advised me that this will be probably more appropriate place to ask these questions, so I will give it a go. Below is a copy of my post on PS Windows thread (well, two posts really edited into one):
    Hi,
    I have just found out that after I open RAW pictures from my Canon 5D (but same happens with pictures from Canon 10D) in PS and than try to save them as JPGs, I loose majority of my metadata from the files (after right click on filename in. I can still Windows Explorer and clicking Properties or simply adding additional columns in Win XP Windows Explorer detailed view.
    So same picture, without any editing at all, just opened as RAW file (which it is a CR2 or CRW file in Canons), and then saved as JPG, suddenly does not show the date of picture taken, focal length or exposure time are all gone. Does not matter if I try Properties in Win Explorer or say Properties in MS Office Picture Manager.
    Was trying to look for any setting in PS that would set the ability to save or abandon saving of this type of information in JPG file but could not find anything of this kind.
    What is interesting I went back to my pictures I have saved from RAW to JPG using same PS years ago, and I this was not a problem. Everything was saving OK.
    So in summary:
    1. This would not be a problem related to camera (it is unlikely that same problem would occur on two different models at the same time - even though both are Canons)
    2. It must be a way to force the Photoshop to do that, I f I was able to do it successfully, almost without knowing, before.
    Therefore, I would think that either:
    1. There is some set of defaults somewhere in PS that I have accidently turned off causing my PS not to save this metadata properly or in full, or
    2. That it came as some kind of bug with some of the updates to PS CS3 that I was getting over last year from Adobe.
    Has any one else encountered similar problem? If yes, what did you do to resolve this issue?
    I will be very grateful for any help, as I am not a frequent user of Adobe Photoshop and may just not be very familiar with the part that regulates that type of issues.
    And I do not use the Save for Web option.
    I just used (in PS CS3 running on Win XP Professional with SP3) the Save As from File menu.
    What is also strange is that if I use File - Open command and get the first window with Open dialog box, where you have some basic options for opening/converting RAW format pictures (this window does not come up when I open JPG files) and I use existing there button to Save (which does not actually allow to do any editing of the picture before such way of saving) all Camera Properties, or that metadata, is actually saved into the newly created JPG quite correctly.
    However if I use button Open in that conversion dialog box, and than save already opened RAW file as JPG, the majority of that data is gone (date picture taken, exposure time, aperture, focal length, exposure compensation steps etc).
    I can see that RAW file has all this in the sections called EXIF and XMP (under File - File Information) but Save As does not add this info in the JPG files for some reason.

    No, not really, because I ma not sure what it is for.
    I just used (in PS CS3 running on Win XP Proffessional) the Save As from File menu.
    What is also strange is that if I use Open command and get the first window with Open dialog box, where you have some basic options for opening/converting RAW format pictures (this window does not come up when I open JPG files) and I use existing there option to Save (which does not actually allow to do any editing of the picture before such way of saving) the all Camera Properties, or that metadata is actually saved into the newly created JPG.However if i use button Open in that conversion dialog box, and than save as JPG, the majority of that dtata is gone (date picture taken, exposure time, aperture, focal lenght, exposure compensation steps etc).
    I can see that RAW file has all this in the sections called EXIF and XMP (under File - File Information) but Save As does not add this info in the JPG files for some reason.

  • I want to write a program in LabView then pass the test results to teststand to check if it pass or fail without displaying the test stand program,

    I want to write a program in LabView and create an execute but I want to be able to pass test results to test stand to find it the unit pass ar fail the test then save the data to a database. How would i go about it.

    What's confusing is your statement that you want to do this "without display the test stand program". You can minimize the TestStand UI to the task bar but if you don't want TestStand to be running, how can TestStand evaluate the result. Explain a little more please.
    In the message body of your post, you just say you want to create a LabVIEW exe and pass the results to TestStand. What I would recomend is that instead of an exe, you create a dll and use TestStand's DLL adapter to call it and return the results. TestStand will evaluate it and do the logging.

  • Saving a Adobe Pdf so the toolbars are not viewable and as a jpg without blurry images.

    Hi I have recently purchased a copy of Adobe Acrobat Pro 11 for the first time. I used to create all my documents in Word and then save as a PDF. When hen opening the PDF it would just show the PDF document without toolbars etc. Now when I open it I can see the toolbars (is that normal or is their a clean way I can save this document to share with fellow workers? I don't want it to be editable so not worried about the toolbars etc.
    When sharing this do they see the toolbars etc.?  I don't know the right terms but I want it to look clean as in a book.
    Also when trying to save as a jpg it's all blury? any ideas what I am doing wrongs.
    Thankyou for you help in advance this is driving me nuts.
    Tracey

    TraceyLeeBrock wrote:
    When opening the PDF it would just show the PDF document without toolbars etc.
    Which software were you using previously to open the PDF file?
    Also, could you post a screenshot of the previous and the current view of the document screen?

  • How do I create an action that saves files as JPG in the same folder?

    Hey folks!
    So I'm sitting at work, trying to optimize my workflow a bit..
    What I'd like, is a droplet, that will allow me to open PSD's and save them as JPG in a new folder inside the original folder.
    Like the Image Processor that makes a new folder named 'JPG' but without opening the dialog box and having to press buttons.. Drag-drop-done
    Sitting on Imac with OS X 10.10.2 with Photoshop CC 2014.
    Hope you can help
    Regards
    Emil Rye

    Use scriptListener to create the code for adjusting the hue.  find the line in the code that denotes the change in hue replace that value with a variable that stores a random number:
    var rangeForRandomNumber = 200
    var offsetForRandomNumber = -100
    var randomNumber = Math.random() * rangeForRandomNumber + offsetForRandomNumber

  • Converting RAW masters to jpgs without exporting, deleting and importing...

    Is there a way to convert my RAW files that I already imported into Aperture libraries, now into JPGS without exporting versions, then deleting the RAW-master originals and then importing the jpgs again? I would like to save some disk space, after having chosen some RAW files to keep and now wanting to downconvert the rest to jpgs. Thanks for the answers!!

    No, there is not, for the reason Ernie stated.  Although I find the "library" metaphor ill-selected, it may help illustrate the point.  You RAW files should be thought of as First Edition Hard-cover books.  JPGs derived from the RAW originals are later editions.  Some of them may closely simulate the first edition; some may be cheap paperbacks designed to be read once and discarded -- none of them is a First Edition.
    What you want to do is somewhat tantamount to carting all the precious First Editions out and leaving them by them curb, and replacing them with smaller, lighter paperbacks.
    You can do this, but Aperture makes sure you actually have to do the lifting and the carting.
    If all you want is a Bookmobile, Aperture is not a good vehicle.
    Fwiw, the User Manual recommends creating additional Libraries when you Library becomes too large.  (I was 100% certain the User Manual recommended converting some Image's Masters from Managed to Referenced when your Library file became too large, but today I can no longer find the reference.)  IME, you are much better served having one Library with your Image's Masters Referenced than having multiple Libraries.
    Message was edited by: Kirby Krieger

  • Facebook app on iPad doesn't open properly, it opens , then doesn't go to the loggin page, it just closes again without displaying anything

    Facebook app on iPad doesn't open properly, it opens , then doesn't go to the loggin page, it just closes again without displaying anything, how do I fix this ?

    This worked for me... A little time consuming but once you get rolling it goes GREAT... Thanks....
    I got my artwork and saved it to my Desktop
    Opened up Microsoft Paint and clicked on "File" and "Open" and found it to get it on the screen to resize it
    Clicked "resize" and a box for changing it opened up
    Checked the box "Pixels" and "Unchecked maintain aspect ratio"
    Set Horizontal for 640 and Vertical for 480
    Clicked on "OK" and went back to "File" and did a "Save As" and chose JPEG Picture
    It came up "File Already Existed" and clicked "OK" (really did not care about the original artwork I found because wrong size)
    Went to iTunes and on the movie right clicked on "Get Info", clicked on "Details", then "Artwork"
    Go to the little box on the top left that shows your old artwork and click on it to get the little blue border to appear around it and hit "Delete" to make it gone
    Click on "Add Artwork" and find it where you put the one from above on your Desktop and hit "Open" and OK and your new artwork is now there and all good.
    Sounds like a lot of steps to follow but after around 5 or so you will fly through it. This worked perfect on my iPhone 6 Plus and I have artwork on my Home Videos now.

  • How can I configure the save page mode (to save DEFAULT WITH OR WITHOUT images and other dependencies in a folder)?

    I like it that I can save webpages with or without dependencies in a separated folder. And its implementation in Firefox (e.g. it remembers how I saved something before, and that way becomes the default) can also be good sometimes. But usually it is not.
    Usually I want to save pages as HTML-only. Sometimes, but only sometimes I have to save a page as a whole (I don't know the name of the feature). But after I save something with dependencies, I often forget that, and don't care about this option. Firefox, however, doesn't forget it, and saves thousands of unimportant images, until I notice it and switch it off again.
    This is not good.
    I tried Google Chrome, which simply don't remember how I saves something before, and always select the complete page option for default. It is exactly the opposite of the perfect solution (in my opinion). The best would be if the browser would save everything as HTML only, if I don't change it. Or it would be even better if I could configure it manually (turn this remembering feature on/off).
    This is not a beginner's problem, so it would be good if only a config option solved this. I imagine that already exists a config option for this, but I could not find it. I found only the "browser.download.save_converter_index" option, which depends on how I used it last time.
    Is there a config option for this? Or should I report this in the Firefox brainstorm page?
    Thank you for your time
    D. J. S.

    That choice is remembered in the Integer pref <b>browser.download.save_converter_index</b>
    0: Web Page, complete (default)
    1: Web Page, HTML only
    2: Text files
    If you want to reset that choice to HTML only on every start of Firefox then you can use this line in the file [http://kb.mozillazine.org/user.js_file user.js]
    <pre><nowiki>user_pref("browser.download.save_converter_index", 1);
    </nowiki></pre>
    See also http://kb.mozillazine.org/Editing_configuration#How_to_edit_configuration_files

  • Need to print an SSRS report in a web application to a designated printer without displaying in report viewer

    In an asp.net webforms app, I need to be able to print SSRS reports directly to designated printers without displaying them in the report viewer.  This needs to occur when I click on a button on the page, and I can use either local or server
    side reports.  There are 4 different reports, and one needs to be directed to a different printer from the other 3.  One of them also has very rigid formatting requirements, so the formatting cannot be altered by the print method.  I have
    researched this for hours, but all the solutions I have found for doing this are for windows apps, not web apps.  Can anybody help?

    Hello,
    You can try to use the Report Service web service to render the report and send to a printer to print the report programming.
    http://printssrsreport.blogspot.com/2011/09/print-ssrs-report-using.html
    Summer

  • Is there a way to save over previous files without renaming when packaging InDesign files?

    I am finding the file management a nightmare with having to package my work from Creative Cloud at home in order to work in Creative Suite at school. I usually have to do this back and forth multiple times for the same project creating multiple files and folders - it is too confusing!
    I would like less clutter by having the option to save over my packages without having to rename resulting in yet another packaged folder for the same project to my storage devices. Is there a way to do this? I searched and am not finding answers to this particular issue.
    Normally I would not package before the project is complete but I need the IDML files in order to continue my work when at school. Any answers or tips around how to manage this would be appreciated.
    Thank you!

    Thank you Bob! I understood all of that. My frustration was that I have to give it a new name every single time I package thus creating yet another version of the same file on my system. I don't like cluttering my system with multiple versions of the same project. I work with duplicating layers inside the same document so I can always revert back to something done earlier without having to dig around and open an old file. I think this lack of saving over a file option is a flaw in the way the software is designed. One should always have the option to re-save over an old file with the same name. Just my opinion!

  • Save a pdf file without Adobe automatically adding "-Copy" to the end

    How can I save a pdf file without Adobe automatically adding "-Copy" to the end of file name?

    If you have actually made any changes (e.g. adding a Sticky Note or filling out forms), the Save button will appear in the bottom toolbar.  It will save it as the same name.
    "- Copy" is added only when you tap/click the Save As button.  You can change it to something else, if you'd like.

  • Export in excel without displaying all rows

    Hello,
    I use OBIEE version 10.1.3.4.1.
    I have a report in "table view" with thousands of rows.
    I would like to export a report to Excel, without displaying the data. Is possible to set the execution as an export in Excel?
    Alternatively I enabled the "Page Control" by 50 "row per page." Is possible to export to excel all the row of the report without to see them all?
    Thanks
    Sara
    Edited by: Sara C. on 25-gen-2010 6.23

    Hi Sara,
    you have 2 options:
    1. use ibots to deliver your report in the form of an excel. This would avoid the generation of report.
    2. Use "download to excel" option. This option downloads the entire content and NOT the ones displayed on the screen.
    Hope this helps.
    cheers,
    Vineeth

Maybe you are looking for

  • Where to check UPDATE TYPE in Transformation in BI

    Hi All In BI , Where to check UPDATE TYPE( Like whether the filed/infoobject is overwrite or Addition ) in Transformation in BI. In BW 3.5 we can check this in UPdate Rule Maintanenance,but in BI where do we check the same. Shankar

  • Sharing a project with multiple RH7 users

    We have a project that "we" shared by remoting into a server that had one image of RH 5. We've got multiple RH7 licenses (multiple installs on separate machines). We cannot get into the same project. In fact, I cannot even open a project and import t

  • Delete from apex_application_files

    IF ( :P1_FILE_NAME is not null ) THEN INSERT INTO file_subjects(id,NAME, SUBJECT, BLOB_CONTENT, MIME_TYPE) SELECT ID,:P1_FILE_NAME,:P1_SUBJECT,blob_content,mime_type FROM APEX_APPLICATION_FILES WHERE name = :P1_FILE_NAME; DELETE from APEX_APPLICATION

  • Missing Version Cue CS4

    Windows XP 32 bit I have PS CS5 so I uninstalled PS CS4. Now I can't right click on the desktop or a file nor can I delete a file. I get an Explorer.exe Fatal Application Exit window saying: The specified module could not be found C:\Program Files\Co

  • Ipad contacts are not all moving to icloud

    I looked at my contacts on iCloud and noticed that there are only a small fraction of what I have on my iPad. It says the last backup was recently and that it iCloud is turned on. Any ideas on how I can get all of my contacts on my iPad into the iClo