Data between states of the states machine

So I have two tables that I generate in one state of the state machine.  My question is what is a proper, aesthetic way to propogate these two tables into one another state of the state machine. Please see the attached  code.  State machines rock!
Attachments:
flag.jpg ‏166 KB

The shift register is the right tool for this job.  It follows the left to right data flow paradigm, unlike other solutions (such as using a local variable).  I am sure you will get a few other opinions but I think that the shift register is the way to go.
CLA, CLED, CTD,CPI, LabVIEW Champion
Platinum Alliance Partner
Senior Engineer
Using LV 2013, 2012
Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.

Similar Messages

  • Just bought a used MacBook pro after my previous died. I want to migrate my applications, data, etc from a time machine backup of the old computer to the new. Will this affect, or overwrite the Apps., data, etc existing on the new machine?

    Just bought a used MacBook pro after my previous died. I want to migrate my applications, data, etc from a time machine backup of the old computer to the new. Will this affect, or overwrite the Apps., data, etc existing on the new machine?

    No. Only those Apps that are not installed on the new will migrate over.

  • How do I share files between users on the same machine?

    I tried using /Users/shared to share files between myself (Admin user) and another user on the machine (Standard user). Whenever I put a file or a folder into said directory permissions are 755 for directories and 644 for files, my umask is 0022. The files and directories belong to my user and the group staff. This means I can read and write and others can read. If I do the same using the other users account. Permissions are 700 and 600 respectively. (Owner is the other user and group is staff.) Strangely the other users umask is 0022, too.
    The result is, that all directories and files I create with my account (Admin user) are readable to every other user on the machine, whereas all directories and files the other user (Standard user) creates are not readable for anyone else. I can easily rectify this using the Terminal and chmod and/or chown, but it is a pain having to do this, since I also need to forcefully restart the Finder App for it to notice the changed permissions.
    Ideally I'd like all directories in /Users/Shared to have permissions 777 and all files 666 no matter which user created, copied or moved them to said location. I think this could possibly be done using applescript and shellscripting and the folder action hook. So far my attempts to find such a script on the net or/and write it myself have failed. I'd be grateful for any hints how I:
    a) write and setup such a script
    b) accomplish what I try to do (share files and folders on the same machine) in another possibly more Mac way
    Kind regards
    David

    The following AppleScript will recursively descend the directory tree and change the items to your modes:
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px; height: 340px;
    color: #000000;
    background-color: #FFDDFF;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    on adding folder items to this_folder after receiving these_items
    repeat with some_item in these_items
    ProcessStuff from some_item
    end repeat
    end adding folder items to
    to ProcessStuff from SomeItem
    processes items contained in SomeItem, recursively descending the directory tree
    parameters - SomeItem [mixed]: an item containing the items to process
    returns nothing
    set SomeItem to SomeItem as text
    set FileInfo to (info for SomeItem as alias)
    if (folder of FileInfo) and not (package folder of FileInfo) then -- a folder (not a package)
    do shell script "chmod 666 " & quoted form of POSIX path of SomeItem
    -- do shell script "chown root:staff " & quoted form of POSIX path of SomeItem user name "me" password "mypassword" with administrator privileges
    try -- to get items in the folder
    tell application "Finder" to set SubFolder to (items of folder SomeItem)
    on error
    return {}
    end try
    repeat with SubItem in SubFolder -- process the sub items
    ProcessStuff from SubItem
    end repeat
    else -- a file
    do shell script "chmod 777 " & quoted form of POSIX path of SomeItem
    -- do shell script "chown root:staff " & quoted form of POSIX path of SomeItem user name "me" password "mypassword" with administrator privileges
    end if
    return
    end ProcessStuff
    </pre>
    You shouldn't need to change the ownership, so I commented out the chown shell script since this would need to be run as a super user. You can run a shell script with administrator privileges, but in order to be used by a standard user you will need to provide the appropriate user name and password in the script, which might not be a good idea - note that the folder action script will need to be attached in all accounts that you want to change the permissions, which means that it would need to be accessible to those accounts.

  • Sharing applications between users on the same machine

    I am new to the world of MAc OSX, I bought my mac to run a specific application, No problem there, However that application needs to be accessed via multiple users on the same machine. So far I have created the user logons, But each user gets a new iteration of the same application. How can I make one copy of the application together with all its data base files accesible my other users, Also when the user that owns the application logs off...the application is terminated... I have set up fast switching...as a work around so the application will stay up, but Other users cant see it...Help please
    mini mac   Mac OS X (10.4.8)  
    mini mac   Mac OS X (10.4.8)  

    tonyeesi
    Welcome to the Apple Discussions.
    However that application needs to be accessed via multiple users on the same machine.
    If the app is in the HD/Applications folder, all users can access it and use it. Then it doesn't matter of the other users are logged on or off. It's not a different iteration, there is no duplication.
    To share the data: as Kappy says, put it in the Users/Shared folder. Each user can see into another user's Shared Folder.
    Here's a question: if each user has to use the same app plus the same data, why have different accounts? The whole point of different accounts is to keep data separate?
    Regards
    TD

  • Switching USB Scanner Between Users on the Same Machine - Mavericks 10.9.3

    I have a neat scanner connected to my mac via USB.  My wife and I both use the scanner and have separate accounts on the same machine.
    The issue is that the scanner gets "connected" to either one user or the other.  Let's say the scanner is working fine for user A.  User B can't
    use the scanner properly.  It seems like first come first serve.  When user B pushes the scan button on the device and user B is the active account
    on OSX.  User A's account still gets the popup window responding to the scan request.
    I guess I am looking for a terminal command, or some procedure, so that user B can come in and gain access to the scanner without logging out user A.
    Ideally some kind of USB release / reset command etc. etc.

    For posterity, here is one solution to the problem I discovered:  cycle power on the scanner.
    Cycling power seems to release ownership.  Whichever user then uses the scanner next will then latch ownership.  To break ownership another power cycle is required.  Easy enough I guess since the scanner is connected by USB (and therefore close to the computer).  A little surprised that the OS does not manage this automatically.

  • High CPU when tranferring data between VLANs on the same subinterface

    Hi 
    i have Cisco 2821 with 2 subinterfaces on the G0/0, with 2 different VLANs on them.
    When i copy about 60 Mb/s between them, the CPU usage increase to 80-90 %, and start to drop the packets.
    The CEF is on on all those subinterfaces.
    Any recommendations ? 
    many thanks
    Here is the info about those subinterfaces:
    #sh cef interface g0/0.10
    GigabitEthernet0/0.10 is up (if_number 5)
      Corresponding hwidb fast_if_number 21
      Corresponding hwidb firstsw->if_number 2
      ICMP redirects are always sent
      Per packet load-sharing is disabled
      IP unicast RPF check is disabled
      Input features: Stateful Inspection, Virtual Fragment Reassembly, Virtual Fragment Reassembly After
      Output features: Stateful Inspection, TCP Adjust MSS
      IP policy routing is disabled
      BGP based policy accounting on input is disabled
      BGP based policy accounting on output is disabled
      Hardware idb is GigabitEthernet0/0
      Fast switching type 1, interface type 27
      IP CEF switching enabled
      IP CEF switching turbo vector
      IP prefix lookup IPv4 mtrie 8-8-8-8 optimized
      Input fast flags 0x400061, Output fast flags 0x10181
      ifindex 2(2)
      Slot  Slot unit 0 VC -1
      IP MTU 1500
    #sh cef interface g0/0.117
    GigabitEthernet0/0.117 is up (if_number 21)
      Corresponding hwidb fast_if_number 5
      Corresponding hwidb firstsw->if_number 2
      ICMP redirects are always sent
      Per packet load-sharing is disabled
      IP unicast RPF check is disabled
      Input features: Stateful Inspection, Virtual Fragment Reassembly, Virtual Fragment Reassembly After
      Output features: Stateful Inspection
      IP policy routing is disabled
      BGP based policy accounting on input is disabled
      BGP based policy accounting on output is disabled
      Hardware idb is GigabitEthernet0/0
      Fast switching type 1, interface type 27
      IP CEF switching enabled
      IP CEF switching turbo vector
      IP prefix lookup IPv4 mtrie 8-8-8-8 optimized
      Input fast flags 0x400061, Output fast flags 0x10181
      ifindex 2(2)
      Slot  Slot unit 0 VC -1
      IP MTU 1500
    sh int g0/0 st
    GigabitEthernet0/0
              Switching path    Pkts In   Chars In   Pkts Out  Chars Out
                   Processor   13584490  436643191   27043759 2436202283
                 Route cache   70111252 1482061430   60433310  610254739
                       Total   83695742 1918704621   87477069 3046457022

    Disclaimer
    The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.
    Liability Disclaimer
    In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.
    Posting
    Recommendation?  Yes, you may need a faster router.  At 60 Mbps, you might be bumping into the capacity limitations of the 2821.

  • Folder permissions for sharing between users on the same machine

    Hello,
    I have several accounts on my MacBook and I want to keep some files private and some files shared with full permissions for everyone.
    OS X standard behavior for the default Users/Shared folder is that everyone has read/write access to the folder, but if you create a new file there, then only the creating user has write access to that file.
    I want to change that folder's behavior so that newly created files can be modified by everyone on default.
    How would I do that?
    Thanks.

    Thanks, your answer helped me a lot. I found an even simpler method which doesn't require any extra applications.
    Open console and navigate to the directory where your share directory is located, e.g. /Users/Share/
    create the desired folder:  mkdir public
    set acl permissions for each user with: chmod +a "username1 allow flag1,flag2, ....." public/
    check permissions with: ls -le
    Example:
    chmod +a "dev allow list, add_file, search, delete, add_subdirectory, delete_child, readattr, writeattr, readextattr, writeextattr, readsecurity, writesecurity, chown, file_inherit, directory_inherit" public/
    This will give the user dev full access to that folder. Any file or directory created inside that folder by the user dev will also inherit the permissions of that folder.
    Also, the advanced permissions override any other permissions. you can test that my making that folder inaccessible with chmod oga-rwx public/ and dev will still be able to access it because of the acl permissions.
    exactly how i wanted it.

  • Is there a difference between Statement Cache and the statement handle!

    Hello!
    The OCI statement cache is !session! wide. When I have a sql statement that was used before, I can use this feature.
    But what is the difference between this feature and my statement handle for a certain sql statement that I can store and reuse a second time?
    My stored statement handle is already prepared and the placeholders are bound. The second time I only have to copy new values in the memory positions and do an execute and that's all.
    Thank you in advance
    Wolfgang

    The underlying optimization is the same. When you re-execute a statement, you are reusing the metadata already available in the statement and the cursor already open on the server. If you know exactly the set of statements that you are going to execute repeatedly, you can maintain the cache on your own. (Yes, you save on doing the Bind/Define calls multiple times).
    OCI Statement cache makes it transparent and the application does not need to keep the references/indexes to the relevant statements. Also once a cache size is set, least recently used statements get out of the cache when the cache is full and needs to accommodate more.
    To optimize the bind/defines on the statements from the statement cache, you can use this feature:
    http://www.filibeto.org/sun/lib/nonsun/oracle/11.2.0.1.0/E11882_01/appdev.112/e10646/oci09adv.htm#sthref1358

  • Using States and the includeIn-property for UI-elements inside my mxml-composide-component

    Hi,
    unfortunatly I am looking for a way to use States in a mxml-component. I’m working with the flash builder 4.6 (means as3).
    Because this did not work when I did use the normal mxml tags for the states inside my VGroup-composite-component, I added a creationComplete-Handler in the Script part of my component in which I instanciated the states and the states-Array via as3. I copied
    this of an internet- article from 2006 that was already dealing with
    as3, but at that time the States were part of the mx-namespace. How ever when I wrote: newState1: State= new State(); my development environment did not know the class State. Did I forgot to import anything or to use a namespace in my Script block ? I imported the AS3 Finite State Machine from meekgeek.com.
    But these states have no name-property insted they got a key-property, but this did not work either though I imported correct and did use the correct namespace. I did not find any State-class-description at Adobe's doku either. All I’m trying to do is to use the standard State-includeIn-properties of UI-Components inside
    my mxml-composide-componend. I’d be much obliged if You may help me in this point.
    Best regards,
    Timan Bracht

    Thanks for the answers so far.
    I can show now the correct KmLimit on the field, thanks to a javabean method, so this problem is solved - even I don't know why on hell it does not show it automatically, since I did give to it literal/expression default value in the attribute properties of the transient field; but never mind.
    The current problem: we use a task flow, that shows an input form to enter new records. This form has a LOV, from where I get a value from, which will be then saved once the submit button has been pressed.
    So far, so good.
    I enter some values in the input fields. If now I save the record, it will be saved, and all the form fields reset to null. Perfect.
    But. If I don't press the save button, instead I pick another value from the LOV list, the values of the input fields does not reset to null, instead, they remain with the last entered value.
    It does not seem there's more to change in the task flow properties that would reset the fields automatically.
    So we're stuck with this issue, the fields remain filled, even if I do set it to null. The value is really null - I set it to null with fieldName.setValue(null) and show it in the console with fieldName.getValue() - but the form still shows the old value in the field.
    Any help is greatly appreciated,
    Sergio.

  • Copying data between Applications

    Hello all,
    Is there a recommended approach to copying data between applications within the same application set? I have a cube that's the mirror image of another cube, excluding the difference in dimension names. I want to pass data from one cube to another cube. I am hoping this is something that can be done through DM using one of the standard packages provided by SAP.
    Thanks,
    Rob

    Hi Rob,
    Apart from using Data Manager option to copy data between applications, please also explore "Destination_App" statement in your script logic as you mentioned both the applications are mirror images of each other. Please check for sap help or SP02 doc addendum for more insight into destination app logic. There is also BADI option to take aggregated data from one application to another. There is a how-to-guide available for this.
    Please check which one of these options suit better for your requirement.
    Cheers,
    Santosh

  • How to highlight State of Multi-State object?

    hi,
    I have created 3 states of object State1, State2, State 3. and want to highlight state in object state panel programmatically. can any one have idea abt it?

    @Priyanka – you did not mention a specific scripting language.
    In ExtendScript (JavaScript) you can set the "active" property of the 3rd state of your MultiStateObject to value "true".
    //ExtendScript (JavaScript) example
    //Make sure a MultiStateObject is selected; nothing else, then run this JavaScript:
    app.selection[0].states[2].active = true;
    The expression from left to wright (for lurkers who never saw a line of code):
    app => application (that's InDesign, of course)
    selection => your current selection in the UI (could be one item, could be many)
    [0] => index number 0 is the first item in your selection; be cautious with the expression "first", it depends on the InDesign version what that does exactly mean, if you selected more than one object
    states => obviously the "state" object (always with the plural "s", it's the collection of all states in that selected MultiStateObject)
    [2] => index number 2 is the 3rd element of the states collection
    active => property for the active status; boolean, could be "true" or "false"
    = => with the "=" sign, you are setting the value
    true => the value of the property; self-explanatory, I hope…
    ; => end of expression, all that comes after is a different expression.
    The different parts are held together with a dot-notation. The index  is directly glued to its object, no dot notation between object and index.
    If you want learn more about ExtendScript and the InDesign DOM see Jongwares' documentation at:
    http://www.jongware.com/idjshelp.html
    Uwe

  • Past data between timed parallel loops

    Hello
    I am working with a piezo-motor system and a test machine.
    -I send a comand every 20 ms to a motor to generate a movement on a strenght test machine.
     I have a timed while loop where I send the comands to the motor. The data I send is a SGL format number.
    -I read the force (with an other device) generated by the motor movement.
     (The device generate internally measures every 20 ms and save it on the device memory. The measures include force data and  time stamp).
     I have a second parallel timed loop where I send a command every 20 ms to read the last data on the device memory
    What I need is to get a measure with the last sended motor position and the force value at that time (synchron) every 20 ms (as accurate as possible). I know its not possible because I am not working with a real time system. What I would like to know is the best way to do it as accurate as possible.
    I am using local variables to get the data from the motor and the force device. I have a third parallel while loop where I read both local variables every 20 ms. The quesions are:
    -Since I cant not use queues or notifiers to pass data between loops because the loops sould be timed loops, witch is the best way to past the data between loops (local variable)?
    -Should I use one of my device loops (motor loop, or force device loop) as a master and get the value there of the other device?
    I cant post my code because the motor and the force device have small subVIs with license. Sorry.
    Thanks

    Navarro_ wrote:
    Hello
    I am working with a piezo-motor system and a test machine.
    -I send a comand every 20 ms to a motor to generate a movement on a strenght test machine.
     I have a timed while loop where I send the comands to the motor. The data I send is a SGL format number.
    -I read the force (with an other device) generated by the motor movement.
     (The device generate internally measures every 20 ms and save it on the device memory. The measures include force data and  time stamp).
     I have a second parallel timed loop where I send a command every 20 ms to read the last data on the device memory
    What I need is to get a measure with the last sended motor position and the force value at that time (synchron) every 20 ms (as accurate as possible). I know its not possible because I am not working with a real time system. What I would like to know is the best way to do it as accurate as possible.
    I am using local variables to get the data from the motor and the force device. I have a third parallel while loop where I read both local variables every 20 ms. The quesions are:
    -Since I cant not use queues or notifiers to pass data between loops because the loops sould be timed loops, witch is the best way to past the data between loops (local variable)?
    -Should I use one of my device loops (motor loop, or force device loop) as a master and get the value there of the other device?
    I cant post my code because the motor and the force device have small subVIs with license. Sorry.
    Thanks
    I'm not sure you need something so accurately timed?  The motor movement isn't going to be instantaneous, so when were you planning on starting the event?  When will the resulting measurement be valid?  I suppose there will be ringing?
    Or maybe the motor movement needs to be continuous and you take measurements at very accurate time intervals.
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • Data between stacked sequences

    I need to transfer a large array from one sequence to next sequence in stacked sequence structure. I made a property  node in next sequence, it works. But I did not feel it is the best way to do it. Please advice if any better way to do this job. Thanks

    You already received the correct answers above...
    Still, your question is not clear at all. Please try to describe the problem in more detail, maybe attach a simple VI that shows the main points.
    detech wrote:
    I need to transfer a large array from one sequence to next sequence in stacked sequence structure. I made a property  node in next sequence, it works.
    Are you trying to transfer data between "frames" of the same sequence structure or between two different sequence structures that are data dependent?
    As has been mentioned, to retain data between frames of the same sequence, use sequence locals.
    Anyway, I am absolutely sure there is a better way to do all this. If you show us your code, we can point you in the right direction.
    LabVIEW Champion . Do more with less code and in less time .

  • How can I share my ical with other users on the same machine?

    Having recently bought an imac I set up accounts for the family. I'd like to share a generic calendar with everyone that only the adults can read/write, but want to allow everyone to hold their personal calendars at the same time. All the accounts are on the same machine. Can this be done? If so how?

    You can only do this by syncing your calendar to an external server - MobileMe is designed for this but if you don't already have a MobileMe account you can't start one now.
    If you do have a MobileMe account the method is described here:
    http://www.wilmut.webspace.virginmedia.com/notes/sharedcalendar.html#publicshare
    If you don't, you could sync to Google Calendar (Google accounts are free) or wait for iCloud which should be out in a couple of months and will probably provide this sort of facility.
    You might like to consider BusyCal which is like iCal Pro - similar to iCal but with extra facilities. It can sync calendars on a Lan and also between accounts on the same machine (you have to have fast user switching enabled).
    There is a free trial available on their website: it's slightly cheaper from the Mac App Store. (I have no connection with this company).

  • After replacing the hard drive on my G4 Powerbook and reinstalling Tiger I am no longer able to synch between itunes and itunes, it seems that the software on the ipod is of later date than itunes and I am unable to update itunes to the state prior..

    After replacing the hard drive on my G4 Powerbook and reinstalling Tiger I am no longer able to synch between itunes and my ipod (Classic 160gb) it would seem that the software on the ipod is of later date than itunes and I am unable to update itunes to the state prior to the original harddrive's failure for Tiger OSX 10.4.11
    Any ideas on the subject would be most helpful
    Thanks in advance
    Dingoh

    The last security update released for Tiger users was the 2009-005 update. The latest version of QuickTime is 7.6.4. The last version of iTunes that can run on Tiger is 9.2.1, because 10.0 only supports Mac OS X Leopard and later.
    So, are you on version 9.2.1?
    Was it Tiger or Leopard you had on the drive before?
    iTunes 9.2.1 download...
    http://support.apple.com/kb/DL1056

Maybe you are looking for

  • Error while deploying wsdl file to OER...

    I have installed OER(11.1.1.2) and trying to integrate with jdeveloper(11.1.1.5)... i have followed oracle suggested document while integration ... the problem while trying to deploy the file wsdl file to OER i am getting the following error Buildfil

  • How do I synch my iPhone to a new PC without losing anything.

    Lost the HDD on my PC and had to reload on a new disk. I have an old backup of iTunes (not very recent) and would like to be able to synch my iPhone without losing contacts, play lists, etc. I can recreate the library from my laptop. I think I have t

  • Can I make more than 5 buttons in the accordian interaction?

    Can I make more than 5 buttons in the accordian interaction in Captivate 6?

  • Cannot find facescontext in jsf deployment

    hi all i am using tomcat 4 and jdk1.5 my faces-config.xml as bellow <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN" "http://java.sun.com/dtd/web-facesconfig_1_1.dtd

  • Sync Manager (Nomad Version) Download

    Hi, I wondered where I could download the version of Sync Manager that allows you to sync from MP3 player to MP3 player? It was part of the old Nomad MediaSource software as a standalone executable. Or, is there anyway to synch from player to player.