About picture control

hi
i need to insert pictur control for the some interface can you tel me how should i do it?
Regard
Thanushi

Hi,
Define a Custom Container which is of type ref to cl_gui_custom_container.
take a reference variable for picture.of type ref to cl_gui_picture.
CREATE OBJECT container
    EXPORTING container_name = 'CUSTOM_CONTAINER'
                        lifetime       = lifetime.
CREATE OBJECT picture
     EXPORTING parent  = container
                        lifetime = lifetime.
Refer to the link
http://help.sap.com/saphelp_erp2004/helpdata/en/9b/d080c09fc111d2bd68080009b4534c/frameset.htm
REgards,
jaya.

Similar Messages

  • 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.

  • 2D picture control doesn't refresh properly

    I have an application which displays a picture in a 2D picture indicator and draws a few rectangles and lines on top of the picture. 
    The locations of these lines change throughout the day, and the application is designed to run minimized and then provide a quick-look at various status items when it is restored by the user.
    While minimized however, the image does not appear to get updated, even though my code is updating it once per second. I can't actually tell what happens when it's minimized obviously, but the behavior persists for some time after the window is restored, and the state it is 'frozen' at is from the time it was minimized.
    There are other digital indicators on the front panel getting updated in the same 1Hz loop, so I know it is just the 2D picture indicator that's not working--i.e., something with LabVIEW or system related is causing the image not to refresh while it's minimized, and more importantly, for some time after the application is restored.
    Some things that will cause a successful refresh to the displayed image after I restore from the task bar to a stale display:
    Minimize again, then restore again (of the LabVIEW window)
    Probing the datapath on the BD for the final Draw Line output that connects to the indicator
    Waiting for awhile (15 seconds? 30 seconds?)
    I also tried setting the following property node with no effect: 
    VI > Panel > Defer Panel Updates > Set to False
    Another way to think about this would be to imagine a 2D picture control with an analog clock, where lines are drawn for minute and hour hands, and updated once per second.  This is not what I'm doing but the example is easy to understand.  When the application is restored from the taskbar, the clock appears frozen in time from the last time it was minimized.
    Same behavior running this in LV 2012 and 2013... I am looking for any other property nodes or refresh methods to force a refresh at 1Hz, regardless if the display is visible.  The display should be immediately up-to-date when the application is restored by the user.
    Solved!
    Go to Solution.

    You could try looking at the panel resize event (to recognize the restoring) and then force an update using one of the following methods (I have no idea if they will help):
    Set defer to T and only then to F.
    Set defer to T when minimizing.
    Set the FP window state to something else (hidden, minimized, etc.) and then to standard. This should ideally do the same thing you did with minimizing and restoring again.
    Use the window position property to place the window off the screen and then back in its original position.
    See if you can toggle the synch. updates property programmatically.
    Have a hidden control displayed over the picture control and then hide it.
    Try to take over the world!

  • 3D picture control only words as administrator

    I am using Labview 8.6 and trying to use a 3D picture control but am having a strange issue.
    The problem is that the 3D control only works if I am using the administrator account.  If I am using a limited account and I drop a 3D picture control on the FP nothing displays.  Additionally, the picture box behaves badly.  I either see through to the desktop background or get multiple overlapping bits of whatever is on the FP.  I tried launching Labview8.6 "as administrator" but it still doesn't work.  Only if I run Labview under the Administrator account does it work.
    Any solutions?

    Hey chiraldude, 
    What video driver are you using? You can find this out by going to the control panel, selecting device manager, and looking under display adapters (my computer uses NVIDIA, as you can see in the attached Device Manager screenshot). With this information, I can make some better suggestions about what you need to do to have more control when Aero is off. 
    cheers!
    ~kgarrett
    Applications Engineer
    National Instruments
    Attachments:
    Device Manager.png ‏33 KB

  • How can I view my object in Labview's 3D picture control?

    Hey everyone,
    I'm very new to Labviews interface and was wondering how I can go about creating a VI (or subVI) to load my pre-existant VRML file and display it using 3D picture control.
    Just looking for a very simple solution.
    Many Thanks!
    Solved!
    Go to Solution.

    Hi,
    The VIs used to load a VRML file are only included in the Full Development System version of LabVIEW according to the help. If you do not have a Full Development System License you won't be able to find those VIs.
    You can find them under : Programming » Graphism and sound » 3D Picture control » File loading (sorry for the bad translation I have French version).
    Regards,
    Da Helmut

  • ACR 4.6 Picture Controls

    I am confused about what is happening.  Any help would be appreciated.
    I understand that Nikon Picture Controls can be used to change the color balance which may give better color.
    I am running CS3 in a 64 bit Vista Ulimate operating system
    What I am trying to understand is how the Camera Profile works in the Camera Calibration tab in ACR.  I am currently shooting a Nikon D200 and a D300.  I understand that Nikon picture controls can be available in the Camera Profile of the Camera Calibration tab
    I went to http://www.adobe.com/support/downloads/thankyou.jsp?ftpID=4040&fileID=3754 and downloaded ACR 4.6.  I then unzipped and installed.
    After installing ACR 4.6 I downloaded and installed GND 5.5 at http://www.adobe.com/support/downloads/thankyou.jsp?ftpID=4576&fileID=4244
    The Title bar in ACR shows Camera Raw 4.6.  The Camera Profiles in the ACR Camera Calibration tab shows ACR 4.4 and 4.3.  After installing GND 5.5 the Nikon Picture Controls (NPC) appear in Camera Profiles.  When I click on one of the NPC it seems to work but the Shadows, Red green and Blue Primaries are not changed.
    When I go to the DNG 5.5 DNG Converter in the compatibility section of the preferences section it says that it should work for 4.6 and later.
    My confusion relates to the fact that my Camera profile in the Camera Profile shows ACR 4.3 and 4.4 – not 4.6 and the DNG converter preferences says 4.6 and later.  Someone that I know who downloaded and installed ACR 4.6 and DNG at the same time has the camera profile showing 4.6. 
    Do I have a problem or am I spinning my wheels?  If I have a problem how do I correct the Problem?

    Forums #1 wrote:
    My confusion relates to the fact that my Camera profile in the Camera Profile shows ACR 4.3 and 4.4 – not 4.6 and the DNG converter preferences says 4.6 and later.  Someone that I know who downloaded and installed ACR 4.6 and DNG at the same time has the camera profile showing 4.6.
    The fact that there are two older profile versions (4.3 & 4.4) simply mean that the FIRST version to support your camera model was 4.3. The fact that 4.4 is there as well means the profile was modified (improved) for ACR 4.4. the reason both are there are for legacy reasons...
    Looking at the Profile drop-down is NOT the way you determine the current version of Camera Raw you have loaded...the ONLY way is using the  "About Plug-ins" menu item or looking at the main ACR title bar in the window (as long as you aren't at full screen).
    If you have the Adobe Standard and the vender looks profiles loaded, you're good to go...as to what those profile will or won't do to and for your image...well, that's for you to decide. I tend to use Adobe Standard.

  • Q: Repost. Visualizing Measurement Data in Picture Control. Was: Color Table Question

    I wish to visualize in a picture control a matrix of 80 * 80, 16 bits
    values. These values represent grey scale light intensities.
    I'm trying to use for this the Flatten Pixmap.vi, followed by Draw Flattened
    Pixmap.vi.
    Because the Flatten Pixmap.vi doesn't accept a 16 bit pixmap, I have
    compressed the data for each pixel to 8 bits.
    Then, as I understood, I should connect an array of 256 elements to the
    Color input of the Flatten Pixmap.vi.
    What should contain the elements of the mentioned array so that I get a gray
    scale image? Where can I read about this or find an example?
    Thanks a lot in advance.
    Victor

    Thanks to all of you who tried to help me. The problem isn't totally solved
    yet but I could advance.
    For unknown reason my newsgroup server hasn't carried out their answers,
    that I have recently seen through the NI site.
    Victor
    "Victor Manta" <[email protected]> wrote in message
    news:[email protected]..
    >I wish to visualize in a picture control a matrix of 80 * 80, 16 bits
    >values. These values represent grey scale light intensities.
    >
    > I'm trying to use for this the Flatten Pixmap.vi, followed by Draw
    > Flattened Pixmap.vi.
    >
    > Because the Flatten Pixmap.vi doesn't accept a 16 bit pixmap, I have
    > compressed the data for each pixel to 8 bits.
    >
    > Then, as I understood, I should connect an array of 256 elements to the
    > Color input of the Flatten Pixmap.vi.
    >
    > What should contain the elements of the mentioned array so that I get a
    > gray scale image? Where can I read about this or find an example?
    >
    > Thanks a lot in advance.
    >
    > Victor
    >
    >

  • Scale Picture via 3D Picture Control?

    I need to modify one of my programs that currently displays pictures in a 512x512 picture control to display 1392x1040 images.  This is not particularly easy, since you really can't fit much else on the screen at the same time asa  1392x1040 image.
    I'm not about to purchase the image manipulation tools from NI just for this purpose.  But it occurs to me: what if I use a 3D picture control, use the image as a texture on one side of a really thin rectangular solid, and then scale the object?  Is this feasible?

    It is feasible, to some extent. I experimented with presenting an animation on a plane. It turned out to be too slow for animation, but works for single pictures. Interpolation leaves something to be desired though.
    Zooming seems nice for large pictures, as was pointed out. Maybe one of the interpolation functions works for increasing the size.
    Lars Melander
    Uppsala Database Laboratory, Uppsala University
    Attachments:
    presentation.vi ‏26 KB

  • Picture control mouse property

    In LV 8.5 I notice that if you reinitialize your picture control to default value (using pop-up menu) the mouse position property no longer works, it will always return 0,0 no matter where the mouse is in the control.  You must destroy and re-create your picture control to fix it at that point.
    Maybe this has been fixed in later versions of LV but I have not seen any documentation of this.
    Solved!
    Go to Solution.

    Good Afternoon Garvacious,
    When you say the pop-up menu, I assume you mean the menu that appears if you right-click on the control.
    I just tried this in LabVIEW 8.6.1.  My mouse cursor position reads 0,0 when the mouse is over the control and -1,-1 when the mouse is not over the control.  This is a bug.  I have filed the appropriate internal documentation (Corrective Action Request #167102) so that R&D is aware of the issue.
    Thank you for letting us know about this behavior.  I am sorry for any inconveniencce this bug has caused you.
    Regards,
    Charlie Piazza
    Staff Product Support Engineer, RF
    National Instruments

  • A3 reading Nikon Picture Controls

    Research on the internet suggests that only Nikon conversion software will read Picture Control settings in Nikons. I had trouble telling the difference between diferent Controls in test shots I did with the d7000. I'm now thinking there probably wasn't if A3 doesn't recognise this facility. Anyway, I'm quite interested in using Picture Controls so would appreciate any help on this. Cheers, jp

    Thanks DiploStrat. I may not have explained myself very well but I do agree with you. I've always shot in RAW. And to be honest I thought Picture Controls were something for the "point and shoot" mindset (and Ken Rockwell). And in answer to Frank, the overwhelming reason to shoot in Raw is the flexibility it gives me with post processing. Which is your point DiploStrat - all the picture control stuff can be done here.
    I presumed that the effect of the photos you intensely dislike the look of (no sitting on the fence here - an admirable trait) was done with PS or simlar software. However, as I've mentioned, my weekend workshop tutor said try picture controls, which obviously work for her. I learned a lot from the workshop but somebody has yet to convince me why I should use Picture Controls. So, at present I'm with you DiploStrat, and learning the editing formulae is the way to go.
    Not a futile discussion though, I've learned a bit (discovered Rob Boyer) and feel more comfortable that Picture Controls are not something I need to worry about.
    Thanks for the below info - I'll check it out. Cheers, jp
    -- Run your images through Capture NX first and then import the TIFF into Aperture, or,
    -- Take a look at Catapult: http://brushedpixel.com/
    Best wishes,
    DiploStrat

  • Problems with Mouse Down event for a picture control embedded in tab.

    I noticed that when trying to get a Mouse Down event for a picture control that the Mouse Down will not be 'fired' if the picture is embedded in a tab control. It also appears that this problem exists for other controls (I only tested a slider in addition to the picture). It isn't much of an issue for me now as I can just poll the mouse property of the picture control, but the Mouse Down event has information that I may want access to in my next software revision (button pressed, and Alt mod). I could do that by handling the Mouse Down event for the tab itself and checking to see if the the mouse property isn't -1, -1 for the picture, but that seems a little bit too kludgy (sp?) to me and wouldn
    't address the issue with other control types. Any chance of this being addressed by a patch sometime in the next couple of months???
    Attachments:
    TabProblem.vi ‏69 KB

    The problem I reported above was in LV 6.1.
    As a work-around, I used the mouse down on the tab control and did the math to decide if the picture was clicked.
    I have been told that this was fixed in LV 7.0. I can not confirm.
    You could call NI and ask about the service request number I cited above.
    I hope this helps,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Open pdf and display it in picture control or picture box in LV8.5

    Im trying to open a pdf in labview v8.5 and post it in a picture control or picture box (activeX). Any help would be appreciated. thanks.
    M

    mblu,
    Check out these Forums that seem to have figured out how to do this using ActiveX.
    PDF in labview front panel
    Displaying A PDF File on the Labview Front Panel
    Import a pdf document to an active x control
    Ben Sisney
    FlexRIO V&V Engineer
    National Instruments

  • How do I apply a texture to an imported .stl file in 3D Picture Control?

    Hi, I'm trying to apply a 2D image as a texture to an imported .stl file in 3D picture control. It works fine if I'm using a standard shaped mesh created in LabVIEW, however is there a way in which a texture can be applied to an imported model that isn't a standard shape, in my case a balloon. I've attached the an image of the Sub vi where I apply the texture. The object just shows up as a flat colour. Do I need to define how the image is applied to the mesh due to it being a non-standard shape? If so, any pointers would be appreciated.
    Many thanks.
    Oh, I'm using LabVIEW 2009 SP1.
    Attachments:
    stl texture problem.jpg ‏60 KB

    Apologies, been trying all afternoon and then a couple of minutes after posting, I figured it out. Using a property node for the Scenemesh reference, I set the property TextureGenMode to Spherical and it appears to now display the texture on the mesh.

  • Loop delay when using two VI's with picture controls simultaneously

    Hey all,
    I have observed an odd behavior and I'm not quite sure why it happens. I have two VI's that are mapping GPS coordinates onto XY graphs that are displayed on top of picture controls. When the maps from both of the VI's are visible on screen the loops get delayed by as much as a second, but if you just cover the map portion with another window they go back to looping at twice a second as they should. It took me a little while to figure this part out, let me tell you. There are no computing limitations that should be affecting it since my CPU is only at 10-12% and have 4GB of RAM available. I checked the GPU too just in case and it was sitting at 3% usage, so no hold up there. Anyone have any experience with something like this happening to them? It has me stumped.
    I though it might have to do with how LabVIEW handled them, so I went ahead and made them into EXE's and tried it out with the same results.
    Thanks in advance for any help or suggestions,
    dnorman

    dnorman wrote:
    Is it possible to run the redraw of the picture tiles in parallel, on multiple cores, if they are going into the same control?
    I doubt it. Even if the picture control wasn't pretty old (and it is), I don't know of any mechanism which will give you this level of control.
    Here are potential options. I have no idea if they will help:
    Instead of building separate commands, process the data in such a way that you have a single raster image (i.e. a 2D array) to place into the control. I believe this should be faster.
    Use another type of display (such as a .NET indicator).
    Instead of using the XY graph, overlay the data directly onto the image (there should be some graph VIs in the picture palette which might help).
    Try defering panel updates before updating all the controls and undefering after. I don't think this will help, but it's probably the easiest change to make.
    Try to take over the world!

  • Inserting a small graphics in a picture control

    Does any one have an example code for inserting a small graphics/8 bit bmp file (15x15) in a relatively large (240x360) 8 bit jpeg image at known location in LabVIEW using Picture Control? Thanks in advance.

    Hello,
    To read an image file (BMP, JPG, PNG) and put it into a picture control you can use the OpenG function "draw image from file", and then use the picture control property "Zoom" to fit it correctly.
    Here's an example :
    You can get OpenG functions from here.
    Hope this helps.
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"

Maybe you are looking for