Array of clusters does not updates properly

Hello...
I builded a VI to split a series of 10000 values in many segments, each one overlapped by 50 %. The product of all the values of each segment is calculated and by means of visual inspection and Led selection (green means that the segment will be used, red means that the segment will not be used), I can select which segment will be used for the final sum. For example: if I have 20 segments, but only segments 4, 8, 15 are green, only the products of the segments 4, 8 and 15 will be summed to generate the final result. The final result should be refreshed if the Lenght of the Segment is changed or if any Led is switched to green or red, but the update does not occur properly. Sometimes all the segments are showed properly but if I change one Led or the Lenght of Segment control, the given result is wrong. When the Lenght of Segments control is changed, all the Leds need to be adjusted to green state.
I don't know where is the problem in my code, but I think that is something related to the cluster constant that is wired to the first Unbundle by name, since that this constant was created from the cluster before it was inserted into array, and not from the array. If I create the constant from the array, the code returns an error.
To avoid race conditions I used flat sequence.
Thanks in advance for attention and help.
Dan07
Message Edited by dan07 on 07-26-2008 08:31 AM
Attachments:
Array of clusters.vi ‏43 KB

I spotted one problemous area:
Where you have an uninitialized shift register, so for every event the value of the last iteration is used.
What's the meaning of this piece of code?
I think you devide the length of the array by half the length of the segment?
Ton
Message Edited by TonP on 07-26-2008 05:34 PM
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas
LabVIEW, programming like it should be!
Attachments:
Array of clusters_BD.png ‏2 KB
Array of clusters_BD2.png ‏1 KB

Similar Messages

  • Firefox remembers old data and does not update properly. What is the problem?

    I follow my investments using the investment company's website. Today's data using Firefox does not reflect completley today's updates but retains some of yesterday's data. Why? What do I need to do?

    Firefox should reload frames from the website if you reload and bypass the cache.<br />
    Make sure that you do not use bookmarks that have GET data appended to the links (?xxx=xxx)
    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    * Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove the Cookies" from sites causing problems:
    * Tools > Options > Privacy > Cookies: "Show Cookies"

  • Muse CC 2014 - Does not update properly changes on websites in preview and browser preview

    Hi, I am working in a project on Muse CC 2014 and everything in the designer view works pretty well, but when I make change to colors, fonts, menus, etc and click preview, I cant see my changes, instead I saw old version of my project, the same happens on the browser preview, I need help cause I have to get this done today. Thank you.

    We purchased CC for teams and upgraded all workers to InDesign CC 2014.2 in March. Because I installed using a package - rather than individually - quite a few plug-ins were not working. This week, I uninstalled InDesign CC 2014.2 on everyone's machine and individually installed InDesign, from the Creative Cloud menu. However, instead of installing the expected InDesign CC 2014.2, it installed InDesign CC 2014. As stated above, "It doesn't even show up that the updates are available, it simply says "up to date"". Obviously this is not true - since we just had 2014.2 last week.
    Can someone please let me know why the new install would have regressed to a previous version - and how I might be able to get the current version back?

  • TS1702 When I update to IOS6 on my 4S Facebook does not work properly, the news feed never updates it only says no new storeys and shows a picture of an antenna. When I reset my phone and go back to IOS5 Facebook works fine. What's up with IOS6 ????

    When I update my iPhone 4S to iOS six Facebook does not work properly the newsfeed doesn't load properly and I can never see what's going on all I see is a picture of an antenna and a little thing underneath it says no new stories when I reset my phone back to iOS 5 then it works just fine and I don't have any issues so there must be something wrong with iOS six that isn't letting Facebook load properly

    No I did not use any unauthorized methods for anything, I simply reset my phone back to factory.
    <Edited By Host>

  • TS1398 My wi-fi does not work properly now I have updated my iPhone 4 can any one help

    My wifi does not work properly now I have updated my iPhone 4 to the iOS 6 operating system can someone please help me? Also on my maps I can not zoom in as image is so distorted

    Make sure your ring/silent switch on the side of the phone is not On (red dot showing).

  • HT4623 The APP application on my iPad does not function properly - any downloads requested immediately fail and send me back to the main iPad screen.  Any suggestions on how to fix this - all software has been updated to iOS 5.1.1 and no other updates are

    The APP application on my iPad does not function properly - any downloads requested immediately fail and send me back tot he main iPad screen.  Any suggestions on to hoe to fix this?  The software has been updated to iOS 5.1.1, and no furthe updates are available.

    This is my boilerplate response when app downloads are stalled or in the "waiting" mode. There are a bunch of things here to try.
    Tap on the "installing" icon and see if you can pause the install, then tap on it again in order to resume the install.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.
    Make sure that you do not have a stalled download in iTunes - a song or podcast .... if you have a download in there that did not finish, complete that one first. Only one thing can download and install at a time on the iPad so that could be what is causing the problem.
    If that doesn't work - sign out of your account, restart the iPad and then sign in again.
    Settings>iTunes & App Store>Apple ID. Tap your ID and sign out. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    Go back to Settings>iTunes & App Store>Sign in and see if the install resumes.
    If all else fails, download the updates or the apps in iTunes on your computer and then sync the content to your iPad.

  • After the 10.9.3 update my Adobe Premiere does not export properly.

    After the 10.9.3 update my Adobe Premiere does not export properly. Someone HELP!
    Can anyone help?
    Thanks!
    <Edited by Host>

    Having the same problem yesterday I spent 2 hours
    Contacting tech support Apple and Adobe.
    Apple says clearly that it is Adobe responsibility
    and Adobe tells to contact Apple...
    And none of the companies are telling when and if there will be a fix.
    I'm ready to go back to PC where hardware companies
    are not trying to boycot software companies. That's my opinion.
    I already lost one job because of this.

  • TS3595 I updated my itunes and restored my 2nd gen itouch, now my itouch does not work properly (keeps freezing). how do i fix this?

    I updated my itunes (latest verion out as of nov/20/2012) and restored my 2nd gen itouch, now my itouch does not work properly (keeps freezing). how do i fix this?

    If you restored to factory settings/new iPod and still have the problem that indicates a hardware problem.
    Make an appointment at the Genius Bar of an Apple store..
    Apple Retail Store - Genius Bar

  • App Store update counter on dock icon does not reset properly

    There's definitely a bug in the App Store for Mac. The update counter does not reset properly. I have purchased only one app so far, and this morning the dock icon indicated a (1) meaning an update was available. I downloaded the update and the ( 1 ) disappeared. When I quit the App Store, the (1) reappeared on the icon in the dock. Now whenever the App Store launches the (1) disappears and whenever the App Store quits it reappears so it always looks like an update is waiting.

    Hi Colin,
    Open a Finder window. Select your Home folder in the Sidebar on the left. Now open the Library folder then the Preferences folder.
    Move the com.apple.dock.plist file from the Preferences folder to the Trash.
    Restart your Mac.
    Carolyn

  • Music does not sync properly when updated to latest version.  Can see computer but can't play from ipod

    Music does not sync properly when updated to latest version.  Can see on computer but can't play from ipod.

    Hope this helps...
    I was having the same problem where only 1.7GB of 10GB of selected music would sync so I decided to start fresh.  The following steps worked for me:
    1.  Open itunes and connect iphone 5 if not already.  Uncheck all playlists, artists, etc. till nothing is checked to sync.  Then uncheck the sync music box so that all music will be removed from the phone.  Sync iphone
    2.  Eject device. Quit itunes (don't just close). unplug iphone.
    3.  Restart imac, macbook, or PC.
    4.  Restart iphone.
    5.  Now after power up, restart itunes then plug in iphone, check sync music and select music to sync.  Sync iphone
    6.  It worked for me!!!  Good luck.

  • Lync for Mac 2011 does not update Presence properly.

    Hello all,
    I work in a Enterprise environment, we run Active Directory and bind our Macs to the domain. We use Lync for Mac, and I've noticed that on the Mac clients, the user status does not update accordingly. When my users are in a conference call, it shows
    available, etc. It works fine on a Windows machine with that same user.
    If the event is on the Outlook calendar, sometimes it will show them as away during that time period, but it does not seem to update when on the phone/in a meeting, etc.
    Any advice would be appreciated, my user is on Mac OSX 10.9.3 and Lync 14.0.8.
    Thank you,
    Michael

    We are seeing the exact same thing at our company.   A hundred or more Macs all with broken presence.
    Its issues like this that have us looking at Jabber now - Cisco doesn't seem to have buggy OS X software like Microsoft.    That will be 40,000+ seats lost due to this and other issues.    Maybe if enough hit MS in their pocketbook
    they will start paying more attention to Macs.. or at least test them before rolling out software.
    Note a few things regarding our setup:
    1. Our Lync is on-prem 2010 and 2013 mix
    2. Our email is in 365
    3. We are using ADFS and FIM for SSO, Dirsync. 
    4. We do not domain join our Macs.  (back when Lion wrecked all our domain joined accounts we stopped with that foolish practice)
    It worked with previous versions of Lync 2011. 
    It works for zero Lync 2011 users.   Lync 2013 on-prem domain joined machines work.   We see the same thing where a Mac users also logged into 2013 on a Windows machine will help update the Lync 2011 client... but its not an acceptable work-around.
      I suspect its having difficulties with the external cert.

  • Subvi does not work properly when called inside a vi

    Hello Every body
    thanks for your help. i am using a sub vi for sine signal generation. as a vi it works fine. but when i called this subvi inside another VI it gives some problems. for example timer indicator works properly.it reinitializes as well in the sub vi, but in the main VI it does not work properly. means does not count the time.in the sub vi on the fly i can change the values of frequency and amplitude in real time, but when i use as sub vi, it does not reponse as i change the values in the control arrays.similarly pause and continue works properly in the sub vi, but once again in the main VI, it does not work properly.graph indicator also work properly in the sub vi. but here once again it does not work properly in the main VI.the pause resume indicator also does not blink, when it is continue. in the subvi it blinks very well.generally why the sub vi does not work properly inside the VI?i am sending my VI and sub vis.
    any tips would be highly appreciated.
    thanks
    Regards
    Attachments:
    vi.zip ‏87 KB

    I just want to add some more details to Dan's answer. The subVI is acting exactly like you've coded it. The mistake is in understanding how subVIs work. When you call a subVI (or a function in any other language), you pass some parameters to it, the subVI does it's thing and returns values. the subVI does not accept new parameters from the calling VI until it returns to the caller and the caller runs the subVI again. In your case, you have a subVI with a while loop. You have some front panel control wired to the subVI's stop terminal. When first called, the value is false. So the subVI will keep running until the subVI's stop button becomes true but you cannot change it from main until the subVI finishes and returns so the subVI will never stop. As Dan says, the solution is pass references of front panel controls to the subVI and have the subVI monitor those references for changes and to update references to indicators on Main. You subVI does not need any front panel controls or indicators of it's own.

  • SSRS report does not rendering properly in sharePoint 2013

    Hi everyone,
    I'm a newbie with the MSBI development tool, I've tried to create a testing SSRS reports and its layout showed correct when preview them in Visual Studio (2010 and 2012). Then I migrated the report in SharePoint 2013, but the layout do not rendering as I
    expected, some data mix-up on the matrix table
    The Ident on detail data (drill down) does not render properly compare the layout in when preview in Chrome or Visual Studio (SSRS)
    The summation on second matrix table went wide on both browsers compare when preview thereport in Visual Studio
    The export PDF (using the "action" button on the report in the browsers) showed the second matrix table is overlaps the first matrix table.
    This report has 3 main queries (2 for the matrix tables and 1 for the chart) on a Dev environment:
    Window server 2008 R2 with service pack 2
    SQL server 2012 enteprise with service pack 2
    SharePoint 2013 (no service pack) with integrated mode on the report service 
    Visual Studio 2010 development tools
    I'm very appreciate for anyone can provide any solution to solve this issue.
    Thank you so much,
    Dac.
    P.S.: I attached the preview of the report in both browsers (IE & Chrome) and its preview in Visual Studio.
    An update: ... due to the setting space on"snap to grid" default to 20 and I've made the 2nd matrix table overlaps the 1st one, therefore the it showed overlaps when export to PDF file ... it's solved.
    But the Indent on IE and summation still persist in both browsers.

    Hi everyone,
    The PDF's export has been solved due to the 2nd matrix table overlaps on the 1st table. 
    Also, I don't know why the summation (aka Row Total) went wide when data represented on the 2nd matrix table (see previous post on the row named as "Premium over 5000$" on both browser. So I've redesigned the 2nd table as normal table instead of
    matrix table ... and the summation showed correct (it's so weird)
    For the "Indent" issue showed in IE on both drill down of the 1st table and 2nd table which cannot be fixed, and the end user used only IE.
    Could someone can enlighten me please?
    Many thanks.

  • Book editing - change a photo, book does not update

    We are having a small problem. When editing our book, we double on some photos to edit them. Crop, color adjust, etc. Then we click done, and get sent back to our Book page.
    Now about half the time the book preview does not update the image that we just changed. It seems to update the larger full page images more often than it updates the smaller images in the book layout. If I double click the photo again, I can see the change I previously made are still there, but they are not being reflected in the book preview.
    So 2 questions, how do I force the book to update its photo preview? And if I print this will it use the edited photo, and not the version its showing me in the preview?
    Assume this is just a screen display issue, and that the generated print will use the right assets, right?
    This is in iLife '08 on Leopard on an intel Macbook.

    Squeegy:
    Welcome to the Apple Discussions. Try changing the layout, i.e. from frames with or without text to the other and then back. That may jump start the picture to display properly. It works for me when I do some cropping, like from landscape to portrait and the frame doesn't reset itself.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Bug:  Histogram Does Not Update when Using Painting Tools

    I was investigating something else, and I saw something not working...  I'm under the distinct impression that the Histogram panel should automatically update after every operation.  Having the Histogram panel displayed full-time on the screen, it should always be up to date.
    However, when I Dodge or Burn or even paint color on an image, the Histogram is not updating. 
    If I select one of the History states I've just created, it updates.
    Consider this simple sequence of operations:
    I'm able to reproduce this failure in Photoshop CS5 as well, BUT NOT IN CS4 (it updates in Photoshop CS4 after every painting operation), so clearly it's not a new bug, though somehow I've managed not to notice it in my years of using Photoshop CS5.
    Is it broken like this for everyone in Photoshop CS5 and 6?
    Could this be some twisted attempt to try to optimize painting performance?  If so, why isn't there an option to allow a user to request it to update on every operation on a fast computer with cores out the wazoo?
    -Noel

    More info:
    Just poking around in Photoshop CS6 to see what, if anything would make the Histogram display update...
    Even though the Refresh icon is disabled (and the "Uncached Refresh" entry in the fly-out menu is grayed-out), double-clicking in the topmost histogram display will force it to update (as described above by Conroy in post #1 above).
    If I change the selection Channel field in the Histogram panel, mostly it does not update, but when I change between some of the settings - for example between RGB and Luminosity - the graphs update.  Amazingly they revert back to the un-updated state if I switch the channel BACK to what it was!
    Making a selection DOES cause it to update.  
    Choosing Select - Color Range (just starting the function) DOES cause it to update.
    Hitting the quick mask mode button DOES cause it to update. Notably Edit in Quick Mask Mode is in the Select menu.  Could an association with Select be a clue?
    This bug is easy to reproduce, is shown to be a problem across multiple versions and multiple OSs, and in at least one case (Photoshop CS4 x64 on Windows 7 x64 here) it can be shown to work properly, so the code is probably not far off being right.  Seems to me this should be the kind of thing a junior engineer could find and fix so someone, say,  at Chris Cox's level could have it done before 5 today... 
    -Noel

Maybe you are looking for