How to set a string input to accept only 1 and 0 (binary data)

Hi
I want to write a program that is supposed to take only binary data from the user. So I put a string control onto the front panel, wanting the user to be able to only type 1 or 0 in it. Is there a way to do that?
Thanks

Jean-Pierre Drolet wrote:
Another slight flaw is that the string accepts Enter for a new line. It is easily fixed by setting it to "Limit to single line".
True, it allows any non-ASCII through. Another solution would be to use some logical combination of VKey and Char, but it could get complicated. One of the simpler ways is the use of scancode and shift, as in the attached modification. Now ENTER, etc. is also discarded.
I also agree that none of this seems appropriate to enter 4000 "0/1" characters on a fromt panel.
LabVIEW Champion . Do more with less code and in less time .
Attachments:
BinaryStringControl_III.vi ‏24 KB

Similar Messages

  • How to set "Allow external users who accept sharing invitations and sign in as authenticated users" programmatically?

    Sharepoint 2013 online/office 365.
    I am creating site collection programmatically using sharepoint Auto hosted app.
    Now i want to set "Allow external users who accept sharing invitations and sign in as authenticated users" programmatically after site collection creation.
    Is it possible through code? If yes please let me know how to do it?
    Najitha Sidhik

    For SharePoint 2013 Online, check below links:
    http://office.microsoft.com/en-us/office365-sharepoint-online-small-business-help/manage-sharing-with-external-users-HA102849862.aspx
    http://office.microsoft.com/en-us/office365-sharepoint-online-enterprise-help/manage-external-sharing-for-your-sharepoint-online-environment-HA102849864.aspx
    https://www.nothingbutsharepoint.com/sites/eusp/Pages/SharePoint-Online-2013-Sharing-with-External-Users.aspx
    http://blogs.office.com/2013/11/21/sharepoint-online-improves-external-sharing/
    Please ensure that you mark a question as Answered once you receive a satisfactory response.

  • How to set the table input in Query template?

    Hi all.
    I need to call a Bapi_objcl_change, with import parameter and a table as an input. I have done this, in BLS. I have set the table input in the
    form of xml. In BLS, I get the output(the value gets change in SAP R3, what i have given in BLS).  But if i set the same xml structure  in
    query template, I didn't get the output. Table input parameter does not take that xml source.  How to set the table input in Query template?
    can anyone help me?
    Regards,
    Hemalatha

    Hema,
    You probably need to XML encode the data so that it will pass properly and then xmldecode() it to set the BAPI input value.
    Sam

  • I am having email problems with the new Lion.  stmp, imap, etc. I have looked up google info and It is confusing when it comes to TS, SSL also, please explain how to set it up so my email goes out and comes in securely.  Help

    I am having email problems with the new Mountain Lion.  stmp, imap, etc. I have looked up google info and It is confusing when it comes to TS, SSL also, please explain how to set it up so my email goes out and comes in securely.  Help
    Incoming Mail (IMAP) Server - requires SSL:
    imap.gmail.com
    Use SSL: Yes
    Port: 993
    Outgoing Mail (SMTP) Server - requires TLS:
    smtp.gmail.com (use authentication)
    Use Authentication: Yes
    Use STARTTLS: Yes (some clients call this SSL)
    Port: 465 or 587
    Account Name:
    your full email address (including @gmail.com) Google Apps users, please enter username@your_domain.com
    Email Address:
    your full Gmail email address ([email protected]) Google Apps users, please enter username@your_domain.com
    Password:
    your Gmail password
    The Quick Answer
    Follow the instructions below to set up IMAP1 access in most email clients.
    Google Apps users, please follow the default instructions unless otherwise noted, replacing 'your_domain.com' with your actual domain2 name.
    this is all greek to me. WHAT IS STARTTLS? On the first page of Apple set up there is a TLS certificate and it is marked NONE- should I change it to the long APPLE CERT option?  The next page under ADVANCED: THERE IS A BOX SSL MARKED.  Then IMAP Path Prefix - I put stmp.gmail.com.. is that right?  Port 993 can  use this one? as 456 doesn't work and 587 said it wasn't safe.  Under AUTHENTICATION I used PASSWORD.  Should I have used external client cert TLS?
    Please help me set this up securely. Thanks

    Apple - Support - Mail Setup Assistant

  • How to set security group as primary site collection admin and secondary site collection admin using powershell in sharepoint online site - office 365?

    How to set security group as primary site collection admin and secondary site collection admin using powershell in sharepoint online site - office 365?

    Hi,
    According to your description, my understanding is that you want to set security group as admin of primary and secondary site collection using PowerShell command in office 365.
    I suggest you can use the command below to set the group to site owner, then it will have the site collection admin permission.
    Set-SPOSite -Identity https://contoso.sharepoint.com/sites/site1 -Owner [email protected] -NoWait
    Here are some detailed articles for your reference:
    https://technet.microsoft.com/en-us/library/fp161394(v=office.15)
    http://blogs.realdolmen.com/experts/2013/08/16/managing-sharepoint-online-with-powershell/
    Thanks
    Best Regards
    Jerry Guo
    TechNet Community Support

  • How to set MM02 should not allow to change account and costing view

    Hi all guru's
    How to set MM02 should not allow to change account and costing view details for orher users expect me,plz help me
    thanks
    ramesh

    Hi Ramesh,
                       Use the Authorization Object:  M_MATE_STA     Material Master: Maintenance Statuses
    Below are the Views for the MM02, Field STATM
    Whichever not wanted to be changed, please dont provide them.
    A     Work scheduling
    B     Accounting
    C     Classification
    D     MRP
    E     Purchasing
    F     Production resources/tools
    G     Costing
    K     Basic data
    L     Storage
    P     Forecasting
    Q     Quality management
    S     Warehouse management
    V     Sales
    X     Plant stocks
    Z     Storage location stocks
    Regards,
    Yawar Khan
    Edited by: 1234_abcd on Jan 10, 2012 8:14 AM

  • How to set up Yosemite 10.10.1 to print and scan using CANON PIXMA MP780 (on MacBook Pro). Thanks. Bozdogan

    How to set up Yosemite 10.10.1 to print and scan using CANON PIXMA MP780 on MacBook Pro (Pre-Yosemite operating system OS X10.6.8)?
    Yosemite 10.10.1 doesn't seem to support MP780. Also, CANON doesn't have a driver for Yosemite 10.10.1 for its MP 780 series.
    Thanks. Bozdogan  (at [email protected])

    I believe you should be able to print wirelessly using your MBP and printer. However, you will want to visit the Canon home site and download the current drivers and firmware for your printer. Once you've done this, I hope you'll post back with your results.
    http://usa.canon.com/cusa/support/consumer/printers_multifunction/pixma_mp_serie s/pixma_mp780#DriversAndSoftware
    http://usa.canon.com/cusa/support/consumer/printers_multifunction/pixma_mp_serie s/pixma_mp780?pageKeyCode=prdAdvDetail&docId=0901e0248039b1dc
    You're going to need both drivers and firmware.

  • TS4002 I have opened iCloud from setting on my iPhone, it accepts the user and pwd  but then freezes at the terms & conditions page

    I have opened iCloud from setting on my iPhone, it accepts the user and pwd  but then freezes at the terms & conditions page

    Try deleting the account, then signing back in.

  • How to cast a String input into Date variable?

    I am using JOptionPane.showInputDialog to ask user for a date input. This will be read in as a String. I need to pass it to a variable call date. And when I print date using JOptionPane, it should be shown as whatever the user keyed in in this format: 25/2/09. How do I do it?

    By the way, that's not casting. Casting is when you have a variable whose type is at a particular level of detail, and you assign it a different level of detail -- say, casting an int to a long, or a List to an ArrayList.
    What you want to do is convert one type to a completely different one. In particular, you're going to do that by using SimpleDateFormat to parse the String -- that is, SimpleDateFormat will read the string, pick out the individual parts that express the date, and create a Date object that corresponds to it.

  • How to set a string field with people picker control group

    Hi Guys
    I have a problem with a form list, when I need to set a string field with de content of people picker control that have more than one "user".
    Is there any way to put in string a list of user like the people picker control shows in a form?
    The really problem is I don't know how to read an array of user in a formula rule.
    any example or idea should be appreciated.
    tnks.

    Hi ,
    Please try out in following way :
            /// <summary>
            /// Set value to people picket control
            /// </summary>
            /// <param name="key"></param>
            /// <param name="ppl"></param>
            /// <param name="item"></param>
            private void SetDatatoPeopleEditor(string key, PeopleEditor ppl, SPListItem item)
                try
                    if (item[key] != null)
                        string users = string.Empty;
                        SPFieldUserValueCollection userCol = new SPFieldUserValueCollection(web, item[item.Fields.GetField(key).Id].ToString());
                        foreach (SPFieldUserValue usrItm in userCol)
                            users += usrItm.User.ToString() + ",";
                        ppl.CommaSeparatedAccounts = users.Remove(users.LastIndexOf(","), 1);
                catch (Exception ex)
                    lblErrorMessage.Text = ex.Message;
    private SPUser GetAccountName(PeopleEditor accountPE)
                SPUser user = null;
                string strAccountName = String.Empty;
                try
                    for (int i = 0; i < accountPE.ResolvedEntities.Count; i++)
                        PickerEntity objEntity = (PickerEntity)accountPE.ResolvedEntities[i];
                        user = web.AllUsers[objEntity.Key];
                    return user;
                catch (Exception ex)
                return user;
    It works for me .

  • How to save a string input by the user to a file

    Hi,
    Can anyone please teach me how to save a string or several string that requires the input of the user into a text file?
    Your help is very much appreciated!
    Thank you!

    http://java.sun.com/docs/books/tutorial/essential/io/index.html

  • How to set nano 7th gen to accept podcast downloads

    I downloaded (I thought) podcasts from the iTunes store yesterday.  My Nano was plugged into the computer. A pop up menu asked if I wanted to accept/subscribe (don't remember which) to podcasts and I checked yes.  Today when I plugged in my Nano, there is no podcast category in my library and when I check the Nano itself, it shows no podcasts.  I checked the general settings and "podcast" is greyed out so I can't check that I want podcasts to be automatically synced.  What do I need to do to get podcasts downloaded into my iTunes library and synced to my Nano?

    This did nto solve my problem.  I spent almost 2 hours on the phone with Apple.  The first "tech" had little idea of what I was talking about, suggested things that did not work, and set a call back (so he could try and find an answer) at the wrong time.
    Not getting the call back at the time it was supposed to happen, I went through the whole calling Apple again.
    This time I got a real tech who, when she couldn't figure out what was wrong, got a supervisor (Lynette) to take over.  Lynette arranged to "see" my computer so she could better understand the problem.  She, too, was perplexed.  Because I'd been on the phone for almost 2 hours, I asked if she would call me back in the morning and she agreed, that would give her time to research. 
    Well, 10 minutes later the phone rang and Lynette asked me to go to the computer and open "Parental" in the iTunes settings.  (A bit of necessary background: the local Apple store had given me a replacement Nano 3 days prior because my new one was getting too much radio static.  I assumed it was a new Nano, but it was apparently a refurbished one, and it had not been totally cleaned.) I had never thought to open the parental category as I don't have kids in the house.  Guess what...when I opened it, both podcast and radio had been check to no allow!  Lynette was as happy as I was; she said she knew she couldn't leave without solving the problem so kept fooling with it.
    Lynett rocks!!!

  • How to Set Up AirPort Extreme 802.11n only Network

    I purchased a used AirPort Extreme base station and a used AirPort Express off eBay to upgrade my home network. Both are the latest model AE (dual band II, firmware 7.5.1) and AX (802.11n, firmware 7.4.2). I want to use my AE as main router (Internet connection, DHCP) and use my AX to wirelessly extend network to my family room, where I have my Xbox accepting only wired network. And I want AE and AX to communicate through 802.11n to maximize bandwidth. Sounds easy right?
    Well, I've got this set up mostly working except the 802.11n part. Not matter what I do, It seems only operating in g mode. I made my AE creating a 5Ghz network but I couldn't find this network anywhere. Not on my iPad, not on my iMac.
    I'm wondering if I have a defective AE. The seller on eBay told me he used the 11n network just fine. The router is still under warranty, I'm wondering if I should ask Apple for a repair? But since I'm pretty new to Mac in general, I figure there might be something I just missed and hence this post. Any help is greatly appreciated!
    Some screenshots of my configuration: http://picasaweb.google.com/xianxu/IPad

    I do have an AX that extends the AE network. There is nowhere on AX that I can specify radio mode, once I specified it to extend a network. I assume AX talks to AE over the n network and then extends the network to be g compatible? Sounds really strange.
    Maybe not too strange. Since the AX is a single-band device, it can only extend the AEBSn's 2.4 or 5 GH radio, at a time, not both simultaneously. Since your iPhone was able to connect, most likely, it was extending the 2.4 GHz radio ... which was also configured to support "g" devices. What I haven't figured out is how, if you set the AEBSn's Radio Mode to "n only" why non-"n" are still able to connect when the network is extended.
    ... I chose to create a different network name for 5Ghz radio as something like: MID-EARTH (5 GHz). However I can't seem to find this network anywhere. I'm wondering why this is the case? Is my AE somewhat defective?
    This may be a completely different issue than the extended network one. If you remove the AX from the network equation, wireless clients should see two different Network Names or SSIDs ... one being "MID-EARTH (5 GHz)" and whatever you called the 2.4 GHz network. That is, assuming that the client is capable of accessing both bands. If this is not the case, we would need to revisit your AEBSn's configuration settings.

  • How to Set default value for taxonomywebtagging control with terms and nested terms

    Hi,
    I have created taxonomy control in custom aspx page and I am able to select terms but I am trying to setup default value to that control.
    Can anybody let me know how to set the default value for TaxonomyWebTagging control in custom.aspx page with nested terms?
    Any help would be greatly apprecited.
    Control code in aspx page:
    <td>
    <asp:Label runat="server" ID="lblLanguages">Field A: </asp:Label><asp:Label runat="server" ID="rfvlblLanguages" CssClass="errorMsg" ForeColor="Red">*</asp:Label>
    </td>
    <td>
    <Taxonomy:TaxonomyWebTaggingControl ID="term" Width="385px" runat="server" /></td>Mapping metedata code:TaxonomySession session = new TaxonomySession(SPContext.Current.Site);
    //Set the Business Unit Field
    SPSite site = SPContext.Current.Web.Site;
    TermStore termStore = session.TermStores["Managed Metadata Service"];
    Group group = termStore.Groups["GROUPName"];
    TermSet termSet = group.TermSets["TERMSETNAME"];
    Term term = termSet.Terms["TermA"];
    Guid termGuid = term.Id;
    term.SspId.Add(termStore.Id);
    term.TermSetId.Add(termSet.Id);
    term.AllowFillIn = true;
    term.AnchorId = countryGuid;
    term.IsMulti = true;
    Thank you.
    AA.

    Hi,
    According to your description, you want to set default value for TaxonomyWebTaggingControl.
    I have a test in my environment. It could be achieved by setting the Text Property of TaxonomyWebTaggingControl.
    Here is the code snippet:
    TaxonomySession session = new TaxonomySession(SPContext.Current.Site);
    SPSite site = SPContext.Current.Web.Site;
    TermStore termStore = session.TermStores["Managed Metadata Service"];
    Group group = termStore.Groups["GroupA"];
    TermSet termSet = group.TermSets["A"];
    Term term = termSet.Terms["A1"];
    TaxonomyWebTaggingControl1.SspId.Add(termStore.Id);
    TaxonomyWebTaggingControl1.SSPList = termStore.Id.ToString();
    TaxonomyWebTaggingControl1.TermSetId.Add(termSet.Id);
    TaxonomyWebTaggingControl1.TermSetList = termSet.Id.ToString();
    TaxonomyWebTaggingControl1.AllowFillIn = true;
    TaxonomyWebTaggingControl1.IsAddTerms = true;
    TaxonomyWebTaggingControl1.IsMulti = false;
    TaxonomyWebTaggingControl1.Text = string.Format("{0}|{1}", term.Name, term.Id.ToString());
    Here is a detailed article for your reference:
    http://blog.bugrapostaci.com/2010/09/23/taxonomywebtaggingcontrol-sharepoint/
    Feel free to Reply the test result.
    Thanks
    Patrick Liang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Patrick Liang
    TechNet Community Support

  • How to set HP 4502 to print black only

    How to set my HP4502 to print from Mac in black ink only

    Hi @floraoverst,
    Welcome to the HP Support Forums! I see you would like to print in black ink only on your HP Envy 4502 with your Mac running the Mavericks 10.9 Operating system. Please follow the steps listed below:
    Printing with the Black Print Cartridge Only option
    Click File and then click Print.
    Make sure your printer is selected.
    Verify that the Preset option is set to Standard.
    In the Copies & Pages menu, select Select Paper Type / Quality.
    NOTE:If this option is not available, click ColorSync. Then click the down arrow beside Quartz Filter and change the setting from None to Black & White.
    Select the Paper tab.
    From the Color option menu, select Grayscale.
    Select the Color Options tab.
    Select the Black Print Cartridge Only option.
    If that option is not listed, then it is not available. The printer will print using only the black cartridge, however, printing with one cartridge will be slower than printing with both cartridges.
    NOTE:To save the setting, click the arrow next to Preset and select Save As. Save the Preset option as Black Cartridge Only and then click OK. Then, the next time you want to print with just the black cartridge, select the Black Cartridge Only Preset.    -Source
    I hope this helps!
    HevnLgh
    I work on behalf of HP
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to the left of the reply button to say “Thanks” for helping!

Maybe you are looking for

  • Why this line of code returns null always??

    Dear All, Just a question. I have this snippet of code where a user is required to input a number. <af:panelGroupLayout layout="vertical" id="pgl1">   <af:inputText label="number" id="it1"                     value="#{MyBean.number}" immediate="true"

  • File is damaged cannot be opened for HEBREW language

    Hi, I have a PDF file generated in HEBREW langauge it works fine in my development environment but when I open a file generated in Production environment I am getting the error "File is damaged cannot be opened". Is there any special setting related

  • Problems with smart albums iphoto 08

    Hallo, I can't create a new smart album. When I try to create an album there are no options to create a rule. When I try to edit one of my smart albums the part where I can edit the rules doesn't open. Sometimes iphoto shuts down at this point. I all

  • Text Line separation involving different languages

    I am trying to make the transition from Pagemaker to CS2. I frequently have to make cards with strict external dimensions involving short lines of text in mixtures of English and Thai. Part of the reason why it is necessary to vary the distance betwe

  • # of Apps for BB10

    Just curious. How many apps have been written and are available for BlackBerry 10 as of today? Is there a running total somewhere? I'm curious to see how developers are or are not getting on board with the new device. Any ideas?