Are sequence structures the right approach here?

Hi everyone,
The attached VI shows the endmembers in case structure form of a relatively simple task I need to perform.  It takes a bank of 6 digital outputs and toggles between true and false logic.  Between the endmembers, I need to change the logic on some ports sequentially and after time delays.  For instance, changing the case from true false, I need to change line 2 from false to true 2 seconds before I change lines 4 and 5 to true.  I want the user to see only one button to toggle between states, and I want the states to be discrete and not continuously changing.
Are sequence structures the best way to do this?  If I put those into the case structure, won't it re-iterate the sequence over and over?  Or do I need a case structure initialized with shift registers so that it stops after one interation until the next time the user toggles the control?
Thanks for any help on this,
Brad
Attachments:
ValveBankEndMembers.vi ‏56 KB

I have a couple suggestions.  Most important, have two cases in your case structure.  One for the toggle, one for the quit.  Otherwise you will have to wait for a toggle in order to process the quit.  I also lumped the controls into a cluster.  You are converting from array to cluster anyway, this saves you the unbundle.  Finally, since you are toggling each boolean, you can just apply a NOT to the entire array and use a shift register to pass the array from one loop iteration to the other.  This last will save a lot of debugging headaches if you ever need to add/remove bolleans.
Message Edited by jasonhill on 06-14-2006 09:05 AM
Attachments:
Toggle Trap 2.PNG ‏14 KB
ValveBankEndMembersEvent2.vi ‏16 KB

Similar Messages

  • The right approach to get pins/cells in deep hierarchy design.

    I always have hard time to get a pin or a cell in deep hierarchy. E.g. I have module "A", I instatiaed it as "a_inst", inside it has a submodule B, inside B I has a submodule C, I also instantiated them as "b_inst", "c_inst". Then I try to get a pin from C for my constrain like "get_pins a_inst/b_inst/c_inst/D". But in some cases, I can't get it.
    This problem is especially worse when I try to get pins from a Xilinx IP. Somethimes, I try to follow the hierarchy path but Vivado always report there is no that pin or cell. 
    I just wonder what is the right approach to get pins/cells in deep hierarchy module? Is there any standard approach that will work for all (at least most) cases?
    Thanks very much.

    The "best" way is to do what you described, but do it right... If the hierarchy isn't flattened, then the full hierarchical path to a pin is consistently named as a_inst/b_inst/c_inst/D.
    In Vivado, it is important to note, though, that the pin's name is not a_inst/b_inst/c_inst/D. Vivado is aware of the hierarchy, and the hierarchy is real. The pin name is actually "c_inst/D", inside the hierarchical object b_inst, which is inside the hierarchical object a_inst (assuming hierarchy hasn't been flattened). So the / means two separate things; the final / is a character - part of the name c_inst/D. The other / are hierarchy separations, which are not characters.
    This is important to understand for wildcarding... This pin will NOT be captured by [get_pins *c_inst/d], since the slashes before c_inst are not characters. It would be matched by [get_pins */*/c_inst/d], since that is saying "look for c_inst/d two levels of hierarchy down".  However, since the last / is a character [get_cells a_inst/b_inst/c_in*d] would match it.
    You could also use [get_pins -hier c_inst/d]; this means look for a net named c_inst/d anwhere in the hierarchy. But this is sloppy, since there may be other things named c_inst/d somewhere else in the hierarchy. You cannot, however, mix the -hier option with a partial hierarchical path; for example [get_nets -hier b_inst/c_inst/d] will not work.
    It is important to note that this is very different from how UCF worked. In UCF, the hierachy separator was just a character, and you could use PIN *c_inst/D to match the pin anywhere in the hierarchy, since the * would match "a_inst/b_inst/". You can (but should try to avoid) mimic this behaviour by using the -filter option 
    [get_pins -filter {NAME =~ *c_inst/D}]
    will match your pin in a UCF like style - but, this should be avoided.
    Note: If hierarchy is flattened, the rules change. If hierarchy is rebuilt, then this should work, but I don't trust it (which is why I always use flatten_hierarchy set to none).
    As for IP, you shouldn't reach down into Xilinx IP. From version to version of the core, the structure can change - so the hierarchical path could change. I am not sure why you would need to do this; you should restrict yourself to using the pins of the IP (and use things like all_fanin and all_fanout if you need to get to the startpoint/endpoint of static timing paths that start/end in the IP).
    Avrum

  • Which one is the Right Approach - Re Using Page Layouts or adding Web parts directly to pages instead of page layouts in SP 2013 online site ?

    Hi Team,
    I am SharePoint 2013 developer. Before asking question I would like to explain the requirement in clarity.
    We are developing one O365 SharePoint online site which is having 10 different page layouts with different and some common webparts and we are reusing these page layouts by deploying a sandboxed solution which is having page layouts. These page layouts contain
    filter and query to display data using some condition and predefined values. By using these layouts we have to create 100+ pages. All pages will show data according to that page name and category (if it belongs any). We have not written any code to develop
    the site, everything is OOB feature.
    We have used below feature/list/lib of SP Online 2013:
    - Document Library
    - Survey
    - Calendar
    - Lists
    - Discussion forum library
    - OOB Search feature
    Now, I would like to know whether this is the right approach to reuse the page layouts. Or can we add webparts directly where the logic resides in the webparts and add them to the pages instead of page layouts?
    Also how to deploy page layouts/pages from one server to another? Currently we are deploying everything as a feature using sandbox solution. 
    Could you please let me know the right approach to follow. I am asking this question because we are facing below issues:
    - Sometime page layouts gets corrupted, showing nothing.
    - All written filters/logic disappear when we open layouts in Designer
    - Deployment is pain using Sandbox solution
    Waiting for your reply.
    Thanks in Advance,
    Shifa Mittal

    Interesting question, to which i do not know a definitive answer.
    Output Caching is used to increase performance and to reduce load on the box. However since you're in the MS Cloud you don't need to worry about the latter and MS do the worrying about the former. I wouldn't be surprised if MS have updated the behaviour
    for O365 and not updated the documentation. That first office.com article is using 2010 screenshots which doesn't fill me with confidence about it's continuing relevance. Don't forget that SharePoint 2013 and O365 are technically different versions and have
    very different behaviour in places.
    Generally i'd say not to worry, but in this case if you do find any more information i'd love to see it.

  • I try to insert some images on a website but the images are not in the right color mode. I do not know what to do? and also I have 1200 images to insert so I can not change one after one. So I need to set up an action, but I donot know how to do it... Tha

    I try to insert some images on a website but the images are not in the right color mode. I do not know what to do? and also I have 1200 images to insert so I can not change one after one. So I need to set up an action, but I donot know how to do it... Thanks

    What is the problem specifiaclly?
    If the images are intended for web use I would recommend converting them to sRGB which could be done with Edit > Convert to Profile or with File > Save for Web, but as including a Save step in Actions and applying them as Batch can sometimes cause problems I would go with regular converting.
    You could also try Image Processor Pro.
    Scripts Page

  • I had to change my Hard Drive, now I want to work on files in iWeb, but can't access Time Machine before yesterday. The dates are there on the right hand side but are greyed out before yesterday when I changed my HD. How do I access anything from before.

    I had to change my Hard Drive, now I want to work on files in iWeb, but can't access Time Machine before yesterday. The dates are there on the right hand side but are greyed out before yesterday when I changed my HD. How do I access anything from before?

    Start with B5/6 in the 1st linked article.
    Time Machine Troubleshooting
    Time Machine Troubleshooting Problems

  • Printout are printed to the right side of the paper

    Printout are printed to the right side of the paper
    all other settings are ok but the text is printed too much to the right side

    hi there,
    could you provide the community with a little more information to help narrow troubleshooting? Things like your printer model and your operating system help out a lot.
    You can say thanks by clicking the Kudos Star in my post. If my post resolves your problem, please mark it as Accepted Solution so others can benefit too.

  • I need to know how to "compress" the Folder Tree.  The File folders are moving to the right and out of sight in Lightroom 5.

    I need to know how to "compress" the Folder Tree.  The File folders are moving to the right and out of sight in Lightroom 5.

    A couple of suggestions that may help:
    - Make sure you've made the left-hand column as wide as possible by grabbing the divider between the column and the Library grid view.
    - You can hide a parent folder from the display by right-clicking it and selecting Hide This Parent. This will shift all the child folders to the left.

  • Facebook columns are shifted to the right

    This happens only on facebook, all the columns are shifted to the right side of the page. I've check FB's web site for help but its hard to find any answers. Im using most updated XP Home, and running FF 6.0.1. This does not happen when I use I.E. however.
    I listed my profile address but not sure you can view it.

    Hi I started this particular conversation and I just fixed FB format. I changed the font on Western to 14 and the default to 18. FB went back to normal!

  • HDD Error -36 question: Am I on the right track here?

    Hey folks,
    HDD question here.
    I have a 13” early ’11 MBP, 320 GB HDD, came with Lion, now running ML, anticipating a soon upgrade to Mavs. 16 GB of RAM. All updates current.
    Started running out of HDD space with all my photo and video work and about a year and a half ago I bought a 1 TB WD portable, used it lots, no problems.
    Last night, I bought a 2 TB WD portable. Started copying my Photo folder over, and I got lots of the dreaded Error 36, “The Finder can’t complete the operation because some data in “IMG_0596.CR2” can’t be read or written. (Error code -36)”
    This is the first time I have seen this error with either/any drive.
    So I have these two external WD drives with two cables, so I tried copying one of the offending folders to both drives
    (both the 1 TB and the 2 TB, one at a time) using both/either cables. Both drives and cables give me the same error.
    In short, either drive, in either USB slot, with either cable gets the same error.
    In shorter, I think I have eliminated the external drives as the source of the problem.
    Thoughts?
    FYI, the 1 TB is Mac OS Extended (Journaled)
    The 2 TB is MS-DOS (FAT32), though I am 99% sure I will be converting it to Extended/Journaled ASAP. (thoughts?)
    In the last 6 months I’ve noticed things running slower…a LOT slower, at least it seems like.
    Granted, my HDD has been a bit packed, but I’ve offloaded a lot too.
    More beach ball action than seems to be normal, etc etc, even with all this RAM.
    My total boot time (cold) is:
    1:30 to login screen
    1:57 to loaded desktop.
    By way of comparison, this same MBP will boot to Snow Leopard off an external drive in 1:13 to a loaded desktop.
    My question:
    I’ve HEARD that the Error -36 can be a likely precursor to drive failure.
    [U]Given what I’ve mentioned here, is the most likely candidate for a failed drive my main HDD?
    Are there other things I should check first?[/U]
    I have a chance to buy a Seagate Momentus XT 750 GB hybrid SSD drive out of a Mac, and it has very little use on it.
    (I'd be buying from a family member I trust).
    Thoughts on that?

    I might not explain my question well in my previous post -- there is no business logic involved in what I am doing to go from the first entity bean to the second entity bean and to go from the second entity bean to the third entity bean.
    Based on the login information, I have to go through those entity beans to find the very specific row in the third table in order to get the data field I need. That is to say, only thing involved is searching for rows.
    In my view, session bean -- > 1st entity bean -- > 2nd entity bean -- > 3rd entity bean
    1. session bean -- > 1st entity bean: remote call and returns the key to the 1st entity bean for locating the 2nd entity bean
    2. 1st entity bean -- > 2nd entity bean: local call and returns the key to the 2nd entity bean for locating the 3rd entity bean
    3. 2nd entity bean -- > 3rd entity bean: local call and then returns the value of the specific field to the session bean
    The alternative approach is:
    session bean
    |
    + + +
    1st entity bean 2nd entity bean 3rd entity bean
    1. session bean -- > 1st entity bean: remote call and returns the key to the session bean for locating the 2nd entity bean
    2. session bean -- > 2nd entity bean: remote call
    and returns the key to the session bean for locating the 3rd entity bean
    3. session bean -- > 3rd entity bean: remote call and the session bean can get the value of the specific field from the 3rd entity bean
    I do not know which approach to go for. Please provide guidance. Thanks.

  • How to I make pop up windows go back to the left side of the screen when they are moving to the right?

    Whenever I click on a link, a new window pops up. That's good, that's what I wanted. They've always opened on the left side of the screen. However, they are now opening in the middle of the screen. This has happened before and the screen eventually opened completely on the right. Last time this happened, I ended up having to delete something. I don't remember what, but it solved the issue. Please help!

    You can check for problems caused by a corrupted localstore.rdf file.
    *http://kb.mozillazine.org/Corrupt_localstore.rdf
    You can also try to emove the Firefox plist file (org.mozilla.firefox.plist).
    *http://www.macfixit.com/article.php?story=20060606082246983 How .plist files become corrupt and troubleshooting the results
    Go to "~/Library/Preferences" and remove the plist file for Firefox (org.mozilla.firefox.plist)

  • I have 9 tabs, but when I try to make a tab group, only the current page shows up as a thumbnail, not all the tabs. I can't get them to work for me. All the tabs are listed on the right side of the tab groups box. What am I doing wrong?

    There's no thumbnails to drag around except one on the left side of the page (the one that's open). The right side of the page lists every tab I have created.

    Perhaps your problem is that '''you must save your browsing history''' in order to use app-tabs that would apply to groups as well but I did not test.
    * http://img232.imageshack.us/img232/4928/clearcachew.png
    I would suggest that if you do not save that stuff in bookmarks, that you will probably have a serious problem soon and lose your tabs, so if you count on them you could lose them. They should stand up to repeated restarts but I would not count of them as app-tabs myself, for one thing it is new, the other is I have to frequently wipe them out and restart, because I actively open new content into them and go back to the beginning of the tab history, and sometimes I can't, and sometimes I lose them by accidentally closing them -- and I must be able to close them in all manners that I close other tabs or I wouldn't be using them.
    There are people who keep 200 tabs open through restarting, that is not for me, I try to clear out the tabs frequently.
    That is what app-tabs are for as opposed to home pages, but I did have a problem when I tested with 120 since as app-tabs only about 65 can be seen at once even though I did reduce the width of app-tabs to about 2/3 the size that they were.. Problem I had when I restarted was that the window enlarged a bit beyond the screen, and my tab counter disappeared until I reduced the count to about 65. I do not allow tabs to scroll so you probably wouldn't have that problem.
    I forgot to test home page with 60 tabs. I do have something set to 75 though have to check that. I tested with 60 pages as home page. Brought firefox down and backup with the 1 app-tab and 60 home pages the app-tab is the same size as the 60 normal tabs from home page.
    Never used group-tabs by choice, since they messed me up I stay clear of them, I don't like them or anything large panoramic type of large thumbnails.

  • Reader 9 - "Print" and "Open with Adobe Reader..." options are missing from the right-click menus.

    Since upgrading from Reader 8 to Reader 9, Windows XP users are no longer able to right-click 1 or more PDF files from Windows Explorer and choose either "Print" or "Open with Adobe Reader...". Those options are no longer listed in the right-click menu. We have experienced this on several computers.  I downgraded a PC to Reader 8, and these options re-appeared, then disappeared again when I upgraded back to Reader 9.

    Could you tell me which version of Reader 9 you are installing?
    Please give the exact version it is showing you from Help | About Adobe Reader.

  • DVD colors are shifted to the right.

    My computer is a : COMPAQ 100B (XZ846UT#ABA) Desktop PC AMD Dual-Core Processor E-350(1.6GHz) 2GB DDR3 500GB HDD Capacity AMD Radeon HD 6310 Windows 7 Professional 64-bit with a HP vs17e monitor. The DVD drive is listed as a 
    Optical Drive Type: DVD Super Multi Optical Drive Spec: SATA SuperMulti DVD writer. Lightscribe. The computer plays YT videos fine and graphics are great but, when I play a DVD the colors are all shifted about an inch to the right, especially reds. I'm wondering if the drive was damaged in transit. Thanks, mikepellerin

    Hi I started this particular conversation and I just fixed FB format. I changed the font on Western to 14 and the default to 18. FB went back to normal!

  • IMAQ Quantify rseults with use of image mask are not of the right regeons

    I'm using the IMAQ quantify VI from labview to analize a binairy image. This binairy image is an 8bit image that consists only of pixels with the value 0 or 1. The places of the binairy  image where the pixels have the value 0, mean that a corresponding image has not data in that place. A pixel value of 1 means that there is data that should be processed later in the program in the corresponding image.
    The quantify function is also used to devide the image in 666 regeons with the use of the image mask input. These regeons are squares of 22x22 pixels. The image mask consists of 666 regeons (horizontally 74 sqaures, vertically 9 sqaures) and each of the regeons has his own regeonal number. The resulting regeonal report is used to decide whether each regeon has data in it or not, with the use of the mean value in the report. When the mean value is equal to 0 than it is sure that there is no data in that regeon since all the pixels in the regeon have to have the value of 0. If the mean is not 0 at least one of the pixels in that regeon has the value of 1, wich means that there is data in the regeon. The image mask is created from an 2D array wich is converted to an 16 bit image with the use of IMAQ ArrayToImage.
    I've checked that the input data is correct: the binairy image consist of only 1 and 0 values, the image mask is consist of 666 sqaures of 22x22 pixels and each sqaure has pixels in it with the value corresponding to the regeonal number of the sqaure, the binairy image and the image mask have the same size, the image mask is an 16 bit image and both images have the same border size (3).
    Two problems occur:
    1) The regeonal report doesn't consist of 666 elements, but of 665 elements (element 0 to 664)
    2) The data in the regeonal report is not of the right area's. It looks like the data is shifted one to the right in the regeonal report array, the data in element 0 isn't from regeon 0 but from regeon 1, element 1 corresponds to regeon 2, and so on. I'm haven't checked if the data is exactly of the next regeon, but I suspect it because of the regeonal report array being one short. But it is also possible that the regeons aren't placed on the right place in the binary image.
    If someone else occured this problem with the IMAQ Quantify function or has a solution to it, I would really apreaciate a reply.

    Isn't there anybody who encountered the same problem or with an solution?

  • Tracks are panning to the right alone when I click the virtual keyboard

    Hello,
    This is a very weird problem I think. It started happening sometime ago and I really have no idea how to fix it: When I click the virtual midi keyboard multiple times, the track start panning to the right alone. Does anyone have an idea how to fix this?
    Thank you a lot

    Hi
    You should find these in the User Home folder library (which is hidden by default in Lion):
    1) In the Finder, use the Go menu whilst holding down the Option (Alt) key... the Library will appear in the 'Go' menu.
    2) Navigate to (<user>):Library:Application Support:Logic:Project Templates
    You should find the ones you are looking for in there
    HTH
    CCT

Maybe you are looking for

  • How do I stop pop up connect to server

    Using a Macbook Pro Retina with the latest OS, 13inch 2.4 GHz running 10.10.3. Everytime I try to open a folder or the hard disk, I get a pop up asking me to connect to my network server, when I click cancel I get the spinning Beach Ball if away from

  • Recommendations for a new monitor?

    Greetings, I'm looking for a new monitor for my Powermac G4 450 MHz AGP (sawtooth). I'm currently using a Formac Gallery 1740 after 6 years it's starting to faded out on me. I'd really appreciate any suggestion or Recommendations for a new one. Aisha

  • License Deactivating

    Hello I had (quite some time back) purchased perpetual license for LightRoom 5 online through Adobe website, downloaded the software through the download link given to me and have installed it. Also ran the update 5.7 yesterday. Absolutely no problem

  • Lab-Farben bei Photo Shop Elements 4.0

    Hallo, ich arbeite mit Adobe Photoshop Elements 4.0. Jetzt hörte ich von einem Trick, wie man in Photoshop mit Hilfe der Funktion Lab-Farben kräftige Farben erzielen kann. Die Funktion Lab-Farben kann ich in meinem o.g. Bildbearbeitungsprogramm aller

  • QuickTime 7.1.5 installer won't run

    The QuickTime 7.1.5 installer won't run. Installer says "QuickTime 7 cannot be installed on this computer." "This update requires less than MacOS X 10.4."