How to change the switch case sub - VI for the Subvi all calls

Hello

to make the code more elegant and more reasonable, I source code, often called a Subvi. The Subvi is a box structure. If I add new cases of this Subvi thereafter, I must renew all selectors of Enum for the Subvi handmade calls. It's really annoying.

Is it possible to pair the picker to the slot - VI for a change in the number of cases will affect all selectors automatically?

Best regards

Carsten

Thank you very much. It works just perfect.

Carsten

Tags: NI Software

Similar Questions

  • On Apple Watch, how to change the time when traveling to a different country, like London or Singapore?

    For Apple Watch, can someone please show me how to change the time on my watch when I travel to another country, like London or Singapore? Thank you.

    Hello

    When traveling to a different time zone, it is not necessary to manually change the time on Apple Watch.

    After turning off the flight on each of your iPhone and Apple Watch, the time on your watch can be updated automatically to reflect the local time.

    If it is not the case, try restarting your watch:

    -To switch off your watch: press and hold the button side until you see the cursor off the power; slide it to turn off.

    -To reactivate: press and hold the side button until you see the Apple logo.

  • How to change the ascii mode in dreamweaver?

    How to change the ascii mode in dreamweaver?

    Dreamweaver should automatically switch to ASCII as you can see from the following FTPExtensionMap.txt content

    In case you want to check your FTPExtensionMap.txt file, it can be found in the Configuration file according to the Dreamweaver crashes at startup

  • How to change the angle of a gradient layer without changing anything else?

    How to change the angle of a gradient layer without changing anything else?

    When I try it myself my gradient everything turns black.

    To add to the above, you can just set the angle. If you want to use other existing parameters, you need to get from the layer. The code in this other thread shows a way to get them.

    But if you do not have the values for any other reason, you can get the handle to the layer, make a duplicate of it with all the settings and just crush those you want to change.

    It is a way to just change the angle while keeping the other existing settings.

    // helper function for working with descriptors
    function getProperty( psClass, psKey, index ){// integer:Class, integer:key
        var ref = new ActionReference();
        if( psKey != undefined ) ref.putProperty( charIDToTypeID( "Prpr" ), psKey );
        if(index != undefined ){
            ref.putIndex( psClass, index );
        }else{
            ref.putEnumerated( psClass , charIDToTypeID( "Ordn" ), charIDToTypeID( "Trgt" ) );
        }
        try{
            var desc = executeActionGet(ref);
        }catch(e){ return; }// return on error
        if(desc.count == 0) return;// return undefined if property doesn't exists
        var dataType = desc.getType(psKey);
        switch(dataType){// not all types supported - returns undefined if not supported
            case DescValueType.INTEGERTYPE:
                return desc.getInteger(psKey);
                break;
            case DescValueType.ALIASTYPE:
                return desc.getPath(psKey);
                break;
            case DescValueType.BOOLEANTYPE:
                return desc.getBoolean(psKey);
                break;
            case DescValueType.BOOLEANTYPE:
                return desc.getBoolean(psKey);
                break;
            case DescValueType.UNITDOUBLE:
                return desc.getUnitDoubleValue(psKey);
                break;
            case DescValueType.STRINGTYPE:
                return desc.getString(psKey);
                break;
            case  DescValueType.OBJECTTYPE:
                return desc.getObjectValue(psKey);
                break;
            case  DescValueType.LISTTYPE:
                return desc.getList(psKey);
                break;
            case  DescValueType.ENUMERATEDTYPE:
                return desc.getEnumerationValue(psKey);
                break;
        }
    };
    function duplicateDescriptor( descriptor ) {
        var newDescriptor = new ActionDescriptor;
        newDescriptor.fromStream( descriptor.toStream() );
        return newDescriptor;
    };
    function localizeDescriptor( desc ) {
        var stream, pointer, zStringLength, zstring, localized_string, newZStringLength, previousStream, followingStream, newDesc;
        stream = desc.toStream();
        while( true ) {
            pointer = stream.search(/TEXT....\x00\$\x00\$\x00\$/);
            if( pointer === -1 ) {
                break;
            }
            zStringLength = getLongFromStream( stream, pointer + 4 );
            zstring = readUnicode( stream.substr( pointer + 8, ( zStringLength - 1 ) * 2) );
            localized_string = ( localize( zstring ) ) + '\u0000';
            newZStringLength = localized_string.length;
            previousStream = stream.slice( 0, pointer);
            followingStream = stream.slice( pointer + 8 + zStringLength * 2);
            stream = previousStream.concat( 'TEXT', longToString( newZStringLength ), bytesToUnicode( localized_string ), followingStream );
        }
        newDesc = new ActionDescriptor();
        newDesc.fromStream( stream );
        return newDesc;
    };
    function getShortFromStream( stream, pointer ) {
        var hi, low;
        hi = stream.charCodeAt( pointer ) << 8 ;
        low = stream.charCodeAt( pointer + 1 );
        return hi + low;
     };
    function getLongFromStream( stream, pointer ) {
        var hi, low;
        hi = getShortFromStream( stream, pointer) << 16;
        low = getShortFromStream( stream, pointer + 2);
        return hi + low;
    };
    function readUnicode( unicode ) {
        var string = "";
        for( i = pointer = 0; pointer < unicode.length; i = pointer += 2) {
            string +=String.fromCharCode( getShortFromStream( unicode, pointer ) );
        }
        return string;
    };
    function longToString( longInteger ) {
        var string;
        string = String.fromCharCode( longInteger >>> 24 );
        string += String.fromCharCode( longInteger << 8 >>> 24 );
        string += String.fromCharCode( longInteger << 16 >>> 24 );
        string += String.fromCharCode( longInteger << 24 >>> 24 );
        return string;
    };
    function bytesToUnicode( bytes ) {
        var unicode = "", char_code, charIndex;
        for( charIndex  = 0; charIndex < bytes.length; charIndex ++ ) {
            char_code = bytes.charCodeAt( charIndex );
            unicode += String.fromCharCode(char_code >> 8 ) +  String.fromCharCode( char_code & 0xff );
        }
        return unicode;
    };
    
    function setGradientAdjustmentAngle( angle ) {
        var adjustmentDesc = getProperty( charIDToTypeID("Lyr "), charIDToTypeID( 'Adjs' ) ).getObjectValue(0);
        var newAdjustmentDesc = duplicateDescriptor( adjustmentDesc );
        newAdjustmentDesc.putUnitDouble( charIDToTypeID('Angl'), charIDToTypeID('#Ang'), angle );
    
        var desc = new ActionDescriptor();
            var ref = new ActionReference();
            ref.putEnumerated( stringIDToTypeID('contentLayer'), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
        desc.putReference( charIDToTypeID('null'), ref );
        desc.putObject( charIDToTypeID('T   '), stringIDToTypeID('gradientLayer'), newAdjustmentDesc);
        executeAction( charIDToTypeID('setd'), desc, DialogModes.NO );
    };
    var newAngle = 45;
    setGradientAdjustmentAngle( newAngle );
    
  • How to change the iPhone camera shutter sound 7

    How to change the iPhone camera shutter sound 7?

    Hello

    To adjust the volume of the sound of the camera shutter:

    • Use the settings ringer and alerts:
      • On iPhone 7 and iPhone 7 more, go to: settings > sounds and haptic.
      • (Other models, go to settings > sounds).
    • Or turn mute off / on using the switch on the side of your iPhone's ring/silent.
      • (The mute function is disabled in some countries).
  • How to change the color of pre-rendered screen.

    My question is how to change the color of the page that is displayed before a site is fully charged. So let's say I go to a site where the background color is red. Before the end of Firefox loading it will appear as white. Also yes I have known that I have an add-on which changes the default color of YouTube. However the first picture comes on all websites no matter if their background is white or not.

    You can try the userChrome.css code or elegant.

    Add code to the file userChrome.css below default @namespace.

    @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    
    browser {background-color:#f0f0f0!important}
    

    The file userChrome.css (UI) customization and userContent.css (Web sites) are located in the folder of chrome in the Firefox profile folder.

    You can use this button to go to the current Firefox profile folder:

    • Create the folder chrome (lowercase) in the .default < xxxxxxxx > profile folder if the folder does not exist
    • Use a text editor like Notepad to create a userChrome.css (new) file in the folder chrome (file name is case sensitive)
    • Paste the code in the userChrome.css file in the Editor window
    • Make sure that the userChrome.css file starts with the default @namespace line
    • Make sure that you select "All files" and not "text files" when you save the file via "save file as" in the text editor as userChrome.css.
      Otherwise, Windows can add a hidden .txt file extension and you end up with one does not not userChrome.css.txt file
  • Spam: how to change the list of junk e-mail in iPad

    How to change the list of junk e-mail in iPad

    If your question is about - how to indicate whether or not an e-mail is sent to the junk e-mail folder-

    Your best bet would be to do it on the web portal of the email provider (e.g. for Yahoo it would mail.yahoo.com)

    There is usually a button or switch to designate mail "Junk" or "not junk".

    If your question is rather modify the list itself

    Mailbox - junk e-mail - Edit button is at the top right

  • Satellite U400 - 15G - overheating-how to change the cooling module?

    Hello

    My Satellite U400 15 G is overheating (CPU up to 70 ° c). NEITER in Google nor in the manual, I can find a statement, how to open and change the cooling module. (I'm only trying to change mine, because garranty is already gone)

    Does anyone know how to open the laptop/notebook and how to change the cooling module?

    Thanks in advance

    Post edited by: bla42

    Before you continue just a matter of discussion:
    Let's say I help you with this and damage you something or broke a plastic part, what you will do in this case?
    I mean you probably know that you can get a few small important parts as separate components.

    By the way: this description may be provided in the manual. Disassembly of the laptop is authorized personal only. When you buy a new car it is no description how to disassemble the entire engine, right?

    By the way: Jeanine's right. See this page. There are many useful tips on laptop disassembly procedure.

  • How to change the keyboard on Portege M300-101?

    Hello

    I have a Portege M300-101, and I would like to know if there are instructions online for how to change the keyboard itself. Our unit comes with, I think, a Belgian keyboard installed... and a U.S. keyboard in the box. Are there instructions available for how to move on the keyboards? Also, I guess it's a good idea to switch the keyboard before turning on the laptop for the first time. Do you agree?

    Best,
    Dainis W. Michel

    Hello Danis

    Unfortunately there is no public document on this subject. You can try to do it alone, but please don t forget that on this guarantee valid path will be cancelled. Basically, the replacement of keyboard is not well complicated and technicians may need 15 minutes to do.

    In my opinion, you can take a risk and pay for replacement before losing the valid guarantee. The Portege is very expensive and of damage to property, it is very risky to be unsecured.

    If you still think that you do not write anything again.

  • Office jet Pro 8600: how to change the folder for the scans on my Apple?

    Hi, I want to know how to change the destination for my scans folder when I scan from the printer.  Currently, the scans go to "documents", and I want him to be in a business case.  Clues?  I tried to watch some instructions on the previous posts, but it seems that they are for windows.

    Thanks for the help!

    Hi @jgossc,

    I'd be happy to help you change your scan destination. I understand that when you scan your Officejet Pro 8600 to your Mac, the file analysis is currently underway to your documents and want to let them instead to a business case.

    To change the destination please follow the steps below and let me know the results of your efforts:

    • Open HP utility
    • Select Scan to the computer
    • Click Scan tasks to change
    • Choose a shortcut to scan
    • Select Edition
    • In the options listed here, you should see scan destination

    If this resolves the issue, please click Accept as Solution button below; If not, let me know and I will do everything I can to help. Thank you.

  • Yoga Tablet 2-1050 - how to change the fonts

    Hello

    Just bought my compressed Yoga 2-1050 and really like it. Updated to Android 5.0, and everything works great.

    A question, however: does anyone know how to change the font (not font size) on my device not rooted?

    Thank you!

    You can't change the fonts by default on an android device, except if the option has been enabled by the devs - in which case, it will be somewhere in the menu "settings".

    However, there are two workarounds:

    1. install another Launcher to game Google store. Different allow different settings such as the layouts of different menu, different fonts, Widgets, etc.

    2. the only other option is to root your device that belongs entirely to the user & one I wouldn't recommend it unless you know what you are doing and accept the fact that it is very easy to brick your device.
    You'll also voiding the warranty (dependent on country) Although some manufacturers are pretty lax on this and can do a RMA number.

    This is pretty much your only options in its current version.

  • How to change the default font size in Word pad

    How to change the font and size of the default settings in wordpad?

    Thank you

    You can change the font and size and then save it as a template - ex: default.wri

    Navigate to this file and make it read-only. Create a shortcut to it and use it as WordPad in the future.

    It will always come back with the font settings that you put, but you will need to save it under a new name every time (you usually do in any case).

    There is no other way to keep the settings of fonts in WordPad.

  • How to change the size of icons and windows

    original title: oversized windows and icons

    im stuck in something I don't know how to change, all my windows and icons are so big they tend to adapt to the screen and I know its something simple to fix but I can not find it ive tried all the display options and disabilities can't just can someone help me please

    Hello

     

    ·         Were there recent changes made on the computer before the show?

     

    Follow these steps and check if that helps:

     

    Step 1:

     

    (a) click on the tab "Start" then go to control panel. In the upper left corner, click 'Switch to Classic view'-, it will take only a few seconds until Windows in Classic view. In Classic view, you will see all of the icons that are currently on your desktop.

    (b) go to 'View' and the display properties box opens. On the appearance tab, press the 'Effects', uncheck 'Use large icons'. Press the OK button, and then click OK again in the display properties box. The icons will appear normal on your desktop.

     

     

    Step 2:

    (a) right click on your mouse and scroll down to "Properties". The display properties box will be pop up, so go to the appearance tab then click the "Advanced" button and look for "Item.

    (b) scroll to the bottom of the box and select "icon". Go to the 'size' change the default size, 32, for your icon. Press the button 'Apply' then 'OK '.

     

    See also:

     

    How to change the appearance of items on the desktop in Windows XP

    http://support.Microsoft.com/kb/310543

    Step 3:

    If the problem persists, update the latest graphics card drivers on the manufacturer's Web site and check if it helps.

    How to manage devices in Windows XP

  • How to change the programs that load when Windows starts

    In simple terms... How to change the programs that load when Windows starts?  Because my boot time is slow in arriving at my login screen!

    Download and run the "Autoruns" from Microsoft Sysinternals freeware:

    < http://technet.microsoft.com/en-us/sysinternals/bb963902="">

    It lists all programs that start at startup and allows you to disable it by simply removing a check mark.  This makes it easy to reverse in case something goes wrong.

    HTH,
    JW

  • How to change the extensions on several files with Windows 7?

    * Original title: Extentions

    How to change the extensions on several files with Windows 7?

    You hear no doubt, is that your movie software will only recognize certain types of image file formats.  If this is the case, you will need to reformat format files to any format PNG is recognizable by the software.

    Rather than we guess, please identify your «film» software

    Download and install IrfanView, which is a free utility for images.  http://www.IrfanView.com/

    IrfanView has the ability to read a great many formats of image files.  It can also convert image files formats.  And even better - for you - it can do all these things on a batch of files.

    As test, after I installed IrfanView, open one of your PNG files.  Now click on file > save as, and select the 'Save as Type' to be little matter the file type of your movie software will accept.  Save the file.  Make sure your movie software can accept the new file.

    Once you are convinced that you can modify files that you have in a format that you can use, use IrfanView

    File > Batch Conversion/Rename command.  If necessary, see IrfanView help on this topic.

Maybe you are looking for