A problem about saving the picture control'image in a child VI.

i want to use 'export image' method to get a picture control'image,so ,i have a child VI to use method 'export image',and a main VI to using the child VI,but when i run the main VI,there is no image is saved on the disk ,but if i open the child VI'frontpanel,then,i run the main VI,the image is saved on the disk,i want to know the reason why i can not get the image,when i run the main vi without the child 'frontpanel or blockdiagram is opened.
Solved!
Go to Solution.
Attachments:
child.vi ‏11 KB
main.vi ‏7 KB

The behavior that Simon describes is not a hard and fast rule, and the Export Image method used to be a bit of an exception.  It would supposedly update the controls of unopened FPs that used the method.  Reality never quite matched what was described in the documentation if I recall.
If you pore over the detailed help you discover that this method works fine in SubVIs with some controls and not others.  Look at the characteristic 'Loads the Front Panel Into Memory', for a Picture control it is 'No', for a Waveform Graph, for instance, it is 'Yes'.  Caveat:  Relying on this level of detail to be correct in the LV help is a bit risky.  Best to try it yourself.  Not loading the FP is a good hint that the method is not going to behave in a SubVI.
As to the problem at hand, a Picture Indicator is an odd choice to me to use this method.  You have VIs in the Picture palette to convert pictures to image data and then export the image data to a PNG or JPG or BMP file directly.  Anything you would draw and then export could be exported directly without drawing.

Similar Messages

  • "an error occurred saving the activex control"

    I'm trying to compile an executable in Labview 5.1. When I run the build app, it gets about half way done then pops up the error:
    "an error occurred saving the activex control"
    After clearing the error message, it proceeds to go through the motions of compling the app, but no exe is generated.
    The design mode progam run operates fine, and it saves fine as well in design mode.
    Thanks!

    wawatts,
    Though Brian and I got a broken arrow because we didn't have the necessary ActiveX component installed, I imagine you get no errors on the development system because you do have the component.
    This problem would be much harder to pin down on your side given the lack of development-environment errors and the sprawling design of the main VI. One possible troubleshooting approach would be the LabVIEW Find functionality (Edit >> Find). ActiveX functionality typically involves the use of Property Nodes and Invoke Nodes, so if you search for any Invoke Nodes (Select Object, then Functions >> Communication >> ActiveX >> Invoke Node) in the scope of your main VI and its subVIs, you could perhaps have turned up some hits that take you to the subVI that has the control that is presumably causing the problem.
    Unfortunately, I fear that finding the problem area doesn't solve the problem. It seems to me that either the LabVIEW app builder or the ActiveX component is doing something unexpected or nonstandard that is leading to the error message.
    I'm going to stick to my "upgrade the software as much as possible" guns:
    1. Install the LabVIEW 5.1.1 patch I linked to above, if it isn't already installed. There were fixes to the development environment and changes to the app builder that might resolve your problem. This is a free patch.
    2. Consider upgrading the ActiveX control. I think that the latest version is called IntuiLink for 54600-series Oscilloscopes, Version 3.1, and it's available here on the Agilent site.
    It was easy to do a simple test using your Xezgetsetup.vi on my system (LabVIEW 7.1.1, XP) with the updated ActiveX control. First, I installed the Agilent software. Then, I right-clicked inside the ActiveX control on the front panel of Xezgetsetup.vi, chose Insert ActiveX Object, and selected Agilent 54600 Scope Control from the list. Then I had to go to the block diagram and relink a few of the property and invoke nodes by just left-clicking on broken nodes and re-selecting the items that your code was already displaying. That fixed the VI so that it would run again.
    Then I built that VI into an EXE and got no errors.
    Perhaps all this proves is that you would have clear sailing if you upgraded to LabVIEW 7.1 and got the most recent Agilent ActiveX control--and maybe this is a good reason to bite the bullet and do that upgrade now--but it's certainly possible that you can do the same thing in 5.1 and solve your problem. Worth a shot.
    Hope that helps,
    John

  • How could I possibly remove the default picture in the picture control?

    I've been using the picture control and a bit of code to create a zoom effect on a picture. It all works great however I get a labview picture when the Vi is first loaded. I'm trying to get a blank area instead cause it doesn't look really tidy!
    I've attached a picture and my code.
    Thanks for your help
    Solved!
    Go to Solution.
    Attachments:
    Picture Zoom.vi ‏100 KB

    The image is configured to be the default value of "Picture". In other words: you have to get rid of the default. You can do this by either:
    a) Delete "Picture" and create it again. Disadvantage: You have to recreate all property nodes connected to this control.
    b) Load an empty picture and then select "Data Operations >> Make Current Value Default".
    hope this helps,
    Norbert 
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Set 2d picture control image

    I'm making some palette installers for ease of distribution for some libraries I have written. I'm following the example VIs (search the example finder for "palette API").
    I'm having some frustration in setting the new palette icon; the icon constant is a 2d picture control but I can't find a way to drop my image into it, and I can't set it programatically as the 2d picture control VIs only allow me to draw shapes into it.
    - Cheers, Ed
    Solved!
    Go to Solution.

    In cases like this I often resort to using a transparent classic path as an overlay to catch dropped files.  If you do not plan on interacting with the picture control, it is quite easy.  Otherwise it is just a few more events to control visibility when the mouse enters the VI with the button pressed.
    Just run the VI and drag PNG, JPG, or BMP files to the picture control.
    Attachments:
    DragToPictureControl.vi ‏16 KB

  • "An error occured saving the ActiveX control"

    I pulled up an old LabVIEW program today
    that I used to work on under Win-NT.
    Now I use Win-XP.
    We're talking about LabVIEW 5.1.1 on this program.
    The program suddenly throws
    "An error occured saving the ActiveX control"
    when I try to save the program.
    Never saw this under NT.
    Anybody knows what this is about ?
    Martin

    Thanks for posting but we need more information.
    Do you have activeX controls in the VI? Are you using 3d graphs? Does the VI run on XP? What version of LabVIEW do you have?

  • How to pick up the 3d model after change the picture control to the Opengl control?

    Colleagues,
    I have a problem when I use the cvi.I need to draw a 3D model use the opengl in the picture control,and pick up the mode.For example,I transfer the picture control to the Opengl control,then draw a cube and sphere by Opengl。And I want to pick up them。Such as,when mouse click the cube,it will show a MessagbBox("a cube");when mouse click the sphere,it will show a MessagbBox("a sphere");But it doesn't work.
    I'm a chinese student and juse begin to learm the cvi.And my English isn't very good.I don't know whether the problem has been clear.Anyone can help me?

    I haven't used the OpenGL CVI addition for years, but IIRC there is (was?)
    no callback associated to it. Meaning that some actions are defined within
    the OpenGL control, such as rotation/zoom, but that's it.
    Guillaume Dargaud
    http://www.gdargaud.net/

  • There was an error saving the picture. please try again later

    Hi all,
    there is one user who is trying to upload a pic in her sharepoint mysite but when she choos a pic and click on upload buttone it says "there was an error saving the picture. please try again later". I have googled it a lot and found most of the
    articles saying it is related to SP1 and CU...few of them saying its a known error MS will fix it in December's 2011 CU . I checked in my environment and we are already running  April 2012 CU and SP1.
    I tried uploading the pic manually to mysite host location user profile and then updating through update-spprofilephotostore but no luck.
    Also activated a mysite site collection feature "Document ID service" but no luck. 
    Now i dont have any clue what to do, please help me its very critical...

    Hi Aditya,
    Are you using  SharePoint 2010 or SharePoint 2013?
    Did this issue occur for all users or the special user?
    Please go to Central Administration->Manage service applications->User Profile service application->manage user profile, search and edit the user profile, then upload a picture for the user, compare the result.
    In addition, please check the log file to check more information about this issue.
    The path of the log file is:
    SharePoint 2010: C:\Program Files\Common Files\microsoft shared\Web Server Extensions\14\LOGS
    SharePoint 2013: C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\LOGS
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • How to enlarge the picture in the picture control at the same scale(proportion) with what

    the fontpanel enlarged when you dbclick the title bar to enlarge the fontpanel to entire screen,but the other objects (for example,the button,the string,and so on)on the fontpanel not enlarged with the varity of the fontpanel, only keep the original size.how to enlarge the picture in the picture control at the same scale(proportion) of what the fontpanel enlarged when you dbclick the title bar to enlarge the fontpanel to entire screen,but the other objects (for example,the button,the string,and so on)on the fontpanel not enlarged with the varity of the fontpanel, only keep the original size. i have alter the vi properties and select "window size" there is a "s
    cale all objects" tick box ,but failed,the picture ang the picture control (container)did not enlarge ,but the other control have enlarged,just opposite to my purpose .i thank it is a representional question although it may be very simple,in my around ,no one can solve it !
    i have offered the vi and a jpeg file underside,who can help me amend the vi? greatly thanks!!! noticed that what i use is lv6.1,if you can solve the problem but need some other vi or lib files ,please offered all together!!!
    Attachments:
    how_to_enlarge_the_picture_at_the__same__scale_of_what_the_fontpanel__enlarged_when_you_dbclick_the_title_bar_to_enlarge_the_fontpanel_to_entire_screen.vi ‏30 KB
    Test.jpg ‏21 KB

    the fontpanel enlarged when you dbclick the title bar to enlarge the fontpanel to entire screen,but the other objects (for example,the button,the string,and so on)on the fontpanel not enlarged with the varity of the fontpanel, only keep the original size.Hi,
    I am not quite sure if I understand what you are trying to do.
    Sounds like you are trying to implement the zoom feature (increasing/decreasing the size of the picture inside a picture control, but not the size of the picture control itself). If this is what you are trying to do, then there is a property node in LabVIEW 7.0 that supports this feature (This property did not exist in LabVIEW 6.1). Please download the LabVIEW 7.0 evaluation version and run the attached VI.
    Please let me know if this is not what you are trying to do.
    Sincerely,
    Feroz

  • I've got the problem about sharing the screen

    Hi, i bought iMac 21.5 (Late 2013), i'v upgraded it to the Mavericks. I've got the problem about sharing the display, i have thunderbolt to hdmi adapter and while i plug it to my TV, it doesn't work, it has no signal on TV, can someone help me ?? Thank Yo

    Hello Gukakila
    Start your troubleshooting with the article below. Try out the cable on a different tv or monitor to see if it shows up there. You may also need to reset the SMC and Parameter Ram.
    Apple computers: Troubleshooting issues with video on internal or external displays
    http://support.apple.com/kb/ht1573
    Regards,
    -Norm G.

  • Problem about get the workflow context

    There are 2 servers.
    One is Weblogic server (server1), deployed a fusion web project on it.
    Another is BPM server (server2), deployed the bpm process on it.
    On the fusion web project, we use API to get the tasks. But we encountered a problem about get the workflow context.
    There are 2 method to get the workflow context.
    1. getTaskQueryService().authenticate(userId, password, null, null), this method need to pass in useId and password, we can get the user form request but can't get
    password.
    2. getTaskQueryService().createContext(request), we pass the request on server1, but can't get the context on server2, exception thrown.
    Appreciate if you can give some help.

    javax.el.ELException: java.lang.SecurityException: [Security:090398]Invalid Subject: principals=[jcooper, ERole]
         at javax.el.BeanELResolver.getValue(BeanELResolver.java:266)
         at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:173)
         at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:200)
         at com.sun.el.parser.AstValue.getValue(Unknown Source)
         at com.sun.el.ValueExpressionImpl.getValue(Unknown Source)
         Truncated. see log file for complete stacktrace
    Exception thrown when createContext()

  • TS3988 I use iCloud. I have an iPhone, Apple laptop, and I recently bought an iPad. The pictures I take on my phone can be viewed on my iPad, but what about all the pictures on my phone that I took before I bought my iPad? How do I view those with my iPad

    I use iCloud. I have an iPhone, Apple laptop, and I recently bought an iPad. I can view the pictures I take on my cell phone on my iPad. But what about all the pictures I took on my phone before I bought my iPad? How do I view those on my iPad?

    POP: yahoo, aol, comcast/time warnder/road runner
    Imap: google, hotmail, and more including icloud.
    If you want to use multiple devices - move to imap, I would even say "exchange", but Google does not support free exchange anymore, since January of that year. So Ironically  Icloud or Hotmail would be my choices right now.
    To find out more about what happens to you, search on Google "difference between pop and imap"

  • My macbook crashed about two weeks ago and I had icloud already set up. How do I go about retrieving the music and images? Please, help me. I had over 10gb of music on that computer and the only place it was backup was icloud. Thanks.

    My macbook crashed about two weeks ago and I had icloud already set up. How do I go about retrieving the music and images? Please, help me. I had over 10gb of music on that computer and the only place it was backup was icloud. Thanks.

    I hate to say this, but unless you are paying the 25 bucks you cannot back up your library to the cloud.
    All you can do is back up the items you "purchased" from Apple.
    iTunes Match
    For $24.99/year you’ll get access to all your iTunesmusic including tunes you ripped from CDs or “borrowed” from anonymous friends. It scans your library to see if the song exists in iTunes’ 18 million song catalog and if it does it’ll stream it to you at 256 kbps. If your song is not in iTunes then it’ll be uploaded to iCloud at whatever rate it is on your device where it can be streamed for your listening pleasure. I cannot find any information on how to restore a library, however
    Best of luck

  • Problem While saving the Invoice

    Dear Experts,
                      I am facing the Problem while Saving the Invoice, In invoice, We assigne the Output as RD00 and Medium as 6 (EDI).
    When we are saving the Invoice, it getting as ' Updated Terminated'. When i found where the Error is coming in SM13, it showing in as Function Module "RV_MESSAGE_UPDATE' & Error Details is 'EAN11 not found for Material'.
                     But in Invoice whatever we enter the Material number, we maintain the EAN11 code. This EAN11 code is seen in MARM & VBRP Table. Unable to find the what the exact error is.
                   please help me to sort this issue, Its business complicated.
    Thanks in Advance,
    Srini

    Hi Asik,
              Thanks for your valuable Message.... I run as you suggested, but the dispatch time i kept as 1 or 2. because the program RSNAST00 is picking the values only for 1 or 2. so i run manually,, as of now the issue is, in the invoice number, for one material number, the Billed quantity is zero, so the UOM is getting as initial. From those vaues we are picking the EAN11 from maram table.
    So, i modify that and run the EDI manually. As of now its working...
              Thanks for your reply,,,
    Regards,
    Srini

  • I was saving the pictures on my phone onto my computer and then deleting them after they "saved", but after they were all deleted my computer decided not to save them. I went onto the Icloud website to look at them but cant. Help?

    I was saving the pictures on my phone onto my computer and then deleting them after they "saved", but after they were all deleted my computer decided not to save them. I went onto the Icloud website to look at them but cant. Help?

    There is nothing to help with.  There is no way to view the pictures in PhotoStream from the iCloud website.

  • Can the picture control appear scroll bar(further, automatically appear is what i want most) ?

    i use the picture control to draw linr or text in it,but when the line or text's position exceed the border,i must use mouse to stretch the picture control's border to see the line or text all,my question is :did the picture control can appeart scrollbar automatically ,or .can stretch or extend border automatilly ?
    Attachments:
    how_to_auto_scroll_for_picture_control.vi ‏26 KB

    Dear pyi,
    i tried to put scrollbar, it seems this is not possible.
    But other solution is that i can make picture control larger than the line co-ordinates. I am attaching the same vi with few modifications.
    Hope it helps. Your feedbacks are welcome.
    Best Regards,
    Nirmal
    Attachments:
    how_to_auto_scroll_for_picture_control.vi ‏30 KB

Maybe you are looking for