How can I be sure the new picture zoom value has taken affect?

Hi,
I'm writing a LV prog that displays a series of pictures (jpegs) one after the other.
The pictures are passed one at a time from the main vi to a sub vi that outputs the picture on its front panel.
Also passed to the sub vi is the smaller of the two dimensions of the picture whichever it may be (width or height). This varies from picture to picture.
The sub vi uses this dimension to calculate the zoom factor to use so that the picture will fill the whole of the picture box on the front panel.
I've used a flat sequence struture to:
1. Caluculate the required zoom factor and write this to the picture box property node.
2. Read the zoom factor from the property node of the picture and wait until it has changed to within 1/100th of the new value. (The reason for not waiting until it is equal to the new value is because they are floating point data types and even if they were minutely out it would wait forever. Anyway, 1/100th is close enough).
3. Write the picture to the picture box.
Even after including step 2 above I still occasionally found that it has displayed the picture before changing the zoom value.
Any ideas? I've attached the sub vi in question. The two inputs: 'PicInput' is the picture to be displayed and 'ZoomDim' is the smallest of the width,height dimensions in pixels determined by the calling vi.
Also, as I said my program sets the zoom value using the smallest of the two dimensions of the jpeg so as it entirely fills the picture box. This means that the other dimension will overspill outside of the box, can this cause any problems such as memory corruption?
Thanks,
Dave.
Attachments:
DisplayPicture.vi ‏31 KB

johnsold wrote:
Dave,
I could not duplicate your problem. On my system (LV 7.1.1, Mac OS X 10.3.9, 450 MHz G4) the while loop always executes only once. The read Zoom Factor is always exactly equal (within Probe display resolution) to the written Zoom Factor. If your system needs several iterations to get the Zoom Factor right, I would try putting in some delay, perhaps enough time to allow the display system to update (i.e, the frame rate).
As for the memory overwrite issue, I do not have any experience. Usually LV's memory manager is pretty good about such things, but someone else will have to answer that question.
Lynn
Hi Lynn,
Thanks for your reply,
Dave.

Similar Messages

  • I still have ilife '09. How can i update to the new ilife? Do i have to pay for each app seperately in order to update?

    I still have ilife '09. How can i update to the new ilife? Do i have to pay for each app seperately in order to update?
    I am an Aperture user and I am tired of managing my old iphoto library seperately. In order to use the new combined aperture/iphoto abilities i need a newer version of iphoto. Apple says that the new iphoto is free, however my iphoto (version 8.1.2) did not update. How do i update iphoto so that i can use the library with Aperture?

    iPhoto, iMovie and Garageband are free. However, you must be running Mavericks in order to download and use them. Mavericks is free also.  Therefore your Mac must be capable of running Mavericks:
    The following is from: Apple - Upgrade your Mac to OS X Mavericks.
    iMac (Mid 2007 or newer)
    MacBook (Late 2008 Aluminum, or Early 2009 or newer)
    MacBook Pro (Mid/Late 2007 or newer)
    MacBook Air (Late 2008 or newer)
    Mac mini (Early 2009 or newer)
    Mac Pro (Early 2008 or newer)
    Xserve (Early 2009)
    iWork is not as it's an upgrade and not an update. Upgrades for iWork have always had to be purchased. However, the previous iWork apps will work fine with Mavericks.
    OT

  • How can i make sure the graphic file from my subcontract create is really llegal?

    how can i make sure the graphic file from my subcontract create is really llegal?
    They have creat the PNG file which creat from Adobe Illustrator CS5.
    I have try checking on Metadata In Adobe Bridge, and it seem to be blank.
    So i would likt to know how can i make sure the graphic file from my subcontract create is really llegal?
    Thanks

    I have try checking on Metadata In Adobe Bridge, and it seem to be blank.
    So i would likt to know how can i make sure the graphic file from my subcontract create is really llegal?
    shoo: if i had to do that for every file i get  i would go insane, as scott said, post contract: files that they (sub contractor) supply you, presume them ok unless you KNOW otherwise, or a copyright flag pops up contradicting ownership.
    G

  • Recently bought photoshop cc for 20$ a month, how can I switch to the new offer at 10$ ?

    Recently bought photoshop cc for 20$ a month, how can I switch to the new offer at 10$ ?
    Do I really need to refound my photoshop cc and then buy with the new offer or is there an easier way to do it?
    Thanks for the help.

    When you order the new offer cancel the old.

  • How can I find out the list of users who has the access to IT 0008

    All,
    How can I find out the list of users who has the W R permission for IT 008
    for others?
    SUIM doe not look like giving me the correct results.
    Please advise.
    Thanks,
    From
    PT.

    combine tables AGR_1251 and table AGR_Users on keyfield AGR_USERS
    in tabel AGR_1251 select on Field LOW values IT0008.OR W OR R,
    noiw you get also other values
    So better solution run the query twice over AGR1251 first on IT0008 and secondly on values W OR R and then the result over table AGR_USERS
    Youu also might put an additional selection on object P* (only selecting HR objects)
    output wll be UID in table AGR_USERS

  • I currently own an iPod 4th gen. but would like to upgrade to a 5th gen. How can I make sure the info on the 4th is transferred and cleaned off before handing it over to my daughter?

    How can I make sure that my info on 4th gen. iPod has transferred to my new 5th gen iPod and all pertinent content deleted before transferring old iPod to my daughter?

    Go to Settings > General > Reset > Erase all content and settings
    Also... See the wjosten post here...
    https://discussions.apple.com/message/20294697

  • How can i exchange for the new design

    Last year my sister purchased a ipod shuffle 3rd gen, for my 10 yr old daughter. She bought it from Target and spent $145.00 at that time. Shortly there after i became aware apple had replace this 3rd gen shuffle with a new design. One that is more user friendly, especially for my 10 yr old. I have to say we have been very disappoint with her ipod for several reasons.
    1. there is no face so you cant see what your doing
    2. you must memorize the amount of clicks in order to operate it.
    3. we have only been able to upload new music to her ipod once since she got it a year ago. Even with online tech support,reading online forums,owner manuals, help from family and friends. To no avail.
    She has it still in the box neatly packed away. Its used as a show piece on her dresser to show that she has an (ipod). Neadless to say she does not use it,does not  like it mainly because there is no display panel which make it very difficult for her to function.
    So how can i exchange/replace the old design ipod shuffle generation 3  for the new design.

    Try disabling your firewall and try again.

  • How can I be sure the popups asking for my master password come from the Software Security Device ?

    I did setup a master password on my Firefox. I therefore have the Software Security Device asking for my master password now and then as a popup, but I have no way to be sure that the popup is coming from the Software Security Device.
    How can I be sure that it's not coming from a website or an extension trying to steal my passwords ?

    That message will not be from Mozilla, there are rogue sites that use this method to try to get people to install malware/viruses/trojans. Do not install anything from that site.

  • How can I make sure the Presenter Display will show up?

    I use the option "use alternate display to view presenter information", and it works fine with my secondary display at home. The presenter information (Presenter Display) with my notes etc. shows up.
    But when I gave a practice talk at my university, the Presenter Display did not show up, although all settings were the same. Back at home with my own secondary display, it works fine again.
    How can I make sure that the Presenter Display will always show up on the secondary display?

    I have a similar problem. Last year I gave a presention at a client's office using my Macbook. I had the presenter display on my Macbook screen and the presentation on their projector.
    A few months ago I upgraded to the latest Macbook Pro 15" (plus there have been upgrades to OS X and Keynote in that time). This time when I tried to run the same set-up my MBP screen went blank. I tried changing settings for Keynote and System prefs with no success. The only way I cuould give the presentation without needing to look at the projector screen was to mirro the displays (and lose the Notes of course). Maybe there is a bug with the latest Keynote?
    OS 10.5.7
    Keynote 5.0.2 (776)

  • How can I make sure the engineer comes this time?

    Hi there I noticed at the beginning of last week that my broadband had slowed to a crawl. I checked the phone and could not get a dial tone. Ringing our number made the phone ring but no conversation was possible. Broadband was synced at 640 Kbps I got the automated line checker which found a fault near my property - the telegraph pole in the graphic. I fault was logged on May 1st and I got a repair date for next Wednesday 9th which I wouldn't be able to make so I went to rearrange and was able to pick last Saturday morning 5th May. About 2 hours after i rearranged it I had a call from Mumbai, he said someone was going to be coming on the original date of Wednesday, I assumed that as I had just rearranged this would not now be happening, but couldnt get him to understand that the new dte of saturday 5th wasshoes ing on my fault update page. Sure enough nobody came on the Saturday . I have now rearranged it for the afternoon of Friday 11th May My question is how do I find out if an engineer is still going to come on Wednesday afternoon (I can try to take the afternoon off from work) or has that now been properly rearranged for Friday, given that last time it was irrelevant that Saturday was showing on my fault update page for the engineers visit? Is there any way I can confirm this is logged properly on the BT systems? Sorry about the long paragraphs posting from an iPad doesn't result in correct formatting!

    Haha, the engineer turned up today, on the wednesday, which was the original date allocated! 
    Despite me rearranging for last saturday morning, (showing up on my "track my fault") then, following a non show, rearranging for next friday afternoon, (showing up on my "track my fault") the OR enginner phones me (on my mobile obviously) to tell me he is her at 12.20 on the wednesday.
    Luckily I was at work and could get home in 20 mins, and the chap (really nice) said he would make a start. By the time I got home he told me he had fixed it - the connection was ?corroded (6 yr old house) on the BT side of the fence.
    There is a total disconnect between the "track my fault" page with BT and Openreach
    If my mobile had not been in signal range and I had not been able to get home to meet this really nice OR enginner, and had they not turned up on Friday with an afternoon lost from work I would not have been happy!
    I have an installation date for BT Infinity in 2w time, on price alone, but hope i don't live to regret this
    I would appreciate a reply as to why "rearrange my appointment" has no effect

  • I keep getting urgent msgs to download 3.6. I have done so, but the download doesn[t seem to finish completely. How can I make sure the download has occurred? h s

    I have dowloaded both 3.6 and 4.1 exe, however, I still get the urgent mesg from firefox. My download file shows that the downloads took place, but I guess they never were completely installed. How can I check to make sure the downloads are installed? Will the urgent messages stop when the downloads are truly installed?'

    Do a clean (re-)install:
    * Download a fresh Firefox copy and save the file to the desktop.
    * http://www.mozilla.com/firefox/all.html
    * Uninstall your current Firefox version and remove the Firefox program folder before installing that copy of the Firefox installer.
    * Don't remove personal data if you uninstall the current version (doesn't apply to Firefox 3.0.x).
    * It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    Your bookmarks and other profile data are stored elsewhere (not in the Firefox program folder) and won't be affected by a (re)install.
    *[http://kb.mozillazine.org/Profile_folder_-_Firefox]

  • How can I re-download the new pages.  App Center won't let me.  Says it is installed.

    I have messed up Pages 5 and now all I have on my Mac is the old pages 4.?  When I go to the App Center it tells me that the new Pages is installed.  But I have corrupted it somehow and need to download it again.  How do I do that when the App Store tells me it is already installed?

    Dah veed,
    I tried this but when I go to the purschases page, Pages in greyed out and still says "installed."  Any other suggestons?
    I can't find anywhere where another copy of Pages is installed.

  • How can I recover from the new Pages

    Does anyone know how I can recover a Pages file which has become locked into the new Pages program? I never edited it with the new Pages, but now I'm told I must have the new Pages to open it. I even tried opening it with the new Pages and converting it to PDF with the plan to copy and paste it into Pages '09, but i lost control of line spacing, etc. (It is a 4-column file of data on one page (in the '09 version, that is). Appreciate any help.

    Jay,
    Surely you did edit the file with Pages 5.2, or you wouldn't be having this problem. It's an easy mistake to make since both versions have exactly the same filename and extension. They are just stored in different folders. 5.2 is in Applications and 4.3 is in Applications/iWork '09.
    Use TimeMachine to locate a clean backup file.
    Jerry

  • How can I see on the new itunes how many gigs a playlist is?

    On the new Itunes I can't seem to see how many gigs a playlist is without trying to add it to my device.. it is extremely annoying and it makes it very difficult to build effective play lists.

    Either CTRL+/, or View > Show Status Bar.
    Either of those will bring back the line of information along the bottom, including duration and size.

  • My iPad was hacked through Words With Friends. Suddenly the tiles change and the points quadruple and I can't get control of the game.  I deleted the app, but how can I make sure the virus hacker is gone?

    iPad hacked from Words With Friends. Game suddenly appears in control.  Not responsive. Suddenly my tiles change, then the points quadruple. I deleted the app, but would really like to continue playing with my family.  How can I get rid of this hacker and or virus on my iPad?

    Since it has happened previously, it is likely someone you know or who has access to your systems, or has access to recovery information with that game vendor. I seem to recall that vendor being called out for account security issues in the past, but can't say for sure.On the other hand, the symptoms you describe do not necessarily mean you have been "hacked", could be just that something is amiss with the app.
    You may wish to reach to the app vendor and see what sort of support it offers.

Maybe you are looking for

  • Connecting to a satellite phone

    Hello, I have a satellite phone, a Nera Fleet 33 system installed in my boat. It is 5 years old and offers ISDN like connection in any part of the world. I used to connect it to a Windows XP and Vista PC defining it as a generic dial up modem of 33 k

  • Regarding line posting

    Hi Friends I want to post the data into my final structure. Here I want to create 2 line items for final structure 1for debit entry and the other for credit entry. I am writing the following logic: DATA: l_wa_a_efund_map LIKE LINE OF me->ai_efund_map

  • How to create tables in Database when webdynpro project is deployed

    Hi I Created a project.in that i created stuctures using simpletypes.Based on structure  i created the Context,then created screens.Now how to create tables in database using this structures .Because i want to store the values in the database.Please

  • New Customer - All my experiences so far have been...

    My experience so far after joining BT from Sky on 12th Aug. Joined on 12th August - nice lady on the phone tells me she has managed to secure me a Saturday (30/8) appointment for an broadband engineer, other services (phone, tv) will be available on

  • Open .webloc files in Windows

    I was suffering on getting .webloc files open on my Windows PC. I found a thread http://discussions.apple.com/thread.jspa?messageID=7244343 but it was archived, so I couldn't reply no longer to it, but I noticed that it was never solved. Since I didn