How do I make a Type Def an Enumerated type?

Bare with me as this is my very first time using a Type Def
I tried following the tutorial at http://zone.ni.com/devzone/cda/tut/p/id/5318
The first one worked alright that was the Master Mode, but that was starting with a previously created control.
My first attempt at creating a new control did not go so well, see my Sys1 control.
How do I make the control an enumerated type so it names the cases for me when creating a new control? 
Message Edited by RTSLVU on 04-21-2009 09:55 AM
Attachments:
Sys1.ctl ‏5 KB

No one mentioned in this thread yet so I add...
That if you do a right-click replace then naviagte to a enum, the new enum will retain all of values and you don't have to re-enter them.
An extention of this idea is useful when creating an enum with a 100 values or more. Write code to populate a ring control with the required strings then after, dod the replac with thing.
Sure has saved me a lot of work.
Ben 
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction

Similar Messages

  • How do I make the type smaller for PDF's in iBook for my iPad Mini Retina Display IOS 7.4

    How do I resize the type in PDF's to make it smaller ? to read on my iPad mini. At the moment it looks like 20 point.

    I don't believe that you can decrease the font size for PDFs in iBooks.

  • How do I make Step Types in the Type palette be "master" versions which all sequence files on a particular should use? (since this only seems to "half work")

    The situation I would like is to have a library of step types which sequence developers can use. Therefore if new step types need to be added, or existing ones modified - all that needs to be done is to roll out a new MyTypes.ini (for example), and the code modules/substeps.
    Scenarios:
    If I create types in MyTypes.ini (make sure "Attach to this file" is checked, so they get saved here). I can then create a sequence file using these step types. No problem so far.
    I can open the type palette, modify the step properties, and save. When I go back to my sequence file an asterisk appears (saying it needs to be saved, even if I have opened it from scratch). The properties have been updated to reflect what is in the Type Palette. Still no problem (Type versions are the same in the sequence file and type palette).
    This is where the problem appears:
    If I change a step type (in the Type Palette) from using a code module to using a Post-Step substep instead (changing the module adaptor to "None") - any instances do NOT update when you open sequence files. (The same happens vice versa also).
    Please note that the "Type version" listed in the sequence file DOES match that listed in the Type Palette - the properties are the same but the manner in which the code modules are called is DIFFERENT! This then can lead to to runtime errors if the old code module has been deleted for example.
    The only way around this is to open EVERY sequence file that contains an instance of the step type, and make sure that you have "Apply changes to all loaded instances of this type" checked in the step type properties dialog. This is is not a good solution since files could be missed, and is very time consuming if you have hundreds of sequence files!
    What I need is that the Type Palette on any particular station contains the MASTER copies of each type. These are loaded whenever a sequence file is loaded and NOT retreived from the sequence file. As discussed above this seems to work when you modify properties - but doesnt work fine if you change the way in which code modules are called.
    Am I doing something wrong or is this a limitation?

    I had a system recently containing seven sequence files, approx 20 subsequences in each, and around 10-20 steps in each sub-sequence. Every step (except for the NI non-code module types) was an instance of a step type.
    Each one of these steps had an Edit sub-step and a code module called through the code module adapter.
    In order to make these into "wrapped up" step types it was decided to move the code module to a Post-Step substep (as also done in the NI-IVI step types) - so that developers cannot fiddle with the code prototype or module.
    In order to do this I had to open all 7 of the sequence files, make the changes and then ensure that "Apply changes in this dialog to a loaded instances" was checked. This seems to sort of work, but some steps started causing Error 17502 (System Error) when you configure them (call the Edit substep). Over the course of the past few months I have had to effectively check every instance of a type to see if it works (deleting the step and replacing it when it doesnt). Other strange things happened like some of the step type instances now have the "None" (adapter) icon associated with them - but both still work.
    The idea of creating a type-def of a step type is a good one, but frustrating that it doesnt seem to fully work. Why should the sequence file also store a version of the step-type - which is what is effectively causing this problem - why not make it so that if you dont have the step types installed in the type palette - TOUGH! Message Edited by RichM on 03-15-2005 06:55 AM

  • How do you make this type of grid?

    This is a very very very simple question, I was wondering how you would lay a grid flat back like this:
    http://cbu2029.deviantart.com/art/Cyberpunk-City-61614863
    I have the grid made, with tthe grid tool. I tried shear tool and that doesn't seem to get me there and I tried the free distort tool but that does not make it precise.
    I know there is some way to grab the top two corners and pull them down and in closer but I am drawing a blank on what it is right now, please help if you can.

    Simply apply the group to a perspective grid or create a warp with a simple rectangle as the envelope.
    Mylenium

  • How do you make Robot type out a variable String?

    I don't know why I'm having an issue with this. I want the Robot class to type out a string one character at a time as if I were sitting at the keyboard and doing it myself. There will be many, variable strings to type. Here is what I tried to do and it fails miserably:
    private String myString = "example";
    // Loop for each character in the string
    for(int i=0; i<numChars; i++)
         // Get the current character
         myChar = myString.charAt(i);
         // Convert the character to a keycode
         myKC = (int)myChar;
         // Press the key, release the key
         myRobot.keyPress(myKC);
         myRobot.delay(10);
         myRobot.keyRelease(myKC);
    }When I run it, I get some unexpected output in the Notepad window I have open. Instead of it spelling out "example", it gives me something entirely different:
    e - instead of 'e', it gives me a '5'
    x - instead of 'x', it gives me nothing at all
    a - instead of 'a', it gives me a '1'
    m - instead of 'm', it gives me a '-'
    p - instead of 'p', 'F1' is triggered and the Notepad help window pops open
    l - instead of 'l', it gives me nothing at all
    e - instead of 'e', it gives me another '5'
    What am I doing wrong here? This was supposed to be easy...
    Edited by: ConQuesimo on Jan 19, 2010 12:06 AM

    ConQuesimo wrote:
         // Convert the character to a keycode
         myKC = (int)myChar;
    I don't see a keycode conversion here, keycodes for a to z are the same as ASCII, what I do see is an int conversion of what ever character set you have running on your computer. If I take your approach to conversion, then I get different codes on different keyboards/systems also. What I finally ended up doing is making a map for my keys and everything started working fine.
    For me, the problem expressed itself when I went from my Windows with MS-Keyboad to my Ubuntu with an earlier style MS-Keyboad. Character values and single character strings come out fine, but when I would try converting char to KeyCode as you have done, the results were not always what was desired. I've not looked into it to see what was actually causing the problem, ti was faster and easier just to make the map.

  • In pages how do you make or type a degree symbol?

    We are trying to type up a report for my son and he wants to state a temprature using the numbers and a degree charchter however we do no see how to do this.

    I thought it was odd you asking that question but now that I re-read it, I see I skipped over the actual question (though I'm not 100% certain it was a real question) and answered a statement. In my defense, sometimes people "ask" questions that way.
    I preface my responses with statements like "On the US keyboard", "In the US iTunes store" or whatever  when there is some indication that the person asking is from outside the US and it might affect the answer. That didn't seem to be the case here.
    Option Shift 8 is for the US keyboard.  It might apply to other keyboard layouts as well.

  • How can I make this type of mask

    Hey everybody,
    I came across this web site,
    http://www.rusticpathways.com/,
    and I like the way the main image loads. I appears to me as if
    there's a mask being applied, and in spite of trying several
    different approaches I've finding it difficult arriving at
    something that resembles this.
    If I understand Flash correctly you can link several masked
    layers to one mask layer, but the mask(s) themselves have to share
    the same layer. If all of these small masks are on the same layer
    how is that best achieved?
    Thanks for whatever help you can provide.
    Regards,
    Mark

    Well markgcarr, I was able to recreat this in a simple
    timeline in just a few min. using several tweened mask MC's in a
    single MC.
    http://www.bentleygrafix.com/jeramy/Blerb.html
    Wow didnt see until just now the date. Well if your still
    interested in the .fla
    [email protected]

  • I inadvertently used Caps lock. How do I make the type lower case?

    This may have been answered before, and if so I apologize.
    I tried the search forum function without success, and I tried Pages help without success.
    I do not want to retype it.
    Thanks

    This doesn't come built-in to Pages, but you can add this capability easily -- download the hugely useful WordServices from Devon, which, when installed, will put a "Convert" menu option into the "Services" menu (under the Pages menu).
    The system-wide Services menu is one of the extremely powerful yet woefully underused aspects of OS X.

  • How to make valuation type field not changeable  in delivery tab of PO

    Hai friends,
                    I am new to badis..please guide me to solve the issue...
    how to make valuation type field not changeable  in delivery tab of PO...
    The field shd be in display mode only ...actually...there  a badi has been used before
    to get valuation type from a ztable depending on material and plant...
    Now ..my requirement is that the user shd not change the default value brought from the ztable...

    Hi SRINIVAS,
    You can achieve this from BADI only if BADI is allows you to do this. You cannot achieve everything from a BADI. Check if there is any expoting field in the methods that can be ticked for making the field in display mode. If not then you cannot achieve this from BADI.
    The field you want to default to display is a standard or zfield. If z, then you can changethe attribute of the screen field to Output only.
    Regards,
    Manish

  • How can I make what a user types in text entry box go to the lms?

    Hi,
    I have a couple text entry boxes for non-scored short answer responseses---more of a reflective exercise than anything else.
    However, I'd like the text the learner types to be recorded by the LMS.
    How do I make that happen if it is not an actual assessment?
    thanks

    Each TEB gets automatically an associated variable with a generic name that is the same as the TEB (I always recommend choosing a more appropriate name). Lookin the General Accordion, you'll see the Variable field.
    Do you want more explanation about variables?
    http://blog.lilybiri.com/curious-about-variables-in-captivate-4-5
    http://blog.lilybiri.com/unleash-the-power-of-variables-in-captivate-5
    Those are old posts, but whereas some system variables have changed names, the principles of the posts are still valid.
    Lilybiri

  • How do you make imessage work? The icon is there. You can type in the recipient but are not allowed to hit the send button

    How do you make imessage work? We upgraded to verision5. The icon is there. You can type the message but the send button is not available.

    There is some instability in  iMessage.  It is a versatile and confusing app even though there are so few options in its use. 
    I had issues trying to get iMessage work on both my iPads and my iPhone. 
    ON the iPhone, turning off WiFi service and then trying iMessage fixed the problem.
    On the iPad 2, same thing.  Turning off WiFi service fixed it.
    On the iPad 1, I took a suggestion from zoomzoom and changed the WiFi network configuration on the iPad to use 8.8.8.8 as a DNS server and then use iMessage.  That fixed it.   Now I put the DNS back to default and it still works.
    I suspect the iPod Touch will have the same fix as the iPad.
    If you have a WiFi and 3G iPad or iPhone, try turing off WiFi and see if that fixes it. 
    Why?  (beware, some of this is guesswork)
    iMessage can talk SMS to cellphones and smartphones (that are using the cell-network).  It can also talk Apple iMessage format to iPhones and iPads whether they are on cell-network or on WiFi.  If you are talking to an SMS cellphone, iMessage figures that out and blindly sends your message.  If you are talking to a iOS5 device, iMessage figures that out too, checks to see that they are on-line, and then does something different if they are or are not on-line.  If you type in an email address, and not a phone number, I think iMessage attempts to see if the email address is registered with Apple (or iCloud or whatever) and if it is not, it does something to let you know, possibly by making the Send button not light up. 
    In order to register iMessage and an email, you have to let the iOS device see whatever service it is that iMessage uses.  That is where the problem happenes.  zoomzoom suggested manually setting the WiFi DNS to google's 8.8.8.8 IP address, then run IMessage, and that seemed to fix the problem.  Setting the iOS device to use 3G-only (by turning off WiFi) also fixed the problem.  I suspect going down to StarBucks or McDonalds and using their WiFi would also fix the problem.  Once the problem is fixed, it doesn't seem to come back so I can't test these 'fixes'. 
    To change the DNS on your iPad find your WiFi networks configuration, click on the blue arrow, touch DNS, backspace over the number that is shown, type in 8.8.8.8    Then click on the WiFiNetworks button at the top of the screen.  Now go run iMessage.  After that, you can delete the DNS entry again and leave it blank.  Your iPad will fill it in from the WiFi router when it needs it.

  • How do I make fire fox open a new tab when I type in the search bar and press enter?

    Hi,
    I know I have found this solution before, but can't find it again. Please help?
    In FF 27.0.1, when I put the cursor in the search bar, type words and hit enter, it starts the search in the current tab. How do I make FF always start the search in a new tab when I hit enter from the search bar?
    Thanks!
    G

    Hello,
    Go to '''about:config''' search for '''browser.search.openintab''' change its value to '''true'''
    *[http://kb.mozillazine.org/About:config about:config]

  • TS2755 Is there a fix to deleting already deleted address book contact, from messages search? i.e. when you type in say letter c in messages search, all contact with a c, past already deleted and current all appear?  How do you make the old deleted ones a

    Is there a fix to deleting already deleted address book contact, from messages search? i.e. when you type in say letter c in messages search, all contact with a c, past already deleted and current all appear?  How do you make the old deleted ones appear?

    only way is to restore the phone as new.  OR wait until IOS 7 comes out in the fall.

  • HT2509 I have installed a font from the internet into Font Book and saved it in my Fonts folder under my user library. How can I make it available in Word to type a document?

    I have installed a font from the internet into Font Book and saved it in my Fonts folder under my user library. How can I make it available in Word to type a document?

    Font Management in OS X

  • When I attempt to drag doc to trash "Finder wants to make changes" "Type your password to allow this"  When I do this the doc is immediately deleted.  How do I turn this off?

    When I attempt to drag doc to trash "Finder wants to make changes" "Type your password to allow this"  When I do this the doc is immediately deleted.  How do I turn this off?

    Please take these steps if you're prompted for a password when moving items in your home folder to the Trash.
    1. Triple-click anywhere in the line below on this page to select it:
    ~/.Trash  
    2. Right-click or control-click the highlighted line and select
    Services ▹ Show Info
    from the contextual menu.* An Info dialog should open.
    3. The dialog should show "You can read and write" in the Sharing & Permissions section. If that's not what it shows, click the padlock icon in the lower right corner of the window and enter your password when prompted. Use the plus- and minus-sign buttons to give yourself Read & Write access and "everyone" No Access. Delete any other entries in the access list.
    4. In the General section, uncheck the box marked Locked if it's checked.
    5. From the action menu (gear icon) at the bottom of the dialog, select Apply to enclosed items and confirm.
    6. Close the Info window and test.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard (command-C). Open a TextEdit window and paste into it (command-V). Select the line you just pasted and continue as above.

Maybe you are looking for

  • TV@Plus Poor Video Quality

    Ok might as well give it another shot before I sell this card on ebay, I was wondering what drivers do people use for the TV@nywhere Plus? I'm using the latest 2.4.0.4 drivers from MSI but my video looks very grainy from my NTSC cable feed, which loo

  • Lync 2010 client and SRV record

    When Lync 2010 was originally set up in our environment, we included our login domain which is a .local as a SIP domain but everyone uses our additional SIP domain which is a .org. In our internal DNS, we have SRV records under both domains. Question

  • Safari 3.2 Crashes - possible solution

    Safari 3.2 was constantly crashing. I found a suggestion in another thread to uncheck the "Warn when visiting a fraudulent website" checkbox in the Safari Security Preferences. Safari hasn't crashed since I unchecked the box. I do not use third party

  • Tracking down culprit file

    I have a problem, already posted in the GB and SL forums here, concerning a missing Glossary in GB '11 in the Admin account on my iMac. The Glossary is available, though, in a new User account I created specifically as part of my troubleshooting. I'm

  • Multiple instances of same component become non-editable

    I have created a simple component for authors to add links. They enter anchor text, link destination, title attribute, via textfield. They set the target attribute via a dropdown list, xtype=selection. The issue we run into, is that if the author has