How should I share a cluster across several sub .vis? Best practices? Current problems...

I'm trying to share a cluster across several sub .vis.  I've written a save / load settings function that basically stores these settings in a static variable (full .vi attached):
Questions: 
  1. Is this an appropriate practice?  (using a sub vi to share data)
  2. My program settings appear to be lost occasionally and reset to their default values.  This bug is rare, and it's hard to see what's causing it.  Could this be caused by my "save / load settings"?  Would this .vi result in race conditions or something weird if I use it in many places (and sub vis)?  I've disabled reentrant execution.  
The "save / load settings" vi above uses a sub vi to initially read the settings from a binary file and save them each time they are changed (saved).  I initialize the "save / load settings" by loading the settings from text the first time this function is called.  
Thanks!
Attachments:
Save and Load Settings.vi ‏82 KB
Save and Load Binary File.vi ‏62 KB

What you are doing is generally called a LabVIEW 2 Style Global or an Action Engine. It is a valid way to store data for use across subVIs. Rather than use first call why not have a specific action to initialize the data? The code is a bit more readable. Though you can use first call as you have.
Mark Yedinak
"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot

Similar Messages

  • How can you share a library across several modules

    We have a flex app that is comprised of several modules. We have a library that needs to be used across many of those modules. Is there a way to only have one single copy of the library that all modules can share?  Or are we forced to put a copy of the library in each modules libs folder?
    I tried to put the library into the main application's lib folder, but the modules would not compile.
    Thanks!

    Add the SWC to the library-path options of the other modules Project Properties.

  • How do you share Aperture file across multiple users on same Mac?

    How do you share Aperture file across multiple users on same Mac? Seems this should be a preferences choice.

    When you share your library between users, you may run into permission and ownership problems, if both users are editing the Aperture library and not only reading it. To avoid that, it helps to put the Aperture library onto a separate disk or a separate partion of your hard drive. For s separate partition or disk you can enable the "ignore ownership on this volume" flag. Then all users can access the library as owners of this library.
    You might try to put the aperture library into a shared folder on your mac, but that has caused problems recently, i.e. when the library also contains video files.
    Regards
    Léonie

  • How should i share file with other devices such as nokia,blackberry and etc using bluetooth

    I want to share  files between other deivce such as nokia but couldnt, could u help me tell how can i share files with other devices???

    @AKRBTN: Thanks for the reply and info.
    That is a solution, but it really isn't viable.
    It is sad that apple refuses to support this.
    A simple example: Sitting somewhere with no signal and you want to share a file (photo) with your colleague or friend, who happens to be right next to you.
    Or even if there is signal and you don't want to be paying fees or data charges.
    Or you may be in a rehearsal studio and need to share that very important file and have no time to go outside and get signal and try to send the file, which then everyone else has to go outside and catch the signal and pay fees.
    Anyway, I see that this is a dead end with apple, so I guess I will be back to carrying 2 phones around again.
    Peace,
    SB

  • User Account Authentication across multiple Solaris servers - Best Practice

    Hi,
    I am new to Solaris admin and would like to know the best practice/setup for authenticating user accounts across multiple solaris servers.
    Currently we have 20 - 30 Solaris 8 & 10 servers which each have their own user accounts setup. I am planning to replace these with a similar number of Solaris 10 servers and would like to centralise the user accounts and their authentication.
    I would be grateful for any suggestions on the best setup and any links to tutorials.
    Thanks
    Jools

    i would suggest LDAP + kerberos, LDAP for name lookups and krb5 for auth. provides secure auth + extensable directory for users and other apps if needed. plus, it provides a decent spring board to add other unix plats into the mix since this will support any unix/linux/bsd plat. you could integrate this design with a windows AD env if you want as well.
    [http://www.sun.com/bigadmin/features/articles/kerberos_s10.jsp] sol + ldap+ AD
    [http://docs.lucidinteractive.ca/index.php/Solaris_LDAP_client_with_OpenLDAP_server] sol + ldap (openldap)
    [http://aput.net/~jheiss/krbldap/howto.html] sol + ldap + krb5
    now these links are all using some diff means, however they should give you some ideas as to whats out there. sol 10 comes with suns ldap server and you can use the krb5 server which comes with it as well. many many diff ways to do this. many many more links out there as welll. these are just a few.

  • How to make Forms less dependent of client PC ? (Best Practice?)

    Hello,
    We are on Forms 10g (and I also noticed the same pb with previous versions)
    We built quite big applications that use Webutil and jInitiator (not Java plugin)
    The application is used via Web only.
    At the deploiement of the applications, we experienced many difficulties due to specific configuration of Internet Explorer (or another browser, Firefox) of each one person of the company
    I suppose this situation has also been experienced by others...
    Do you have any suggestion of best practices for making such application less dependent of the client PC configuration ?
    Thanks in advance,
    Olivier

    Try to use http, i don't thing direct open the socket can pass throught the socket if your proxy haven't forward those ports~
    Hi All,
    I have problems with my applet working through
    gh proxy.I am using a client applet which makes a
    socket connection to a Java application running on the
    same pc as the web server.
    Everything works fine when I am directly
    ly connected.However it does't work when connected
    through a proxy? I am using object o/p & i/p streams
    for the exchange of data b/w client applet & the
    server java application.How do I overcome this
    problem.
    Currently I am using WinGate 3.0.2 as my proxy(I
    (I did't see any firewaal setting there) but I intend
    to make applet work through any proxy for that
    matter.Using a higher level protocol such as UDP would
    help in this regard?i think UDP/TCP is not the matter for that!
    This is urgent.PLease reply ASAP...
    best rgds,
    prithvi

  • Oracle 11g: How to ensure the same transaction across several BPEL calls?

    How to ensure transaction semantics across invocations of several BPEL services with a Database operations (Insert, update)? We are using transaction REQUIRED property in all of our BPELs. We are using webserive and JCA to access and modify the same row. Our code uses a combination of JCA, Spring bean, enity services, EJBs in these BPELs. The code can be more efficient, but, at this point, we have no option but to fix the transaction issue in this code. So, our question is how to ensure the same transaction context is used in all these BPELs to inser/update the same row? We have tried to set the GetUnitOfWork in the JCA Adapter but it did not provide any solution. Apaert from setting transaction in BPEL to REQUIRED and the JCA Adapter to use Unit of work, we are out of ideas. Any help is much apprecited. We are using Oracle SOA Suite 11g 11.1.1.5 version. --chary

    Hi,
    I can help you if you can describe the processes.
    There can be some difficulties when you try to use the same transaction especially when you use many DB transactions & BPEL processes.
    Using unit of work only ,might not be enough.
    Thanks
    Arik

  • How can I share iPhoto libraries across more than one computer?

    I am trying to find a solution for multiple users accessing a single iPhoto library.
    I want to have just one "master" library for my family, which we can all access via different computers.
    I also want to apply the same principle of a "master" library for iTunes and iMovie, plus all our files/documents - see the original question here: https://discussions.apple.com/thread/4940803.
    Does anybody have any suggestions?
    Thank you

    iPhoto has never been designed as a shared network database. What you want to do is currently not supported, Jerry, sorry.
    Some things to consider - assuming you are using the most recent iPhoto version:
    iPhoto '11 will not allow to have the library be opened by more than one user at a time. It will lock the iPhoto library, if it is already in use.
    The iPhoto library needs to be on a disk, that is formatted MacOS X Extended (Journaled), otherwise iPhoto will not open it. Most network volumes have a different formatting.
    Network access is considerably slower than the access to a locally connected drive. You will have a noticable decrease in performance when working over the network. Editing the images will be no joy, if each and every access to the databases inside the library needs a network access.
    Since iPhoto is not specified as a network database, there is no built-in protection against network drop-outs and transmission errors when doing database transactions. You will be risking to corrupt your iPhoto library.
    Save sharing options would be:
    Let the iPhoto library be managed by one user, but give read-access to your family members using the "Sharing" preferences. You can share all albums or selected albums on your local network for browsing.
    Put your iPhoto library on a portable drive and let each family member use the drive in turn.
    Use shared Photo Streams to share your photos.
    This is Apple's recommendation on how to share a library:
    iPhoto: Sharing libraries among multiple users
    Regards
    Léonie

  • How Do I Share picture library with several users on my imac

    I would like to share the picture library between all users on my IMac. How is this possible?

    iPhoto: Sharing libraries among multiple users
    Stefan

  • How do I share iTunes Libraries across users on the same computer

    I want to share my iTunes library with my kids on the same computer. How do I do that? They each have their own account identity?
    I tried HomeShare and ITunes library sharing in Prefs, but I can't seem to figure this out.
    I want to share CD's I've burned in w/o doing it repetitively for each account.
    Thanks!

    Hi there,
    First..I am new to this forum and find the information provided to be very helpful... I had followed the iTunes link above to enable sharing between users in the same computer but it appears to be working on partially. What setup am I looking for ?
    1. We have an iMac (Snow Leopard) with 1 Adult ID and 2 children IDs
    2. The iTunes music folder is stored in a Shared public folder where the Adult ID has read/write access and the 2 kids with read-only access (so that they don't accidently delete songs...:-)
    3. The iTunes on the Adult ID has the access to purchase songs. The kids have no acccess to buy songs
    4. All songs, podcasts to be visible to all users
    What has happened ?
    1. I am able to make the base of songs visible to all users
    2. However when a song is purchased by the adult account ..it is not visible to the kids account ..:-{
    3. The same thing occurs when a song is imported from a CD
    4. When a new playlist is created by the Adult account it is not visible to the kids account ..:-(
    How can I make changes made by the Adult be made visible to the kids without having the need to constant add music files or libraries for each kid..?
    Thanks in advance..

  • How can I share itunes library across 5 users on a single iMac?

    I have a new iMac and have set up 5 user accounts for each member of the family.  My account is the administrator account.  All of the iTunes music is in the Music folder of my user area.  I would like all users to have access to this library.  I have tried making the music folder a shared one and selecting it when in iTunes from other user areas but can't make it work.  Any advice?

    Hi itnumbskull,
    Thanks for visiting Apple Support Communities.
    See this article for some steps that can help share your iTunes library between accounts:
    iTunes: How to share music between different accounts on a single computer
    http://support.apple.com/kb/HT1203
    All the best,
    Jeremy

  • How can one share iTunes Library across two machines at the same time?

    **I have setup 1 of 2 machines to host all the songs in my iTunes library. I then went to machine 2 of 2 and held down option key on start up of iTUnes, changed the location of the liobrary on machine 2 to a shared folder on machine 1.**
    **This works awesome and I can use itunes on each of the machines 1 and 2 with no duplicate library in my home.**
    **Problem: I can only run one machine at a time. I can not run itunes on both machines at the same time. The error message from machine 2 is ITUNES library is locked and cant write to the folder. iTunes works correct if I QUIT iTunes on machine 1.**
    **Can iTunes run at the same time on 2 machines and access the same library?**
    *Thank You Troy*

    Troy Yoho wrote:
    Can iTunes run at the same time on 2 machines and access the same library?
    in a way, yes.
    set up _*Home Sharing*_ on both machines.
    JGG

  • I'm trying to share photo's via the web.  Best practices / ways to do this?

    I've used Picasa in the past to share photo's via web link with family.  I'm not certain how to do that using iPhoto if avaialble.  Does anyone have any thoughts on that? 

    iPhoto does not support Picasa, however, you can share images from your iPhoto library with Facebook, Flickr, and Twitter.
    With iPhoto open, from the iPhoto menu bar top of your screen, click Share then select one of the three options.

  • How to plan for size of Flashback Recovery Area? Best Practices?

    Hello all,
    I've set up a 5 node RAC cluster, setting up ASM diskgroups for data, and one for FRA. (11Gr2 on RHEL5)
    I'm wondering if there are any rules of thumb or guides to know how large to make your FRA? This FRA disk group will serve as the FRA storage area for about 4-5 instances.
    What is a good way to figure how much storage I'll need to allocate to each instance...for say a 5 day retention window for each instance via RMAN?
    Thanks in advance for any advice and/or links,
    cayenne

    Philippe Florent wrote:
    Difficult to answer. You want to have a "real" FRA with the archivelog files, the rman backups right ?
    Do you want your backupsets to be compressed, do you want to backup as copy ? Do you want to use the flashback feature ? Do you know the total size of the archivelog files your instances will daily generate ?
    Best regards
    PhilThanks for the replies.
    Yes, I want to use the flashback feature. I wasn't planning to used compressed backupsets....I run hourly RMAN jobs to backup and remove archive logs....daily incremental rman jobs to do level=1 backups...and weekly rman jobs for level=0 incremental.
    Yes, I want to have a real FRA with archivelogs and use the rman backups.
    Not sure the total size of the archivelog files it will generate. Is there a way to check to see on an existing instance elsewhere what it uses for an example? Not sure how to tell how much is being generated...
    Right now, I've set aside about 230GB...as that these were all same sized disks on the ASM....so, starting with that, but I still have larger disks to add to this diskgroup if need be.
    Thank you in advance.
    cayenne

  • How do I prepare my iMac for sale? And best practice for transferring media to a new system.

    This is my first time posting in a forum, so I will apologize in advance if I'm doing something wrong. I've tried to search for a very clear answer to my questions in the existing discussions, but have not had much luck.
    I ordered a Macbook Pro today and would like to sell my current iMac to supplement some of the cost. I purchased my iMac in March of 2011 with OS X Snow Leopard preinstalled. I've since updated to Mountain Lion. When my computer came in it did not have OS DVDs, so I am not sure exactly how to take it back to factory default and remove ALL of my information safely in order to prepare it for sale. I'm afraid to tell it to format if I am going to need a boot disc/drive to reinstall the OS. I've been trying to research all day and have learned that I will not be able to sell it with the current OS, only the one that came with the computer at the time of purchase (to the best of my understanding).
    Secondary to all of this, I have a question about backing up info and porting it to my new system. I have run the Time Machine backup to my external hard drive. However, I DO NOT want to port it to my new MBP as an image of my past machine. I did that when I got my iMac from my old MBP and my iMac thinks it is a MBP (MBP EFI/SMC Firmware Update Icons in my system utilities folder as well as identified as a Macbook Pro on my network). I've never been able to get all of these things to go away and I feel like it's chewing up hard drive space for no purpose whatsoever. I also worry that it could create system issues that I'm just not savy enough to catch before they are beyond control. That being said, I'd like to begin fresh with my new MBP. What is the best method of bringing my photos from iPhoto and music/movies/books/etc from iTunes to my new system? My word documents are easy enough...I keep 3 flash drives updated with them at all times.
    Thanks in advance!

    Whoever said you can't sell you iMac with the current Mac OS X is wrong, I believe.
    Unfortunately, it is not wrong.
    Any OS purchased/obtained at the app store - as is the case here - is not transferable. The license is tied forever to the Apple ID used to obtain it. The SLA states that the seller needs to erase the drive and reinstall the original system.
    @ Kamikazwe:
    You can call Apple and give them your serial number and they will send you copies of your original disks at a nominal charge.
    You do need to use your original Snow Leopard disk, boot from it, erase the drive, and reinstall Snow Leopard. The buyer of the machine will need to purchase his/her own copy of Lion or Mountain Lion with their own Apple ID or they will never be able to reinstall or update the OS.
    SLA Excerpt:
    3. Transfer.
    A. If you obtained the Apple Software preinstalled on Apple-branded hardware, you may make a one-time permanent transfer of all of your license rights to the Apple Software (in its original form as provided by Apple) to another party, provided that:  the Apple Software is transferred
    together with your Apple-branded hardware; (ii) the transfer must include all of the Apple Software, including all its component parts, printed materials and this License; (iii) you do not retain any copies of the Apple Software, full or partial, including copies stored on a computer or
    other storage device; and (iv) the party receiving the Apple Software accepts the terms andcconditions of this License. For purposes of this License, if Apple provides an update (e.g., version 10.8 to 10.8.1) to the Apple Software, the update is considered part of the Apple
    Software and may not be transferred separately from the pre-update version of the Apple Software.
    B. If you obtained your license to the Apple Software from the Mac App Store, it is not transferable. If you sell your Apple-branded hardware to a third party, you must remove the Apple Software from the Apple-branded hardware before doing so, and you may restore your system to the version of the Apple operating system software that originally came with your Apple hardware (the “Original Apple OS”) and permanently transfer the Original Apple OS together with your Apple hardware, provided that:  the transfer must include all of the Original
    Apple OS, including all its component parts, printed materials and its license; (ii) you do not retain any copies of the Original Apple OS, full or partial, including copies stored on a computer or other storage device; and (iii) the party receiving the Original Apple OS reads and agrees to
    accept the terms and conditions of the Original Apple OS license.

Maybe you are looking for

  • Copied examples of many javabeans sample programs but none works for me :(

    y is it that my javabeans in jsp always don't works always say blah.class not found... <jsp:useBean id="user" class="UserData" Scope="session"> Do i need to do anything to the "UserData" class first? public class UserData { String username; String em

  • Unlock a password protected probook 4530s HELP!!

    I bought this used and was told it was clean. Well its not. Not I cant even get past the the first step! Still has password from previous owner. Won't even load windows. How can I get past this??? Help!

  • How do I upgrade PE11 to PE12

    How do I upgrade PE11 to PE12 ?

  • Mise à jour Élement 10

    Bonsoir Je posséde Élémént 6: Adobe propose en promotion des mises à jour de des versions complétes d'Élement 10 Quel est l'intéret d'acheter une mise à jour pour Élement 10 proposé à 81,33 euro La version complète etant proposée moins chère à 59,56

  • Toast 9 - blu-ray

    Has anyone tried using Toast 9 (newest version) to burn a blu-ray after encoding with compressor?