A problem for the picture control .

Hello,
There is such a question :
When loading a picture into a picture indicator , I can pop up a dialog and have the user to assign some property values for the picture , the application then saves the values to a file . I believe I can recover graphics information through reading the file , but how to create such a mechanism which can assign or associate a data type (e.g. a Boolean value) as the user specified to a picture ? Of course , in edit status , a control can be customized and replaced by a picture sign , but I need to realize this when the application is running . Thanks .
David

Here is a VI-in-progress drawig some components of our system.  I will post shape subVI's in subsequent replies. 
This VI simply generates random numbers and colors shapes
accordingly.  Therefore, separate shapes in the same picture
indicator are individual indicators.  What I am aiming to do is
use event structures to make individual shapes in the single picture
indicator controls as well as indicators (i.e. On mouse over circle,
open "plotpressure.vi", on mouse click on diamond, send 5 volts to
channel AO 21, PXI 6528). 
I have read some threads indicating the need for tedious locating of
different regions in the picture indicator for event programming, but I
have not gotten that far yet.  I am still designing a picture
indicator with individual indicators. 
Brad
The main VI is the "Multiple Shapes Example.vi"
It calls "Draw LE ESA.vi" and "(XY)r to 4s square.vi"  among others.  I will post the others subsequently.
Attachments:
(XY) r to 4s square.vi ‏10 KB
Multiple Shape Example.vi ‏23 KB
Draw LE ESA.vi ‏59 KB

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.

  • 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

  • Module pool ---Problem in finding the line index for the table control

    Hi Friends,
    I am working in Module pool programming.
    My requirement is when i select any record on the lead selection I need to find out the index of the line on which  row i have selected.
    Could any one please suggest me the proper solution how to get the line index for the table control in module pool programming.
    Thanks
    Satish Raju

    Hi Raju,
    Follow the steps
    <li>U should take one variable in your internal table or in structure which is used for table control fields.
          DATA :BEGIN OF itab OCCURS 0 ,
                mark TYPE c ,
                matnr LIKE mara-matnr ,
                matkl LIKE mara-matkl,
                maktx LIKE makt-maktx,
            END OF itab .
       controls: tabc types tableview using screen 100.
    <li>This mark variable should be given in Table control properties. follow the path
    double click on the table control-->attributes .->select w/SelColumn and in that give itab-mark.
    <li>Flow logic of the screen
       process before output.
         MODULE status_0100.
         LOOP AT itab with control tabc
         endloop.
       process after input.
         module cancel at exit-command.
         LOOP AT itab.
           MODULE read_table_control.
         ENDLOOP.
         MODULE user_command_0100.
    <li>read_table_control module code
         MODULE read_table_control INPUT.
         MODIFY itab INDEX tabc-current_line."this will update the itab table
                                             "mark field with 'X ' whatever we
                                             "have selected on table control
         ENDMODULE.
    <li>If you want to Delete some of the records from Table control follow this code u2026Create one pushbutton and give Fucnction code to that and write below code
       CASE okcode.
         WHEN 'DELETE'.
           LOOP AT itab WHERE mark = 'X'.
             DELETE itab.
           ENDLOOP.
       ENDCASE.
    I hope that it helps you.
    Thanks
    Venkat.O

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

  • 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 just upgraded to iPhoto '11.  When it was finished many pictures do not appear.  I have a black box but the information for the picture is still there.  Some are raw and some are jpeg.  Also lost all albums.  Can anyone offer assistance?

    I just upgraded to iPhoto '11.  When it was finished many pictures do not appear.  I have a black box but the information for the picture is still there.  Some are raw and some are jpeg.  Also lost all albums.  Can anyone offer assistance?  Using iOS 10.7.5

    Apply the two fixes below in order as needed:
    Fix #1
    1 - launch iPhoto with the Command+Option keys held down and rebuild the library.
    2 - run Option #4 to rebuild the database.
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    1 - download iPhoto Library Manager and launch.
    2 - click on the Add Library button and select the library you want to add in the selection window..
    3 - Now that the library is listed in the left hand pane of iPLM, click on your library and go to the Library ➙ Rebuild Library menu option.
    4 - In the next  window name the new library and select the location you want it to be placed.
    5 - Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments.  However, books, calendars, cards and slideshows will be lost. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    OT

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

  • I have taken over 9999 pictures with my phone and it is now creating duplicate names for the pictures starting back at 0001 making it difficult to manually upload my photos like i always have. How do i fix this?

    I have taken over 9999 pictures with my phone and it is now creating duplicate names for the pictures starting back at 0001 making it difficult to manually upload my photos like i always have. How do i fix this?
    (I tried to just write this as a reply to someone who had already asked the question whos problem was magically solved after posting the question and the site was not allowing me to post to it so here I am)

    Additionally, when I try to sort the photos by date to easily extract the newest photos which I have not yet uploaded, it is unable to put them in correct order regardless of the fact that the date is correct. Only the videos end up in chronological order for some reason while the photos stay in order by name.

  • Problem with the table control BDC in FV60 transaction

    Hi All,
    I got the problem with the table control in FV60 transaction.
    This is working for 900 line items.After 900 line items it is giving the problem like it is 1000th line item.You can post only 999 line items.
    I know we can post only 999 line items,but in my file only 920 line items.
    Please give me solution,if anybody come across this situation.
    Thanks & regards,
    rakesh.

    Hello Rakesh ,
    your file may have only 920 line items , but based on those line items, SAP may create few more  new lines ( based on the clearing recon accounts , inter company transaction ...etc )...
    regards
    Prabhu

  • The "alt tag" never appears for the pictures!!!??

    '''I am a web-designer''', and whenever i trying to use the '''alt tag''' for the pictures it never appears.
    ''The "alt tag" is a part of the HTML language'', and the one writes it to make sure that the visitor of the site will see or understand the content of the pics, even if he has a very bad connection.
    like so:
    <img src="'''the image'''" alt="'''the name or the theme of the pic'' />
    Every thing goes right with the width or the height, but when it comes with the "alt" it never appears.
    I tried it on IE and Opera, and it works.
    Plz if you know how can i solve this problem send me to
    [email protected]
    IT'S URGENT
    [http://the alt tag doesn't work http://www.w3schools.com/html/tryit.asp?filename=tryhtml_images2]
    '''''I attached a link for "W3SCHOOL" put ur cursor over any pic and you'll find no writing'''''

    Alt is not for tooltips, that is misbehavior from Internet Explorer. To show a tooltip you must use the title attribute. In fact, in order to create a truly web standards compliant webpages, you must specify both. Alt is shown if there is no image available, title is for the tooltip. <br>
    See https://developer.mozilla.org/en/Mozilla_Web_Developer_FAQ<br>
    USE: alt="Google Chrome" width="33" height="32" title="my tooltip"

  • Unable to get Window Handle for the 'AxCrystalActivXViewer' control.

    Hi,
    I have Operating System : Windows 7 and Application developed in VS 2005 and I am using Crystal Report XI licenced version.
    But when I am trying to use TTX(Field Defination) based reports it gives me "Unable to get Window Handle for the 'AxCrystalActivXViewer' control. Windowless ActivX Controls are not supported."
    Please provide me solution for this ASAP as I am stucked on this from long lomg time.
    -Regards
    Swapnil

    Appears you are installing an upgrade version.
    Use these links:
    http://downloads.businessobjects.com/akdlm/crystalreports/crxir2_sp4_full_bld_0-20008684.exe
    http://downloads.businessobjects.com/akdlm/crystalreports/CRYSTALREPORTS06_0-20008684.EXE

  • Hello. I have an iPad2, and iMovie software. My main problem, for the moment, is the length of the videos: I can´t create a video with more than 56 seconds. When I try, the app shuts off... Can anyone help me?

    Hello. I have an iPad2, and iMovie software. My main problem, for the moment, is the length of the videos: I can´t create a video with more than 56 seconds. When I try, the app shuts off... Can anyone help me?

    Sorry. We can't help you. It's no longer an iPhone. Apple won't touch it.
    Take it to whoever replaced the screen and see if they can help you.
    iPhones are not user servicable and Apple does not sell iPhone parts at all. I'd be surprised if you were actually able to back it up at this point. It sounds like it's completely borked.

  • FaceTime freezes when same room has no problems. The picture is high resolution. There are no freezes when calling my daughter's iPad but the picture is lower resolution. Can I troubleshoot this?

    FaceTime freezes when I call my son's iPad. Calling his iPhone in the same room has no problems. The picture is high resolution. There are no freezes when calling my daughter's iPad but the picture is lower resolution. Can I troubleshoot this?

    Thanks Mario, but I tried everything there before posting my question. I may not have been clear in my question since I accidently recorded the whole question as the title and tried to edit. In brief: I have no trouble connecting with my daughter's iPad or my son's iPhone. However, his iPad is sending much higher resolution pictures and we disconnect after about a minute.  Oddly, he can hear and see me while my screen first freezes, then goes black and gives me a message of "reconnecting" until it quits trying and shows the buttons to end or redial. The picture quality difference is what is leading me to believe it is bandwidth related. However, I get anywhere from 5 to 10 MB download speeds; usually closer to 10. Last summer, I had 4 granddaughters on their iPads, a grandson on his gaming device and me on cell phone or pc, all using the bandwidth at once with no complaints. If there is a way to lower his outgoing resolution, I think that would help.

  • [svn:osmf:] 13121: Moving the setup for the default control bar into a DefaultControlBar class .

    Revision: 13121
    Revision: 13121
    Author:   [email protected]
    Date:     2009-12-21 11:53:07 -0800 (Mon, 21 Dec 2009)
    Log Message:
    Moving the setup for the default control bar into a DefaultControlBar class. Adding constants for the widget names, and updating WebPlayer accordingly.
    Modified Paths:
        osmf/trunk/apps/samples/framework/WebPlayer/src/WebPlayer.as
        osmf/trunk/libs/ChromeLibrary/.flexLibProperties
        osmf/trunk/libs/ChromeLibrary/src/org/osmf/chrome/controlbar/ControlBar.as
    Added Paths:
        osmf/trunk/libs/ChromeLibrary/src/org/osmf/chrome/controlbar/DefaultControlBar.as

    Revision: 13121
    Revision: 13121
    Author:   [email protected]
    Date:     2009-12-21 11:53:07 -0800 (Mon, 21 Dec 2009)
    Log Message:
    Moving the setup for the default control bar into a DefaultControlBar class. Adding constants for the widget names, and updating WebPlayer accordingly.
    Modified Paths:
        osmf/trunk/apps/samples/framework/WebPlayer/src/WebPlayer.as
        osmf/trunk/libs/ChromeLibrary/.flexLibProperties
        osmf/trunk/libs/ChromeLibrary/src/org/osmf/chrome/controlbar/ControlBar.as
    Added Paths:
        osmf/trunk/libs/ChromeLibrary/src/org/osmf/chrome/controlbar/DefaultControlBar.as

Maybe you are looking for