How can I do a user controlled amount of subvi instances?

Hello!
I'm trying to write a dynamic application where the user can control which sub-vis get selected to run in parallel.  The problem I am having is that each sub-vi has it's own never ending while-loop, and that the execution of the first one prevents the execution of others.  See the example attached.
Now I know at first glance you may say, "Why use the for-loop?  Why not just have the two knobs control seperate conditional statements instead of an array that controls a single conditional inside a for-loop?"  The answer to that is because in my application, the size of the Control array that spawn sub-vis gets selected by them also!*  So I'm trying to take advantage of the for-loop's auto-indexing ability to spawn as many sub-vi instances as there are knobs in the Control array.
An alternative I thought of was to simply execute all the sub-vi's, and have the Control array simply select the correct outputs (outputs not demonstrated in the example attached), but I am running this in Real-Time on a FieldPoint unit, and the processor overhead of running all the sub-vi's that are not necessary will hurt my performance.
If you can understand the problem I am presenting (I may not be completely clear) and have a better way to spawn sub-vi's with internal while loops controlled by an array , I'd appreciate your help!
Thank You
*I'm doing this because the job I am working on will need to be modifiable after my contract is over, and the potential of expansion after I am gone is highly desired my my employer.  Sure, I'd rather be rehired to change the code everytime changes are needed, but that's obvously not the best solution for my employer.
Attachments:
one_selected.vi ‏13 KB
example.vi ‏18 KB
zero_selected.vi ‏14 KB

Awesome.  I'll do that!

Similar Messages

  • How Can I change all User Passwords Within a Directory Instance

    Hi Experts,
    I've been asked to refresh an old directory instance with some production data.  Easy enough I thought, however, the user has requested that all user passwords within the old directory instance are preserved.  Is that at all possible?  My chain of thought was that I can extract user passwords from the old instance into a file: -
    # ldapsearch -D cn="Directory Manager" -w xxxxxxxx -b o=xxxxxxx objectclass=* userpassword > <name of file>
    And then then use ldapmodify (or alike) to re-import the user passwords once I've refresh the old instance with the production data.  However, to my knowledge, in order to modify a particular entry via a file, i'd need the following format: -
    dn: gci=-1,ou=people,o=xxxxxxxx
    changetype: modify
    replace: userpassword
    userpassword: xxxxxxxxxxxxxxxx
    The only information I have in the file I created using the ldapsearch command above is as follows: -
    dn: gci=-1,ou=people,o=xxxxxxxx
    userpassword: xxxxxxxxxxxxxxxx
    I don't want to have to edit the file and add the relevant missing entries accordingly as the generated file has somewhere in the region of 150 thousand entries.
    Am I approaching this the correct way?  Is there any other mean of achieving my requirement.
    Thanks in Advance.

    Hi,
    It does not seem a big deal to add the missing lines to your output file.
    For instance, the following awk command should do the trick
    cat search.out
    dn: gci=-1,ou=people,o=xxxxxxxx
    userpassword: xxxxxxxxxxxxxxxx
    cat search.out | awk '/userpassword/ {print "changetype: modify} ; print "replace: userpassword"; }  {print $0}
    dn: gci=-1,ou=people,o=xxxxxxxx
    changetype: modify
    replace: userpassword
    userpassword: xxxxxxxxxxxxxxxx
    Then you can use ldapmodify to apply your changes
    -Sylvain

  • How can I find out user id who has deleted payment order

    Issue : After payment run, the required information has been sent as Idoc to the bank. So, we know the payment order number.   We observed that another payment run also has picked up this vendor invoice and made payment.
    Usually Payment Sent will be marked X until the related information comes in the form of bank statement upload and this amount gets cleared.
    We noticed that bank has made two payments for this amount to this vendor on different dates :- a) when the payment order supposed to be paid as per the payment terms and b) when second paymnet run paid the amount [ this time it got paid directly as there is long due amount ].
    From SAP APP angle, both the payment run worked fine and also the calcaltion of payment terms as well.
    So, we come to conculsion that someone has deleted the payment order from the system. Thats the reason this invoice got picked up by 2nd APP and paid the amount.
    Where we could not find the related entry in REGUH/REGUP tables for this payment order and no document changes.
    Question: How can I find out user id who has deleted payment order. Appreciate any clue / answer for this issue please.
    Thank you
    Sri

    Hello,
    Not sure about deletion logs. =/
    Idea:
    What if an error occured during the first payment? Have you checked sm13 to check if any update termination occured in the payment program?
    Regards,
    Renan

  • How can I create variant of control query?

    Dear Expert,
    I am using BEx Broadcaster to bradcast query as a report.
    In tab Filter Navigation, I enter the control query, but the variant always gives me "(No Selection Possible)".
    How can I create variant of control query?
    I try to create variant via variable entry page when I excute my query.
    The variable show in table "RSRPARAMETRIZA" but not show in BEx Braodcaster.
    Thank you,
    Zilla

    Hello,
    Please run this control query on the portal and then save variant you require. If you want this variant to be available
    to all users make sure that the user specific flag is unchecked while saving the variant.
    Regards,
    Michael

  • How can i attach a user-speci​fied header to each UDP packet?

    Hello,
    i have here a question about UDP:
    i want to stream live-videos using UDP. To avoid/observe some possible problems that could occur (e.g. wrong packet-order, packet loss etc.) i am planning to add a header to each UDP packet with e.g. frame-nr. , frame-size, packet-nr...
    Question:
    1. (How) Can i control the UDP packet size in LabVIEW?
    2. If possible, how can i add a user specified header to each/certain (e.g. the first or the last packet of the frame) packet?
    Thanks!
    WLAN
    Message Edited by wlan on 01-26-2007 03:02 AM

    WLAN,
    i just copied the help regarding the max size-terminal from the LV-help:
    "max size is the maximum number of bytes to read. The default is 548. Windows If you wire a value other than 548 to this input, Windows might return an error because the function cannot read fewer bytes than are in a packet"
    So, please do not change this value....
    UDP creates packets from the data you transmitt. Each packet in Windows should have a size of 548 bytes or less. So this should read one whole packet at a time.... Decreasing this could lead to problems if the packet is larger.... Increasing this value changes nothing since the packets themselfs do not get larger only by trying to read more bytes..... Since you cannot alter the packetsize from LV, you shouldnt bother about that anymore.
    And to add (again): UDP does not garantuee ANY correct transission. So you will never get any note if the first packet of a frame was lost. If you need some kind of garantuee for this, you have to use TCP (btw. infact, the TCP header uses 192 bytes, containing the infos like seen in the attached gif).
    regards,
    NorbertMessage Edited by Norbert B on 01-31-2007 11:12 AM
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.
    Attachments:
    tcp_header.gif ‏9 KB

  • How can I have multiple users on iTunes (in order to connect to a shared office iPad)?

    How can I have multiple users on iTunes (in order to connect to a shared office iPad)? Currently each of us has our own iTunes account, so I've made an "all office" Apple ID. However, I can't seem to get two different accounts (my personal and the office) to work on my machine. Even when I login as "the office", my personal library is still showing. Additionally, when I try to setup with a first-time use in iTunes, I get an error that I don't meet the minimum age requirement - no matter what birthdate I enter!

    The library exists regardless of which user is logged in.
    The only way around that is to create different user accounts on the computer.
    There is no way to have 20 unique iTunes users access a shared iTunes under a single login on the computer.

  • How can I have multiple users on one apple id?

    How can I have multiple users on one apple ID?
    ie: I have my apple ID with my own credit, how can I set up credit for my son under the same apple ID, so that he can still access the same apps I've already downloaded and paid for?

    I've been trying to figure out a clean way to do this too. I think you may need more than one Apple ID – one that is shared and used to purchase "sharable" items and then "individual" Apple IDs for you and your son. That's the idea that I'm pursuing for the moment.
    It seems that there must be a way to do this, App Store purchases for the Mac are licensed across multiple machines. iPhone app purchases have "all your devices" licensing. Makes me think that Apple has a process in mind for sharing an account (or associating a device with multiple accounts).
    Other things I've learned:
    - Apparently you can't merge Apple ID accounts. I asked about this once at an Apple Store and was told that there was no way to do it.
    - If you share an Apple ID the Messages app behaves in a somewhat surprising manner. It must use your Apple ID to decide where messages should be sent because all users get all messages. This can make it very hard to organize a surprise party :-)

  • How can I allow other users on my macbook to view my iphoto library when th

    How can I allow other users on my macbook to view my iphoto library when they are logged in. I do not have a network, and the users (my family) all log in seperately when they use the computer. Does anyone know? Thank you.

    rdoss
    Welcome to the Apple Discussions.
    If you want others to be able to see the pics, but not add to, change or alter your library, then enable Sharing in your iPhoto (Preferences -> Sharing), leave iPhoto running and use Fast User Switching to open the other account(s). In the other account(s), enable 'Look For Shared Libraries'. Your Library will appear in their source pane.
    Remember iPhoto must be running in both accounts for this to work.
    Regards
    TD

  • I bought 26 new songs under my work e-mail and now i can't copy them to my i-pod because it has another music library on it. How can i combine both user id's to the same purchased account

    I have 2 user id's with apple, i bought 26 songs from my laptop recently using my work e-mail. I plug my i-pod to sync it and it says that my i-pod is tuned with another library. i don't want to erase the songs I have already because they are about 760 and the new ones are 26 only. how can I combine both user id's and consolidate all the music into one user id?
    everytime i try to do something it asks me to reset the password. I have done it already 6 times.
    there is no phone # to call.
    Thanks
    Elena

    Alright, please follow these steps in order to get it working properly again.
    Please change your Apple ID back to your old email address (that you used as Apple ID before) here: http://appleid.apple.com
    Then go to all your devices - iPhones, iPads, Mac etc. - ("Settings > iCloud") and delete your iCloud account from this devices (+ turn off Find My iPhone, but I guess it will ask you that anyway)
    After that go back to http://appleid.apple.com sign in again, and now change your Apple ID again to your new email address.
    Finally, set up your iCloud account on all your devices again.
    Now, everything should working properly again.

  • HT201342 How can I change the USER of my i-cloud address? My 12 year old set up the e-mail account and used a silly user name (like: turtle!!). I would like to have an icloud e-mail account but under my own user name. The other /old name can be deleted?

    How can I change the USER name of my i-cloud e-mail account? It was set up by my son and he used a silly / embarrassing user name. I would like to change this name OR set up another i-cloud e-mail account under my own name / reference. Help?

    iCloud email addresses can't be changed or deleted, but you can set up an alias namethat he can use which will be linked to his current iCloud account and will receive email in the existing iCould inbox.  This guide explains how: http://support.apple.com/kb/PH2622.

  • How can I transfer two user names from an iMac to a new macbook?

    How can I transfer two user names from an iMac to a new macbook?
    got a new laptop and need to transfer two usernames to it, complete with all documents help?

    Assuming you haven't already set up a user, the easiest way is to use the Setup Assistant during first boot of the new Mac, with the two Macs connected by firewire.
    You'll be prompted to migrate from a choice of sources - choose "from another Mac", select the catagories of data you want to transfer and follow the instructions.
    More info here, in Pondini's FAQ; http://pondini.org/OSX/SetupAsst.html

  • How can  I  restrain the user login portal once, in the same time ???

    Hi
    I need to restrain the user can't repeat to login portal ....
    to reduce portal loading
    How can I restrain the user login portal once, in the same time???
    Which attributs in Identity Manager or amconsole I can do it to restrain the user ??
    tks

    Does your portal support anonymous access? If so, make sure you are using the authlessanonymous mode. This mode only creates one session that is shared for all anonymous users. This is much more efficient than anonymous access, which creates a session for each anonymous user.
    I have no other recommendation for limiting users to a single login. In general, web applications do not behave like this. What if a user closes their browser without logging out? Does the user have to wait until the session times out in order to log back in again?
    The same thing is true for users that are mobile. If a user leaves their office without logging out and then attempts to log in with a laptop in the conference room, then access will be denied in your implementation. Users do not expect this type of limitation being built into the system.
    If you are having problems scaling, then you need to look at your architecture and perhaps add some more resources. Also, make sure you are making efficient use of the authlessanonymous access mode as stated above.
    - Jim

  • HT1918 how  can i get the user manual  info back  which has  been  erased  from my  settings  icon  pafe  after  a restore from itunes

    how  can i   get  my user  manual info  back onto  my  settings   menu 
    this  heading  did  not  appear  on the settings  menu following  a  restore  necessitated  bt  a  freezing screen  glitch  thanks

    I'm not entirely sure what you are referring to, there isn't a user manual section in the iPad's Settings app. If you want an iPad then you can either download it from here : http://support.apple.com/manuals/ipad/
    Or if you download the iBooks app then there should be a copy in the ibookstore in it

  • How can I change an user username

    Hi,
    Please anyone tell me how can I change an user username. I need to do that because I have a .dmp with the same username as the one I already have in my database and I need to use the both.
    Thank you

    You can just create your new user as required, then do an import with the parameters
    fromuser=olduser touser=newuser
    plus whatever other parameters you require.
    TTFN
    John

  • How can i obtain a user guide for the ipod nano 16GB 5th gen. with out printing it off the computor

    How can i obtain a user guide for the ipod nano 16GB 5th gen. without printing it off the computor.

    You can't, at least not the one provided by Apple.
    B-rock

Maybe you are looking for

  • Replacing Superdrive

    Recently I've run into issues with my superdrive -- end result, it's shot. I've owned it for almost two years now, and burned many DVD's, so it is to be expected. My question -- It is a PIONEER DVD-RW DVR-106D, according to the system profiler. I fou

  • Document Type in Outgoing Payment

    Hi All, I would like to know which table stores the information about the document type selected in Outgoing Payment. Thanks, Joseph

  • BCS Profile Page Error

    Hi Folks, This is the first time I'm totally stumped. I upgraded a BCS service app from 2010 to 2013. When it was running in 2010 mode, all was fine. As soon as I upgraded the site collection the BCS Profile Page is not showing due to an error. The l

  • Print in laserjet Problems

    Hi all, I'm facing problems printing some forms in SAP ECC 6.0. When we try to print in a local printer, via SAPLPD, the form is printed in a normal way, but when we choose a printer in the type device list (that is linked to the same printer), the p

  • I want to login solaris as root user

    hi i want to login solaris as root user and want to modify a file which can only be accessed by root user so i wanna do so... i can work as root user in terminal window but when i go to open that file in terminal window then it gives access error...