Array of picture controls and zoom factor

Is it possible to set different zoom factors for the elements of an array of 2D picture controls?
Ben64
Solved!
Go to Solution.

No.  Zoom factor, like almost all properties of array elements, is the same for all elements.

Similar Messages

  • Scaling a 2D picture without using zoom factor

    I currently have a large 2D image and several smaller 2D iamges that overlap the large image.  The large image is created with the draw in labview, while the smal iamges are created with a png.  The zoom factor on the large image is 7, while the png 2D images have to be scale by .21 to fit properally on the large image.  Since the 2D images are stacked, while the back image updates it sometimes "flickers" through the small images.  To solve this I can combine the images, but this does not work since the zoom factors are different.  Is there a way to scale down an image without using a zoom factor?  Is it possible I have to programmatically scale the bitmap?
    Thank you for your time
    Mitchell Worner

    MWorner wrote:
    I did not think anyone really wanted to go through that much code.   
    Well when my car doesn't start I don't just bring my engine to the mechanic, I bring the whole car.  Of course some times if I talk to a mechanic it might be clear that I forgot to put the key in.
    LabVIEW's image format doesn't support alpha layers, so you can perform the scale, but using the PNG data to Image will be forced to give it a background.  And I'm guessing even if the transparency is set to 100%, the color of black was choosen for the RGB color in the other 3 U8s that make up a pixels.  The PNG can be displayed with transparency using a .NET picture box, using that same PNG data stream.  That has a few other limitations in how any .NET container is handled in LabVIEW, but I'm pretty sure you could load the large non-transparent LabVIEW image first, then put the png with alpha layers on top of it, then either load it in the .NET picture box, or convert to LabVIEW data and display it.  Here are a few links of code of mine demonstrating how some of this can be done, the second link includes a PNG with alpha layers.
    http://forums.ni.com/t5/LabVIEW/How-to-put-a-NET-control-with-PictureBox-at-background-Z-order/m-p/2615145#M784099
    http://forums.ni.com/t5/LabVIEW/NET-picturebox-convert-to-LabView-image/m-p/3125944#M897890

  • I accidentally held down control and zoomed in, and it enlarged my entire screen. How do I get the zoom on my screen back to normal?

    This is my first Mac so it's pretty much foreign to me. I was holding down control and accidently used two fingers to zoom on my track pad, and it zoomed in on my entire screen. How do I zoom out and get my screen back to normal?

    On the track pad control while moving two fingers down to zoom out to the original size and control plus two fingers moved up to zoom on.
    Alternatively if you have a magic mouse use control and drag one finger up and down on the mouse to control zooming.  If mouse wheel use control and move the wheel.

  • Questions on 3D picture control and STL file

    Hi,
    I am currently working on a project in which I load an STL file to vizualise a 3D object (see attachment). I have several problems and questions.
    1) I would like to execute rotations (X,Y,Z) on this 3D object. Unfortunately, Labview executes only one rotation and I don't know why
    2) If I load several objects, is it possible to create links/joints between them? I saw the example with the robot arm provided in the Labview examples, but I don't understand where and how the joints are defined.
    3) Is it possible to import an image (png, jpeg,..) on a scene display? I would like to visualize a graduation to see the number of degrees of rotation of my object.
    Thank you for your answers
    Message Edited by kastillio on 10-23-2009 04:24 AM
    Attachments:
    load_stl_geom_8_6.zip ‏56 KB

    Thank you so much for your post on our forum.
    I created an example based on the VI You send Fact is that we need to use relative rotation. With absolute the previous rotation is cleared and the new rotation is done from the zero point. With your example this means that you first do the Y rotation and immediately the X rotation is done resetting the previous Y rotation. If you swap these two rotations you will notice that only the Y rotations works because the previous X will be reset.
    As said I made an example based on relative rotation so the rotation will be done from the current position. I used the rotate object.vi and used a event structure looking at the value change from the x or y control. The function will be executed when these value changes occur.
    Best regards,
    Martijn S
    Applications Engineer
    NI Netherlands
    Attachments:
    load_stl_geom_8_6.vi ‏18 KB

  • Is there any way to control the zoom factor so that when my SSIS Package is opened, it is entirely visible within Visual Studio?

    I have formatted my SSIS Package beautifully, if I do say so myself, so that all my tasks are visible at 50% zoom. However, when I close my project and then re-open it in Visual Studio, it defaults back to 100%...YUK!
    I did find this post which didn't seem to work...even to the point that no where within my xml could I even find the "PersistedZoom" Parameter. I even tried manually adding it, I couldn't find the exact syntax on it, and that didn't even work.
    1. In BIDS (Visual Studio) first close all open SSIS packages / xml files to avoid confusion ...
    2. Right click on the SSIS package and select the "View Code" menu item. (to open the actual xml)
    3. Search for all instances of "PersistedZoom" and change the value directly to the right of it to 100 (mine
    was 80 or 90 ...)
    4. Now save and close the XML file.
    5. Now open the SSIS package in the designer, you will notice that it is still scrolled to the bottom right!
    6. Now make any small change (I scrolled to the top-left and just slightly moved a task)
    7. Now save and close the designer
    8. Re-open the SSIS package in the designer! and what do you know it does not start scrolled down to the bottom right anymore!
    Let me know if you still have issues - but as I said I followed this same process on all my problem packages and they ALL now open correctly.
    I noticed that after doing all this the PersistedZoom property disappeared from the xml, which leads me to believe that if I zoom in and out of my packages again it will probably get stuck by opening to the bottom right again ...
    Can anyone help me out with this?
    Thanks for your review and am hopeful for a reply.
    PSULionRP

    There is no way to preserve view preferences.Just remember or annotate the zoom % used in the package.
    You may want to open an MS Connect item asking to add such a feature.
    I can tell you it may not be implemented because a package may be opened on different size monitors.
    Arthur My Blog

  • 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!"

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

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

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

  • Picture Control to Waveform Graph

    Hello everyone,
    I'm utilizing the Draw Text at Point VI to display the string "eo" on the picture control.  To put the fear of intense imagining behind, I bring up the question, is there any way to convert the Picture Control, and it's contents, to Waveform graphs?  I could have sworn I worked with intensity graphs and did conversions in this fashion but for the life of me I cannot remember how it was done.
    If not, is there any simple way to bring up actual text in a waveform graph for laser imaging to follow?
    Thanks for any help...
    Regards

    Hi Steve,
    I had a colleague transfer an image into a Waveform Graph.  What came out was not at all the original picture.  The IMAQ driver was used.  I don't know of a method like what you have described.
    Kevin S.
    Applications Engineer
    National Instruments

  • FP.Get Image not working on a subVI if it has a picture control

    Download the attached (7.0).
    Open and save BOTH VIs in your own version. This is important, because it looks like if the VI is recompiled its FP is loaded into memory and the bug is not apparent.
    Run the VI. The indicators in the subVI are not updated the first time you run the VI.
    This happens in 8.6 as well and requires the subVI to have a picture control and to have its FP closed.
    One workaround is to use the first call? primitive and call the Open FP method (with the state set to hidden) when the VI starts running.
    Try to take over the world!
    Attachments:
    SubVI FP not updating.llb ‏30 KB

    Hey Tst,
    Thank you for the feedback.
    I tried the vi's you have attached here and it updated the first time I ran the Caller.vi.
    I must be doing something different from you.
    Aashish M
    Applications Engineer
    National Instruments
    http://www.ni.com/support/

  • 3d picture control view single object

    I'm using the 3D picture controlfor the first time and I'm amazed at how much faster it is at drawing than the old Picture control.  Likey Likey.
    What I would like to do is to abuse the 3D picture control as a 2D picture control but I need to fill the viewport with a single side of a box created in the scene.
    I can create the box to have th same orientation and size of the viewport and also create the texture for the box the same size, this is no problem.  What I want in the end is to have my texture pixel-perfect in the viewport of the 3D picture display.
    I can do this manually via "projection Matrix" and "model View Matrix" but I don't quite understand where the numbers come from.  Since I'm a bit of a dunce when it comes to matrix transoformations, can somebody perhaps help me out with some tips on where to find this informaiton out?
    Shane.
    Say hello to my little friend.
    RFC 2323 FHE-Compliant

    I worked it out. 
    Knowing that the corners of the viewport are always from -1,-1 to 1,1 regardless of the actual aspect ratio of the indicator it's kind of easy to work out the settings required.
    Simply paint a texture on a 1x1x1 cube and voilà.
    I'm amazed at the difference in speed between the old picture control and the new 3D picture control.  Is it hardware-accelerated?
    Shane.
    Say hello to my little friend.
    RFC 2323 FHE-Compliant

  • Help! I zoomed in on a picture online and now I can't zoom out enough for my desktop to return to normal. How do I get my desktop back to its regular dimensions?

    I zoomed in on a picture online by holding control and open pinching and for some reason, my desktop was enlarged as well. How I can't zoom out enough for my desktop to return to normal? I would like to be able to see my whole desktop without scrolling over to see the time or the file menu!

    Hold down the Control key and drag two fingertips down the trackpad toward you.

  • 3D Picture Control Orthographic View zoom - Camera Set up?

    I am trying to display two 3D picture controls.  One displays some objects in 3D (Auto Projection: Perspective, Camera Controller: Spherical).  This 3D image works great and I am having no problems with it.  The other Picture Contol is meant to simulate a 2D image of the 3D object, essentially a Plan View.  To do this I made a 3D picture control with a Orthographic view.  I set the camera to view from above (z-axis) and set the target to be positive y-axis. 
    I have attached an example vi (labview 2013 SP1) that creates some simple 3D objects and displays them in Perspective and Orthographic using the same Camera Position.  On initial start, the Orthographic image is zoomed in heavily. If I manually zoom it (Hold Shift button and mouse up or down), then the Orthographic image will set itself to the correct Camera position.  This is essentially the solution to my problem, but I can't assume the user will have the ability to manually zoom the image.  So I need to set it programmatically.
    If you manual adjust the view on either screen (rotate and zoom), then click the Set Camera button, both images will give a plan view, but only the Perspective Image will be at the correct camera zoom or distance.  The Orthographic stays at the last zoom distance.
    Is there any way to set the Camera distance for Orthographic projection programmatically?   I have tried starting with the 3D picture control as perspective, set the camera distance and then changing it to orthographic, but this still results in a zoomed orthographic image.  From the reading I have done, I think I am trying to the impossible.  Does any one have another suggestion to get the same result.  I have previously used the 2D picture functions to generate the image but found that method inefficient. 
    And suggestions would be great.
    Thanks
    Relec
    Attachments:
    3D_projection_Test.vi ‏38 KB

    Hi Relec,
    thank you (and Kudos) for that inspiring demo!
    Took me while to work it out, but I might have found something that could help us with the orthographic projection.
    Sometime back someone posted a way to collect the current Camera data. Sorry I lost the source. But here is my version as a Get3DCameraPosition.vi using the ModelViewMatrix.
    Unfortunatly this doesn't return the current Target and so a bit of guessing in the right Direction is necessary.
    I'm impressed you found a way to make the Shift-Drag Zoom-movement possible on the orthographic window.
    It seems a whole thread at http://forums.ni.com/t5/LabVIEW/3D-Picture-Control-Doesn-t-Zoom-in-Orthographic-Mode/td-p/1544460/page/2 wasn't able to find that out.
    In the meantime I've found a way using the ProjectionMatrix to create a zoom-effect which I build into your demo using the mouse wheel.
    All in all I've tried to translate camera movements from the perspective window in the ortho - assuming this is what you were after?!
    Again the missing target information doesn't make it quite right.
    Regs
      Jannis

  • Stopping Zoom in and Zoom out of pictures

    I can't seem to find where I turn off the Zoom in and Zoom out features in iMovie related to pictures.
    Where or what I have to do to turn this feature off..
    Thanks

    Hi Douglas,
    Thanks for visiting Apple Support Communities.
    It does look like this is the default behavior for imported pictures in iMovie 10, and can't be disabled from the iMovie preferences. The best workaround is to select all of the pictures in your timeline and turn off the Ken Burns effect using the Adjust menu.
    iMovie Help
    http://help.apple.com/imovie/mac/10.0/#mov26d3f6a6c
    Modify a crop, rotation, or Ken Burns effect
    In the timeline, select the photos you want to modify or restore to their original state.
    Click the Adjust button in the toolbar.
    The adjustments bar appears above the clip in the viewer.
    To show the cropping controls, click the Cropping button.
    In the cropping controls, change Style from Ken Burns to Fit to display the pictures in their original size. From there, you can crop them individually as needed.
    Best,
    Jeremy

Maybe you are looking for