Can I have multiple event structures with the same event cases?

Hello, 
I'm doing an application that reproduces the front panel of the HP6675A power supply. To achieve this, I have done a state machine with different states
(initialize, measures, voltage, current, ocp, ov, store, recall, etc). In each state, should have an event structure that catches the events of the buttons, like for example: if the current state is the Voltage mode and the user press the current button the next state will be the Current mode. For this in each state of the state machine should be the same event structure with the same events.
My problem is that the Vi doesn't work properly when I have multiple event structures with the same event cases. There are some possibily to do this, and how? Or is impossible to have multiple events? I have been reading some posts, but I don't find solutions. 
Any help is appreciated.
Thank you very much.
Solved!
Go to Solution.

natasftw wrote:
Or as others mentioned, make two parallel loops.  In one loop, have your state machine.  In the other, have just the Event Handler.  Pass the events from the handler to the state machine by way of queues.
A proper state machine will not need the second loop.  The "Wait For Event" or "Idle" state (whatever you want to call it) is all you really need in order to catch the user button presses.  The setup is almost there.  Maybe add a shift register to keep track of which state to go to in the case of a timeout on the Event Structure.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines

Similar Messages

  • HT204053 can i have multiple iCloud accounts with the same Apple id

    Can i have multiple iCloud accounts with the same Apple id

    Welcome to the Apple Community.
    No, your ID is essentially your account. You can have email aliases and you can have multiple accounts, but I don't think that's what you are asking.

  • Can I have multiple iTunes accounts for the same Ipod?

    Can I have multiple iTunes accounts for the same Ipod? What I mean is can I use multiple iTunes accounts through the same iPod for buying stuff?

    I believe you're limited to syncing DRM'd items from 5 different accounts.
    tt2

  • Can I have multiple Ipad airs using the same i tunes account?

    Can I have mutiple Ipad Air using the same I Tunes account?

    Yes. Are you also talking about them using the same Apple/iTunes/iCloud ID for signing on?
    GB

  • HT3051 can you change your Change Your Displayed Name if you have multiple devices attached with the same apple id?

    We have both a Iphone 4s and a 4th Generation Ipod Touch both with the latest available IOS software on them. Since the Ipod touch was given to a preteen for Christmas and they aren't old enough to have their own email account or apple id 11 years old going on 12, is it possible to have a different displayed name for each device if they are both signed in with the same apple ID and not interfere with each others device in doing so?

    @pdroth. Displayed name as in when you sign up for a apple id you sign up with email and a screen name(this is your display name). If you are using any apple device as like you do with an android device you have to sign in with either your google acct for android or apple id for a apple product. If one apple product is utilizing that apple id already aka Iphone and you can't set up a account for your child because of his or her age because of age restrictions, both devices will use the same info. So for instance when using things like facetime instead of seeing jane doe calling jane doe(basically making it show name of other person using your account instead of seeing your own name) can you make on jane doe and one john doe using the same apple id just different outgoing display name. Hopefully this helps.

  • HT4436 Can I have two apple IDs with the same iCloud?

    Is it possible to sync data from multiple apple IDs to the same cloud account?

    So, how do we as a family have more than one device ( 3 iphones, 1 ipad, 1 imac) and each person be able to sync their own contacts, etc..?  My son just backed his up and it confused my iphone - ie, my husband's name now is under 'Dad' and I have all his college friends...  I am so confused.....

  • Can you have multiple users working off the same Mac pro at the same time with multiple monitors but doing different things?

    I'm buying desktops for a start up company and was wondering if I could purchase a single Mac Pro and run multiple monitors to allow multiple users to work on the computer at the same time. These users would be doing different tasks but I would hope to accomplish that on a single desktop. I know that screen sharing is possible but with only one user controlling both of the screens. Thanks in advance, sorry for my apple ignorance!

    A lot of companies are buying or leasing laptops to be used at the office by day, and carried home at night.
    Some companies are doing "Bring your own device". Bring a device to receive email -- computer/smartphone/tablet you already have, or have an allowance to buy one for your use.
    If Capital is short (and when is it not) leasing computers, to be turned in a few years, can be a huge savings because the cost is expensed as incurred. The alternative is laying out cash today, but not being able to expense the cost this year. Instead, the computer expense must be recovered over their useful life (often five years) through depreciation.

  • Game Center - HELP!  I have multiple ID's with the same account

    About a year or so ago I was syncing my iPad2, or updating the iOS...I can't remember...but for some reason the iPad forced me to create a new game center ID.  I now have two game center ID's (each with different friends, different profile pictures, etc.) under the same apple ID.  I have seen quite a few remarks that state it cannot happen, but rest assured it has happened to me.  Every now and then for some odd reason Game Center will log me in as the ID I originally used.  But for the most part it uses the one that I was forced to create a year ago.  I have no control over this.  And the iPad acknowledges this because when I have tried to open some apps it has told me "Game Center ID was changed..." blah blah blah and I have lost all my saved data on some games, including IAP's which has me so furious if this is not fixed I will never put a single penny of mine into any Apple product ever again.
    Lately (since iOS 7.0.4 was released) I am having major problems with my apps crashing.  They lag, they freeze, they crash.  CONSTANTLY.  I think the fact that I have multiple game center ID's is somehow causing some sort of conflict, since I believe I ruled everything else out.
    Just for the record:
    1.  I have power-cycled my ipad (this solves the problem for about a day).
    2.  I have closed all apps running in the background.
    3.  I have reset my ipad (this solves the problem for about a day).
    4.  I have tried installing new apps to see if it resets how it accessess apps (I read this may solve crashing issues).
    5.  I have turned off my VPN, turned it back on, etc...
    6.  I have renewed my lease.
    7.  I have reset my internet (it's not the internet because all my other devices work just fine but I figured I'd try it anyway).
    8.  I am considering the possibility that the iPad2 is just dying, or going defective, for whatever reason (worn out I guess).  If that's the case I sure won't ever be buying another one.
    So, all I would like to know at this point is: how can I delete one of these game center ID's?

    Welcome to the Apple Community.
    No, your ID is essentially your account. You can have email aliases and you can have multiple accounts, but I don't think that's what you are asking.

  • Can I have a network user with the same name as a local user?!

    I have just set up Mac OS X 10.8 SErver with Open Directory.  I have about 20 machines that I will be setting up, some which have mainly been used localy and just used to tap into Shared Files, [historically], but am wanting to use network users for better backup and support.
    However some of the legacy accounts were not used on off the server...  What I have is the following :-
    a)    [Person A]  - They are a network user with Password [Password A]
    b)    The computer is [Person A], they have a Password [Password Old] (so it is different)
    I have Network Account Users turned on, with a green dot! (have domain all set up)
    However How do I connect using either a or b.  depending on what i feel like that day!
    ? Help any ideas.
    Ultimately I will have set up all my client machines with a client admin user and standard password... but I am not there yet!

    Moving from local (legacy) users to network users takes a one-time hassle of moving the contents of their local home folder contents up to the server. Using a finder copy never worked for me. What I finally found worked reliably was using rsync to copy the entire users local folder up to the server. Once on the server, move the files into place (if you didn't rsync them there directly. Finally, Chown all the files (on the server) to associate them with the correct userID on the server. If everything looks right on the server, you can test by trying to login as this user from another local Mac (but now as a network account), and hopefully their home folder looks like they expected.
    Note you will need admin access in the local machine and the server to rsync their home folder. You don't want to be logged into their account while trying to copy their files up to the server.
    If rsync is not your bag, a portable hard disk and/or disk image of their home folder is another way to move their stuff.
    Once you've verified that their network account got to the server ok, then REMOVE the local account.

  • Can I have multiple activation​s on the same computer?

    I have an Lookout Integrator package activated and running. Question is, I
    also have a 50 I/O Dev. System. Can I have both the 50 I/O and the
    Integrator package activated at the same time, and which one would come up
    when I start Lookout?

    I would think, lookout starts and uses the "best"/most featured license.
    1 window either way
    Mike 
    Mike Crabtree - Lead Developer
    Destek of Nevada, Inc. / Digital Telemetry Systems, Inc.
    (866) 964-6948 / (760) 247-9512

  • Can't have multiple videos open at the same time?

    I often start buffering another video when one is finished, so I usually tend to have 3-4 videos open at times. However, about a week ago, the adobe flash plugin would crash. So, I followed this guide:
    http://support.mozilla.com/en-US/kb/The+Adobe+Flash+plugin+has+crashed?style_mode=inproduct
    I also disabled the plugin container. Now, the plugin stops crashing, but firefox stops responding whenever I open a third video. Then, firefox itself crashes. Please help!
    == This happened ==
    Every time Firefox opened
    == About a week ago.

    The same thing just happened when I opened a second video instead of a third one.

  • Can I have multiple submit buttons on the same form?

    Hi!
    I'm creating a web page that allows the user to build a mail filter, and I would like to have to submit buttons, one to add more fields to the filter and another one to save the filter... I could insert the two buttons on the, but I don't know how to distinguish them while doing the process of the form on a jsp page. Any ideas?

    You can create additional submit buttons using Javascript buttons:
    <input type='button' value='Add Fields'
    onClick='this.form.action="/servlet/AddFields";this.form.submit()' />
    <input type='button' value='Save Filter'
    onClick='this.form.action="/servlet/SaveFilter";this.form.submit()' />
    The value of "onClick" is a block of Javascript, so you can all a function to validate the form before submitting, etc.
    Mike W.

  • HT2905 I have multiple album titles of the same name with different artists. How can I get them to go under one album title again?

    I have multiple album titles of the same name with different artists. How can I get them to go under one album title again?

    In iTunes(on a Mac or PC) just tap on 'Albums' rather than 'Artists' and you'll see them all together.
    You may find that there are songs mislabelled. In which case right tap on the Album or Artist and tap 'Get Info', then change to the correct name and the songs will join the rest of the songs for that Artist or Album.
    Then resync with your iPhone and all will be well.

  • Can you have multiple iCloud's with one Apple ID?

    Can you have multiple iCloud's with one Apple ID?

    You can have multiple iclouds with multiple id's

  • There is a little camera icon on a movie clip when I try to import it to iMovie from my iPad. I have reimported several times with the same result. When I disconnect the iPad I can no longer view the clip. Help!

    There is a little camera icon on a movie clip when I try to import it to iMovie from my iPad. I have reimported several times with the same result. When I disconnect the iPad I can no longer view the clip. Help!

    Hi eawaters,
    If you are having issues importing video from your iPad to your Mac for use in iMovie, you may find the following article helpful:
    iOS: Import personal photos and videos from iOS devices to your computer
    http://support.apple.com/kb/ht4083
    Regards,
    - Brenden

Maybe you are looking for

  • How to create a user in BI

    Hi, I am trying to add a user that I can use in BI other than the Administrator user. I have added a user via the Security Manager of BI Admin and have assigned it the Adminstrators security group. However when I try to log into BI Answers using this

  • New 2014 Carbon X1 Multitouch difference between Windows 7 and Windows 8

    Hi guys,  I've a T430u on windows 8 and I find windows 8 extremely unusable with settings and patterns all over the show.  I want to buy the new carbon x1 and I'd love to have it with windows 7 professional, but I'm wondering if there are any feature

  • Macbook Pro 10.5.8 won't allow upgrade of iTunes to sync with iOS 7

    Macbook Pro Mac OS X 10.5.8, won't allow upgrade of iTunes 11 to link in with iOS 7 iPhone update. Do I need to upgrade to Snow Leopard operating system? Or Mountain Leopard operating system? Help please!

  • HT1351 Can you put audiobooks on a nano

    Can audiobooks go on a nano

  • Is this perhaps a bug in iPhoto?

    A picture I didn't edit appeared in the edited folder somehow. Now I'm trying to clear the folder but the photo will not delete no matter what I do. When I try to revert it to original, it's not highlighted so that's not gonna work. I know I didnt ad