Design issue with similar machines, but different Globals

Hi,
I know my questions about Global Variables has been up before, but maybe not in this kind of issue. The original coding has been done by someone else than me, but i want to change it. Now every machine has a folder and each folder consist of similar information as the next one. So there are 4 duplicate of every control and it's a nightmare to update the global variables in the total of around 200 files. I would like to combine the files so that only 1 file for "every action" would exist. So how should i do it. I have a few ideas but i would like to know how "the professionals" would do it.
I've read that you should avoid of using a lot of Global Variables, but i don't know if in my case i can avoid them. Some of them could be removed when it's a realtime test that's going on and during the test you can open the attached VI, so how other could you transfer the information?
System consist of:
4 hardware test machines
22 FP devices reading and writing
~50 Global Variables / per machine (50 variables per file, 1 file per machine)
The attachments contines of one of the VIs that i'm working on. I'm not sure if you can open it because it contains many subVIs, but you get the picture of what i'm working with. So any ideas how to combine 4 same VIs with different Global Variables?
Attachments:
2.png ‏35 KB
Temperature meas_1.vi ‏331 KB
1.png ‏40 KB

Hi Englund,
you feed the cluster through the vi like your error cluster. In the subvi's you only unbundle/bundle the values you need!
Example (Pretty silly, as the 'Select' operation isn't needed at all - I have to kill a student for that ) :
The cluster 'Messvorschrift' contains about 50 values (partly in sub-clusters or arrays). You get the value needed for operation and write it back when needed.
This scheme is pretty straightforward - but has a problem: it leeds to race conditions when you access your global several times in parallel!
Then you should use a LV2-style global aka 'Action engine' - look for the last community nuggets in the forum!
Message Edited by GerdW on 05-22-2007 09:22 AM
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome
Attachments:
Cluster.png ‏2 KB

Similar Messages

  • Equalizing photos with similar content but different exposures

    PSE7
    Greetings,
    I asked this in the Elements forum with no resoultion.  If it can be done I may have to go out and buy the full photoshop.
    Background:
    I have a group of photos that are very similar.  They are posed graduation photos where the camera and background do not move.  Only the subject , who wear very similar robes, changes.  The exposure of my D-70 with a bounced flash wound up being eratic with some good subject expressions being captured under existing light conditions and dramatically underexposed because the flash didn't fire (took the pixs too fast and the flash didn't recharge fast enough).
    The question:
    Is there a way in photoshop to take a group of very similar photos that vary in exposure, color tone, etc.,
    then select one master photo from the group that has the exposure, color tone, etc. that I want,
    and then batch process all the photographs so that all of the photos are changed to match the exposure, color tone, etc. of the master photo I picked???
    Another way of saying it, How do I make the common background of each photos above identical in one step (or as few as I can)???
    Thanks..

    don't know about Elements but in Photoshop i suppose that you could maybe use Image->Adjustments->Match Color in an action but it's a fake so don't expect miracles from it. Another way would be to just open them all in Camera Raw and apply the Auto setting to them but that won't correct the images based on a base image

  • I bought an external hard drive for backups to use with Time Machine, but however when I try to connect it with the other windows laptop it doesn't work ? intact it doesn't work on any other device except my MAC ?

    I bought an external hard drive for backups to use with Time Machine, but however when I try to connect it with the other windows laptop it doesn't work ? intact it doesn't work on any other device except my MAC ?

    Do not worry about it.
    Time Machine needs that your external drive is formatted in HFS+, or better known as "Mac OS Extended (Journaled)". This filesystem is used by Apple on Macs and Windows cannot read or write drives formatted with this filesystem, being this the reason why all your devices do not read the external drive except your Mac.
    You can only use your external drive to make Time Machine drives. If you store anything different, you may damage the Time Machine structure, so it is better not to use it as a drive to store other data. Instead, get another external drive to do it or create a second partition on the external drive formatted in FAT32 by using Disk Utility > http://pondini.org/OSX/DU3.html FAT32 can be read by Windows PCs

  • Lion 10.7.4 issues with Virtual Machines

    Hi,
    I'm having lot of issues with virtual machines (both Parallels and VMWare)
    since having update to lion 10.7.4.
    I make myself:
    If I switch on Mac OS a run any vitrual machine software
    I can run Windows XP and Ubuntu at same time with no issue and very fluently.
    But, if I switch on Mac OS and start using Eclipse, Safari 5.2 and other production stuff and
    want to use vmware or paralles
    they become unusable even if I quit all the tasks ans "purge" memory.
    (eg: if i click start button on windows I have to wait seconds before the start menu pops up)
    Any Idea?
    I have MacBook Pro 13 Unibody mid 2009 with SSD Drive AND 4GB of RAM
    and I had no such issues with Lion 10.7.3

    alex_75 wrote:
    As you wrote before, virtual mchines need big chunks of contigous RAM and
    2,5 GB of free RAM wuold have enough ammount of such a RAM.
    No, it wouldn't. 2.5 GB of free RAM could consist of 5 chunks of 500 MB of contiguous RAM, separated by RAM allocated by other processes.
    Here is a hypothetical memory map. Assume a is application memory, o is operating system memory, and - is free memory.
    boot:           oooo--------------
    run app1:    ooooaao-----------
    run app2:    ooooaaoaaaaaaoo---quit app1:   oooo---aaaaaaoo---
    Maybe there is some issue in the way 10.7.4, in some perticolar situations, handle the process of freeing RAM.
    What you can't accept, and I don't know why, is that before the update to 10.7.4 everithing was fine.
    I don't know why you don't beleve me.
    There is nothing in the 10.7.4 update description that mentions a re-write of the virtual memory system. http://support.apple.com/kb/HT5167
    I just worte here to see if someone could give any advice to do further invesigations.
    I know the price of upgrading RAM but I think that this would be a "microsoft like" solution
    and I'm trying to find what service or task or whatever is creating this issue.
    The only thing "Microsoft like" about buying more RAM is the fact that you need it to run your Microsoft operating systems. It has been this way as long as I can remember. I upgraded my MacBook to 4 GB RAM in 2008 just so I could run Windows more easily.
    Perhaps you have your virtual memory settings too high. Depending on what you are doing in the VM, you may not need the default settings. XP will run low-intensity tasks with a 500 MB VM size. It will run just about anything in 1 GB. Linux should run fine in the same range too.

  • FCP X Crash. Restored with Time Machine, but Timeline still empty.

    Hi!
    I just started with FCP X (Trial Version).
    After 2 days of hard work I had a crash (spinning wheel, forced closing).
    The Timeline is empty now.
    I restored the folders "Final Cut Projects" & "Final Cut Events" completely with Time Machine, but no matter how far I go back, the timeline remains empty.
    (event and imported media are visible, though)
    Does FCP X save project data anyplace else on my mac ???
    Thank you in advance ...

    Thanks for responding.
    So under the partition tab, I should reformat to one partition, reinstall Leopard, and see what happens from there? Selectively restore applications, music, pictures to my system once it's reinstalled and properly updated? Anything else I may need to do or restore?
    Why not reformat under the erase tab, zero out the disk, and reinstall? Any difference?
    Just a little worried and unsure is all. If it's a hardware thing, I can accept that and take it in to be serviced. But, if it is a software issue, I don't want to do any irreparable harm during the erase-and-reinstall process. Just want to make sure I get it right.
    Message was edited by: Immolate

  • Can i go back with time machine but without the applications(to keep it the same)?

    can i go back with time machine but without the applications(to keep it the same)?
    i want to make my mac "younger" but i've got applications that i want to keep and i have them not so long ago...

    Clone your system them.
    Keep your OS and apps on separate hard drives.
    Install the OS if you must for now on another hard drive.
    Use Setup Assistant when done.
    = = =
    Using Cloning as a Backup Strategy
    http://www.macupdate.com/app/mac/7032/carbon-copy-cloner 
    http://www.bombich.com/software/updates/ccc-3.5.html
    OS X Lion Install to Different Drive
    How to create an OS X Lion installation disc MacFixIt
    Migration Assistant Update for Mac OS X Snow Leopard
    http://www.apple.com/support/lion/installrecovery/
    Create an OS X Lion Install disc
    http://reviews.cnet.com/8301-13727_7-20080989-263/how-to-create-an-os-x-lion-ins tallation-disc
    How to clone your system:
    http://macperformanceguide.com/Mac-HowToClone-backup.html
    http://macperformanceguide.com/Mac-HowToClone.html
    http://www.macupdate.com/app/mac/7032/carbon-copy-cloner
    http://www.macperformanceguide.com/blog/2012/20120711_2-MacPro-internal-clone-ba ckup.html

  • Design issue with the multiprovider

    Design issue with the multiprovider :
    I have the following problem when using my multiprovider.
    The data flow is like this. I have the info-objects IobjectA, IobjectB, IobjectCin my Cube.(Source for this data is s-systemA)
    And from another s-system I am also loading the masterdata for IobjectA
    Now I have created the multiprovider based on the cube and IobjectA.
    However, surprisingly join in not workign in multiprovider correctly.
    Scenario :
    Record from the Cube.
    IObjectA= 1AAA
    IObjectB = 2BBB
    IObjectC = 3CCC
    Records from IobjectA =1AAA.
    I expect the record should be like this :
    IObjectA : IObjectB: IObjectC
    1AAA       :2BBB       :3CCC
    However, I am getting the record like this:
    IObjectA : IObjectB: IObjectC
    1AAA       :2BBB       :3CCC
    1AAA         : #             :#
    In the Identification section I have selected both the entries for IobjectA still I am getting this error.
    My BW Version is 3.0B and the SP is 31.
    Thanks in advance for your suggestion.

    May be I was not clear enough in my first explanation, Let me try again to explain my scenario:
    My Expectation from Multi Provider is :
    IObjectA
    1AAA
    (From InfoObject)
    Union
    IObjectA     IObjectB     IObjectC
    1AAA     2BBB     3CCC
    (From Cube)
    The record in the multiprovider should be :
    IObjectA     IObjectB     IObjectC
    1AAA     2BBB     3CCC
    Because, this is what the Union says .. and the Definition of the multiprovider also says the same thing :
    http://help.sap.com/saphelp_bw30b/helpdata/EN/ad/6b023b6069d22ee10000000a11402f/frameset.htm
    Do you still think this is how the behaviour of the multiprovider.. if that is the case what would be the purpose of having an infoobject in the multiprovider.
    Thank you very much in advance for your responses.
    Best Regards.,
    Praveen.

  • I'm trying to connect to my home wifi with my imac gh5. After I enter the password it says connection timeout or password incorrect. I know there's no issue with the connection but I don't know what else to do. Does anyone know how to fix this problem?

    I'm trying to connect to my home wifi with my imac gh5. After I enter the password it says connection timeout or password incorrect. I know there's no issue with the connection but I don't know what else to do. Does anyone know how to fix this problem?

    What is the make & model of your home Wi-Fi router that you are attempting to connect your G5 iMac to? Which exact model of iMac do you have?
    What wireless security type is your router using: WEP, WPA, or WPA2? If you temporarily disable wireless security, can the iMac connect to it now?

  • Had to wipe my drive so I could do a clean install of snow leopard Now I look every where on how to move bookmarks, address book and I cal settings.  I have them back up on a external drive with Time machine but can not move, copy or restore my old sett d

    Had to wipe my drive so I could do a clean install of snow leopard.   Now I have look every where on how to move bookmarks, address book and I cal settings.  I have them back up on a external drive with Time machine but can not move, copy or restore my old settings.  The instructions I have found or no help or needs more clarafication on what to do.

    Use migration assistant to move your files.  http://support.apple.com/kb/HT4889

  • I restored my hard drive with time machine but when I log in I get "home folder protected by fire vault and needs to be repaired. But I can't get past the regular log

    I restored my hard drive with time machine but when I log in I get "home folder protected by fire vault and needs to be repaired. But I can't get past the regular log

    Maybe you might find some info to the right>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

  • Two methods with same name but different return type?

    Can I have two methods with same name but different return type in Java? I used to do this in C++ (method overloading or function overloading)
    Here is my code:
    import java.io.*;
    public class Test{
    public static void main(String ar[]){
    try{          
    //I give an invalid file name to throw IO error.
    File file = new File("c:/invalid file name becasue of spaces");
    FileWriter writer = new FileWriter(file ,true);
    writer.write("Test");
    writer.close();     
    } catch (IOException IOe){
         System.out.println("Failure");
    //call first method - displays stack trace on screen
         showerr(NPe);
    //call second method - returns stack trace as string
            String msg = showerr(NPe);
            System.out.println(msg);
    } // end of main
    public static void showerr(Exception e){
         StringWriter sw = new StringWriter();
         PrintWriter pw = new PrintWriter(sw);
         e.printStackTrace(pw);
         try{
         pw.close();
         sw.close();
         catch (IOException IOe){
         IOe.printStackTrace();     
         String stackTrace = sw.toString();
         System.out.println("Null Ptr\n" +  stackTrace );
    }//end of first showerr
    public static String showerr(Exception e){
         StringWriter sw = new StringWriter();
         PrintWriter pw = new PrintWriter(sw);
         e.printStackTrace(pw);
         try{
         pw.close();
         sw.close();
         catch (IOException IOe){
         IOe.printStackTrace();     
         return sw.toString();
    }//end of second showerr
    } // end of class
    [\code]

    Overloading is when you have multiple methods that have the same name and the same return type but take different parameters. See example
    public class Overloader {
         public String buildError(Exception e){
              java.util.Date now = new java.util.Date() ;
              java.text.DateFormat format = java.text.DateFormat.getInstance() ;
              StringBuffer buffer = new StringBuffer() ;
              buffer.append(format.format(now))
                   .append( " : " )
                   .append( e.getClass().getName() )
                   .append( " : " )
                   .append( e.getMessage() ) ;
              return buffer.toString() ;
         public String buildError(String msg){
              java.util.Date now = new java.util.Date() ;
              java.text.DateFormat format = java.text.DateFormat.getInstance() ;
              StringBuffer buffer = new StringBuffer() ;
              buffer.append(format.format(now))
                   .append( " : " )
                   .append( msg ) ;
              return buffer.toString() ;
         public String buildErrors(int errCount){
              java.util.Date now = new java.util.Date() ;
              java.text.DateFormat format = java.text.DateFormat.getInstance() ;
              StringBuffer buffer = new StringBuffer() ;
              buffer.append(format.format(now))
                   .append( " : " )
                   .append( "There have been " )
                   .append( errCount )
                   .append( " errors encountered.")  ;
              return buffer.toString() ;
    }Make sense ???
    Regards,

  • HT1553 i am upgrading my 2008 macbook to an ssd drive and want to save my settings. how do i save then? I have my files backed up with time machine ,but dont want to restore all files ,as there might be some junk backed up too. Help will be appretiated

    i am upgrading my 2008 macbook to an ssd drive and want to save my settings. how do i save then? I have my files backed up with time machine ,but dont want to restore all files ,as there might be some junk backed up too. Help will be appretiated

    When you restore from a Time Machine back up you can pick and chose what is restored. It is not an all or nothing process. Nor do you have to do the partial restores all at the same time. If days after the first partial restore you find something else you want you can restore just that.

  • Good evening, after upgrading Iphoto 9.5 a page opened requiring to upgrade my library. As it did not work out,for fear of losing all my pictures I  loaded Iphoto 9.4.3  with Time machine but I had lost quite a few photos. As a matter of fact, after searc

    Good evening,
    after upgrading Iphoto 9.5 a page opened requiring to upgrade my library. As it did not work out,for fear of losing all my pictures I  loaded Iphoto 9.4.3  with Time machine but I had lost quite a few photos. As a matter of fact, after searching , I found them In Photo library in 'images' on my hard drive. When I double click, 9.5 appears with all my pictures. Therefore, I would like to use 9.5 just by by clicking on the icon down my finder and  not by being obliged to open my hard drive.
    Would you please tell me what I should do. Thank you.
    Best regards,
    Robert

    Huh?
    As it did not work out,for fear of losing all my pictures I  loaded Iphoto 9.4.3  with Time machine but I had lost quite a few photos. As a matter of fact, after searching , I found them In Photo library in 'images' on my hard drive. When I double click, 9.5 appears with all my pictures.
    So, you have restored 9.4.3 from Time Machine but can see all your pictures in 9.5?
    Do you have two version of iPhoto on your Machine?
    And if you didn't update the Library, ("as it did not work out,") how can you see things in 9.5?
    So, whatever set up you have is confusing.

  • HT4623 I have issues with purchasing apps, but I can download free apps. Error telling me to contact apple?

    I have issues with purchasing apps, but I can download free apps. Error telling me to contact apple?

    Then contact iTunes support like the message said:
    Apple - Support - iTunes - Contact Us

  • Suppose I have two identical laptops loaded with my current time machine back up. I take one on a trip and update it with time machine but leave it. I come back w time machine HD and connect the home laptop, will it just update or start over from scratch?

    Suppose I have two identical laptops loaded with my current time machine back up. I take one on a trip and update it with time machine but leave it behind. I come back with the time machine HD and connect it to the home laptop, will it just update or start over from scratch? is there a way to make it just update it?

    You might have better luck using a clone.
    Clone  - Carbon Copy Cloner          (Often recommended as it has more features than some others)
    Clone – Data Backup
    Clone – Deja Vu
    Clone  - SuperDuper
    Clone - Synk
    Clone Software – 6 Applications Tested
    Commonly Used Backup Methods

Maybe you are looking for