Reading of option buttons

Hi all

I write a big program in LabVIEW and one aspect of it is a structure of type quiz. There are 4 possible answers to each question (a, b, c or d) that correspond to a cluster of 4 radio buttons. The quiz questions and answers are stored in a table. The table contains 5 columns; the first (0) contains questions and columns 1 to 4 contain the four possible answers. The fifth column is a number corresponding to the correct answer either 1 = a, 2 = b, etc. To verify whether an answer is correct, when the user clicks on the button 'NEXT', the option boxes are read. If the answer is 'a', a "1" is released, if it is 'b' a '2' came out etc etc. This output is compared to the fifth column of the table, and if the two match, TRUE is output, light a LED. However when I run my program it doesn't let me choose a response, i.e. one of the option buttons, even if I have a while loop.

The program is much more that this whole quiz aspect it is a little heavy to post. I have included a screen screen below which may help (but can also confuse more!).

Thank you!

Your diagram, I see 'Radio buttons' is an indicator, not a control.

To select an option, you will need to make this control.

Tags: NI Software

Similar Questions

  • Cannot find the rip in reading or library button in Windows Media Player 12

    Original title: no rip button

    When I open media player I don't see the rip in reading or library button

    I tried to copy a cd on my new desktop PC and computer laptop windows 7 OS. The CD I'm tearing a 75 WMA format songs on this is a different procedure to do? When I open the drive I get no burn button or option button

    There is no need to rip data CDs containing MP3/WMA files. You can just browse the CD with Windows Explorer and drag and drop the files in your folder of music . WMA songs will automatically appear in the WMP library. Tim Baets
    http://www.BM-productions.TK

  • Cropped at the bottom option button

    Anyone know if it is possible to prevent the display cutting at the bottom in HTML5 out of option buttons in the quiz slides (see screen grab).

    radioBtns.jpg

    I tried the obvious things to increase the height of the individual containers and line spacing, but doesn't seem to work.

    Thank you in advance for reading.

    I had the same problem today using the Clean Blue theme quiz. Identical cropped radio buttons. I corrected rescheduling height project of 2px. Seems to have solved my radio buttons, question of culture. Not clear at this stage whether something else now out of whack, but seems good.

  • Can't seem to load correct calculation on the option button

    Hi all

    Its a long time since I cut all code and need help with this question that I hope will help me other fields I'm calculating.

    So I use Acrobat X Pro, I'm new on so I have two radio buttons with the same name auth, but the choice of Yes and no; the Yes option button is the default.

    I have a read only area I want to maintain the value based on simple logic, if yes is clicked, then set a value of 350 set the value to 0

    I walked into the Javascript code within the custom calculation script

    var Field1 = this.getField("auth").value;

    If (field1 = "Yes") {event.value = "350";

    } else event.value = "0";

    When I test this the calculated field is STILL 350 regardless of the selected option button...

    someone tell me why? or especially how to fix it.

    Thank you

    George

    You have made the classic mistake of using the assignment operator 'is', where

    You should use the 'is' operator comparison in the if statement.

  • Option button and associated features does not work!

    Hi Pros,

    I am facing the following problem:

    1.I have an interactive PDF created in Acrobat 9 Pro.

    2 have a few option boxes, each radio buttons be assigned been worth (for example: 1,2,3 etc.)

    3.I have a text box in which the value of the selected option button is displayed.

    4 PDF works fine on my machine.

    5. customer is to have Internet Explorer version 7.0.5 and Adobe reader: 8.2.6

    6. the option boxes and associated features does not work on the client computer.

    7. the text box displays "0" even if we have a radio button with a value of 2 or 1 is selected.

    What is the problem? How can I solve this problem?

    Help, please.

    If you have disabled JavaScript or automatic calculations in Reader preferences, you will get this type of behavior. You can test yourself by changing your preferences (Edit > preferences > JavaScript, Edit > preferences > forms > automatically calculate field values). All calculated fields depend on JavaScript behind the scenes.

  • Hide an option button when a text field is filled?

    Hello

    I was wondering if someone could help with this.  I want to set up a form for a radio button is disabled when a field is filled in.

    I tried a simple Action (show/hide a field), but I would like the user to be able to change your mind - so if they begin to enter the field of information and then delete, they can always select Yes or not later.

    I hope I'm explaining this well.  I read through the discussions and the acticle of Thom Parker, but I am sorry to say that because I don't know Javascript, it is completely over my head.

    Any help would be greatly appreciated!

    Thank you.

    If you want the buttons radio is available that when the text field is empty and inactive when the text field is not empty, you can use the validation script customized for the text field:

    // Custom Validate script
    (function () {
    
        // Reset the radio button field
        var f = getField("rb1");
        resetForm([f.name]);
    
        // Set the readonly property based on this field's value
        f.readonly = event.value;
    
    })();
    

    Replace "rb1' with the actual name of the option buttons.

  • This option button who worked, the code no longer works?

    Hello

    I had a forum until a few months ago and got help to get option buttons to work with a button continue, causing Stop on a specific frame in the sequence. (All done it on the main timeline).

    Everything worked fine, now I keep trying it again, but regardless of which button I click, it only goes to the frame 2 where the Novice option button is supposed to go.

    I think the problem is in the line of code that reads:

    var frameNumber = 2 + Number (noviceButton.group.selectedData)

    I know he is set to only go to the area of novice, but my understanding is that since it was radio button, any click button would work, and only, I needed to type in one of the unique instance names.

    Here is the code:

    Stop();

    continueButton.enabled = false

    noviceButton.addEventListener (MouseEvent.CLICK, revealContinue);

    intermediateButton.addEventListener (MouseEvent.CLICK, revealContinue);

    expertButton.addEventListener (MouseEvent.CLICK, revealContinue);

    function revealContinue (evt) {}

    continueButton.enabled = true;

    }

    continueButton.addEventListener (MouseEvent.CLICK, clickContinue);
    function clickContinue (evt) {}
    var frameNumber = 2 + Number (noviceButton.group.selectedData)

    Stop (frameNumber);
    }

    Is there a better way to write this code so that you click any button on the radio, then press on continue, goes in and stops as appropriate frame?

    Thank you

    Babs

    Should I say turn off instead of hide... continueButton.enabled = false

    Based on the output window that appears, but nothing show, I have a moment difficult to conclude what could be bad, except that the radio buttons would need to have empty spaces assigned as their value parameters.  If they have no value I expect to see a null value appear in the output panel.

  • Conditionaly without refresh report view, when I select the option button

    Hello

    I have 5 option in an option button. I created 5 parts of report.
    I want to display region report, when I select any radio button then corressponding region report should be display. This shoude be without page refreshes.


    How can I do this...


    Thank you
    Ed

    Published by: Ed on November 3, 2010 06:16

    Kaushik, can you check one of the attributes of the region report ( region of change-> attributes-> region ID static ). It wouldn't hurt to go through the documentation before asking a question, especially when someone (Jari) had bothered you post the direct link for the answer.

    Another thing, have you even read the steps I posted earlier (on the changes that I made this page in your workspace), why don't you try the same in the apex 3.2 and see if it works? After all, you can see all the code that is there since its your workspace.

  • Thunderbird COMPLAINT: Using [back |] Forward] buttons, loses "Privacy, Options button. Exit/Startup [restart] Thunderbird needed to restore the Options button.

    Thunderbird 31.7.0 (and before) COMPLAINT: using [back |] Forward] buttons, loses "In order to protect your privacy, Thunderbird has blocked a remote content in this message." Options button. Exit/Startup [restart] Thunderbird is require to retrieve the button 'Options '. Is there another way, without rebooting? [There is no help / Feedback in Thunderbird button... so I'm reporting it via Firefox.]

    Check if this being due to any any addon.

    Restart Thunderbird in Mode safe:
    Help > restart with disabled addons.
    Whist in safe mode, run for a while to see if that happens.

    If it does not work then one of your addons can cause a conflict.
    Disable each in turn to test.
    She might need to update.

  • Could you please split the 'Options' button in two?

    Used to have a single button at the top of the e-mail message to show the remote content - of Thunderbird, but now there is an Options button with this choice as well as four more. Because so many messages force me to show the remote content, need me two clicks to continue with the message. Quite boring. If this button should be divided into a button 'Show remote content' and a button 'Other Options', things would return to the previous level of convenience. (I know I might opt for remote content automatically, but I like that another security measure). TIA!

    I agree with you.
    This has been reported as a bug.

    You can add your vote for this change.
    You vote by clicking on the link to Vote - at the top where it says:
    Importance:-normal with 4 votes (vote)
    You will need to register and sign in to vote.

  • option button missing in the Tools menu in ubuntu

    button in Firefox missing from the Tools dropdown
    using ubuntu 14.04, new intall

    downloads
    Add - ons
    set up synchronization
    etc...
    here but no option button to change settings
    as new tab jump
    or other parameters that are only FLEURIDAS under this option button

    IN Ubuntu box Option called "Preferences". This option is available under the Menu Edition

    If your using Firefox 29 and above you can see the Menu button in the right corner in your firefox

    • Menu key = > >

  • The 'Reading list' option disappeared from my i - Pod classic, although my different playlists appear always on my i-Tunes.

    The 'Reading list' option disappeared from my i - Pod classic, although my different playlists appear always on my i-tunes. Any suggestions?

    Hi Mark,

    Welcome to Apple Support communities.

    As I understand it, there is a problem with reading lists is no longer appearing on your iPod classic. Among the easier troubleshooting steps you can try, which is likely to solve this problem, is to reset your iPod, as shown here:

    Learn how to reset your iPod - Apple Support

    If the problem persists, you can exclude any problems of restoration of your iPod software as described in the article below.

    Use iTunes on your Mac or PC to restore your iPhone, iPad or iPod settings - Apple Support

    Ciao.

  • expand option buttons

    Is it possible to enlarge the round buttons on a remote control?  It is quite easy to customize a control/led.

    Are you talking about only one option button or radio button control?

    A radiobutton control is a container for Boolean values , where only one (or perhaps zero if so configured) may be true at some point. On the diagram, it acts as an enumeration with the label of each control as elements.

    You can with the right button of the Boolean values inside and replace them with any other boolean you like (buttons, switches, LEDS, etc.etc). You can remove Boolean values and add more boolean. They don't even have to have the same design. Some Boolean place you want and resize them to any desired size!

    Now to create an oversized radiobutton (be it inside of a radiobutton control or autonomous), you can import graphical States of a button Boolean true and false if it looks like a giant readiobutton. Everything can be done!

    (The only problem is the fact that the radio button control cannot be empty, even on a temporary basis during editing. It seems that no one cares really, because my related idea is not very popular )

  • Runtime option buttons menu

    Dear all,

    How to add cases of the event to the run menu associated with the Radio buttons?

    There is a property in the event for radio buttons, but which includes whole rectangular box with radio buttons and not each option button.

    I want to add a case event for menu selection for each option button that I have 4 radio buttons, and menu associated with each option button is different.

    Thank you

    Ritesh

    Hi Ritesh,

    I think the solution of TonP will work for you, but if it's important to have a unique event-case for each option button, here's one way.  To create the button references, just right click on a specific button and choose Create\Reference.

    See you soon!

  • control of option buttons

    Buttons radio programmatically controllable?

    If x is the X radio button is selected, if there happens then y radio button is selected.

    This would happen automatically in the VI.

    Thank you

    As noted, the link provides the General method for controls. Specifically to the option button: the data type of a radio button is essentially an enum. You can simply plug an integer value to indicate that you want selected, or better yet, typedef control radio button and then you can use the enum directly on the chart values, providing the self-documentation.

Maybe you are looking for

  • CDMA and GSM capacity.

    If I buy an iPhone 6, Plus 6 or, say, the Verizon service that is CDMA, can eventually move to a GSM network on the same phone. In other words are fully compatible with both systems and phones not dedicated to one used at the time of purchase.

  • Satellite C55 - Touchpad no longer works

    Hello The touchpad on my C55 no longer works. After you restart the touchpad works until I signon to Windows. After this, all functions will stop. A few days ago, I think that some Windows updates have been launched. Is that what someone else has had

  • Airport Time Capsule and change provider to wide band

    I recently changed my broadband provider and need help with my Airport Time Capsule. I currently have backup via an ethernet cable wireless for Macbook Pro and iMac, Plug and connect every day (although I've never been certain that it's the right or

  • How to make windows media player defalt player?

    The total telling this.

  • Toot of Dell Inspiron 910 windows system32 ntoskrnl.exe error

    I booted up my laptop Inspiron 910 and got the following error message: Windows root system32 ntoskrnl.exe missing or corrupt please reload the disc. I tried several attempts through the advanced options [F8] and always comes back to the same error m