Display a message to a user in a while loop

Hello.  I've been using Labview for about 4 days and I have this preface saying that it is a homework problem, I'm not looking for an exact solution just someone to point me in the right direction.  I need to display a message to a user.  The problem is that, since it is within a while loop, when the condition is met for the notification to display, it just returns to the top and never let the user change the values to correct the problem.  It should be pretty obvious that the vi is supposed to do by looking at, and everything else works fine, until I put the message in it.  As an aside, I know that there are probably much better ways to accomplish the tasks that I decided to do about it, but as I said, I am completely new to LabView, so I apologize for the most elegant programmers out there for my brute force programming!  I searched the forums and found a few things about statements of case and registers at offset, but I have no idea how to use.  I have on this part of the problem, worked for hours now and make me nowhere, so any help will be really appreciated.

Welcome to the Forums!

First of all, thanks for pointing out that this is a homework problem. We mind helping people learn LabVIEW but oppose when someone is trying to put his homework for him.

Statements of case and shift registers are probably what you need to learn next. Specifically, a state machine is probably well suited for this type of program. I think that your LV version came with a template or design for a state machine model. Look under the menu file > New... (No new VI) and see if you can find a state machine model.

Other comments:

-If you don't use a structure of the event, and then put a (ms) waiting inside the loop so it doesn't turn thousands of times per second that does exactly the same thing each time until the user changes a control.

-In line and force? will make the comparison and select lower left and upper right part of your VI.

-Force the amount entered for the multiple of 5 cents is OK, but can be confusing to the user trying to get 3 cents. A note on the Panel or a bunch of advanced control may be useful.

Lynn

Tags: NI Software

Similar Questions

  • Display a message to the user w / result of data

    Howdy,

    First off it is a mission of the College work and it's especially complete; seeking advice and the experience here.  The mission is to create a calculator with many functions for each method of arithmetic.  It was easy enough, but the next step is to display a message to the user after each calculation.  For example, if the problem was 4 + 2, the message must be "the result of the addition is: 6. the creation of the part of the message by using the Msg to display the user-defined function is simple, but it is not exactly struck home.  I want to create a message that contains the result of the problem (for example 6).  As it is now I can't do that with the function of Msg, or if it is possible I can not quite understand.  I want to have a separate message for each function, but I don't know if I can incorporate the response into the message.  It's the underlying objective; How to integrate the response in a message dialog box to the user? If it is possible what should I watch?

    The VI himself is quite simple; case of structure for each arithmetic function and a certain time for execution loop.  X and there are entries and a drop-down list to select a structure if necessary. I've attached a screen below.

    Thank you

    THA

    You can use the Message to display to the user to view any string to the user. If the key is to use the palette of the chain to manipulate strings to get the error message.

    A subpalette of the palette of the chain is the range of number/String Conversion. This can help you get your (6) value into a string format and then you can concatenate that string however wished with the message.

    With the pop-up windows, you must make sure that you're not trigger this popup with every single loop, so make sure you put a case around the pop-up structure and place the logic in there to make it work only the case of popup when the value changes.

  • Display warning message if the user tries to update the existing column of trans_dt

    Form of Oracle 10g

    Hi gurus

    I appreciate if someone help out me. I need to display the warning message if the user try to update the existing trans_dt, and I don't know what trigger I use. Thank you

    Concerning

    Matt

    Hello

    You can select the value entered by the user and then compare it with the data from the db table

    in WHEN-VALIDATE-ITEM trigger

    SELECT trans_dt

    V_ INTOtrans_dt

    table

    WHERE THE... -PKs;

    Then

    IF: trans_dt <> v_trans_dt

    THEN

    -warning-

    -u he could leave it as what or

    raise form_trigger_failure;

    END IF;

    Amatu Allah.

  • Display a message to the main user of sub vi VI

    Hello

    I have a question which I'm sure he has met before, but I couldn't find it via the function or search with Google.

    On my main vi, I have a link to a sub vi, this subroutine vi check something and then displays a message to the user. The next step in the sub VI depends on what users on the input message is. But when I run my main vi, that the display (of course) is not, because I do not have a link between the two.

    Is it possible to send the message to the main vi and return the action the slot vi?

    Thank you

    Given that everything that happens in the sub vi, why would you go back to the main vi?

    Do you use the express vi "Prompt the user for entry" to get an input from the user?

    Can you post your code or make some dummy vi to visualize your problem?

  • How to display a message when users open the form

    Hello

    l want to display a message when a user opens a form.

    The message will explain the shape and if the clik user NOT close the form

    Thank you

    Stone

    You can use this script in the docReady event.

    if (xfa.host.messageBox("A message goes here to explain the form","Title for the Message Box", 1, 2) != 4) event.target.closeDoc();
    

    Just be careful, that I was unable to "test" it in LC, I had to save the file and open it in the drive to verify that it worked.

  • How to: display a message while for loops, with no required user input

    Hi everyone, I'm relatively new to LabView, using 8.5.

    I want to display a message all in one for the loop runs, requiring no user input to delete the dialog box (that is to say, the box disappears after the end of the loop For).

    Any ideas?

    Thank you

    Darren


  • Flatten to a string to send arbitrary objects by messages from the user interface?

    Hi people,

    I am trying to send arbitrary data by messages from the user interface defined by the user to my labview interface. Something funny happens then: if I send the data through the message of ui, it seems I have something strange. There is only one character or nothing in the message of the user interface that reached my reminder.

    It seems that flatten channel also creates control characters that are interpreted by NI TestStand and Labview not as members of the chain, and for this reason I only get incomplete data. within the action of testand, which creates the flattened data, I put a dialog box to display the string data, and it seems that at least up to 255 (ascii) characters are used.

    Is there something like uuencode/uudecode to avoid this problem?

    Thanks in advance

    Okidoki, found.

    His «binary"produced by «Flatten the string» string Apparently I thought, the LabVIEW data type is incompatible with the API of TestStand from LabVIEW. In conclusion I would classify this as a bug (sorry people, at least there should be documentation) API for LabVIEW TestStand 2014.

    As a solution, I use flatten it in XML, which is a printable and human readable 'normal' string.

    It was trial and error, and I'm not enjoying this.

  • When a second (another) user tries to connect using the connection to distance that a message "select a user to disconnect so you can connect.

    Original title: Remote Desktop

    We have Windows Server 2012 essentials (evaluation version) installed and working.  When connecting to even via the remote desktop connection it works fine, but when a second (another) user tries to connect using the connection to remote, a message "select a user to disconnect so you can connect.  The names of the 2 users are displayed the first is the name of the administrator of the local server and the second is the remote desktop user who was first.  We need at least 3 to 4 remote desktop both users to be connected.  Please advice

    Hi BHARATISRANI,

    Thanks for posting in the Microsoft Community.

    Since you are using Windows Server 2012 Essentials, the question you posted would be better suited for COMPUTING public Pro on TechNet. I would recommend posting your query in the TechNet Forums to get help:

    Windows Server 2012 Essentials General TechNet Forums

  • Error message to the user

    Hello

    In the attached VI, I took a structure case for displaying the message whenever error enters the block. But his irritates me even if I gave a user message in this but it not poping the dialog box every time that the error enters into this block.

    Can someone understand it. Thanks in advance.

    How many times did you say? DISCONNECT THE WIRE OF THE ERROR IN YOUR DIALOG BOX. This was not part of any long description. It has been clearly stated

  • Display a message in the main method.

    Someone knows how to display a message in a dialog of the main method (before the creation of the Application object)? It is a background application is not possible to put the message on a screen.

    You can use Ui.getUiEngine () .pushGlobalScreen () to display a screen for a user interface application.

  • Display a message using #SUCCESS_MESSAGE #.

    Request Express 3.2.1.00.11

    Hello

    This question is about the display of messages by using #SUCCESS_MESSAGE #.

    I have the treatment of next Page > code with after presents the process. This code is triggered when the user clicks a button that uses a branch of the page to the user to another page.

    The branch takes the user to the 10101 page to page 10102.

    I put the Clear Cache = 10101 on the branch.

    BEGIN
    
    INSERT
      INTO dad_assessment_request
    ( tenure_id
    , client_id
    , estimated_area_ha
    , estimated_length_km
    )
    VALUES
    ( :P10101_TENURE_ID
    , :P10101_CLIENT_ID
    , case  when :p10101_measure_option = 'AREA' then :p10101_x end
    , case  when :p10101_measure_option = 'LINE' then :p10101_x end
    );
    
    END;
    
    
    

    In the process of Page Edit > dialog box Messages I placed a process success Message and the error of process.

    The problem is that the message does not appear on the page that the Branch directs the user to.

    If I change the direction to inform the user the current page, no message is displayed or the other.

    How can I treat it the Message to display in the active or branched page?

    Concerning

    Ben

    have you tried setting the success message options branch...

    the 'target' a 'plug' have an 'Advanced' option which is foldable/expandable

    There is a 'Success Message' option, it should be 'yes '.

  • Check invalid date and display error message for that forms 10 g or 12 c

    Hi all

    a text element text_fdate is of data type date mask and the format is dd/mm/rrrr

    In this text element that I want to display validation message "you have entered an incorrect date that does not exist.

    When the user enters an invalid date as 30/02/2016 which is not exists.

    What trigger I use and when.

    Florian wrote:

    Hey Hamid,

    GET_ITEM_PROPERTY ('ITEM_NAME', ITEM_IS_VALID);<--it is="" not="">

    Above will work only on the query mode.

    The code works, but the below error code you gave does not work in forms 12 c.

    1. IF ERROR_CODE = 50012 THEN
    2. MESSAGE ("Please enter the correct date.");
    3. MESSAGE ("Please enter the correct date.");
    4. END IF;

    The correct error code is 50004 12 c forms.

    Just change the ERROR_CODE of 50012 to 50004 and it will work.

    I'll check the error code in form 10g and will play with you again.

    I already checked and functional at 10g.

    Hamid

  • I created form in adobe acrobat X 1 Professional. Now, I want to put logic on a field. I want that the document will be closed if someone between age under the age of 18. and display a message for minors?

    I created form in adobe acrobat X 1 Professional.

    Now, I want to put logic on a field.

    I want that the document will be closed if someone between age under the age of 18. and display a message for minors?

    The final document is a little drastic... Perhaps simply display an error message? In any case, you can do it like this, as a custom field validation script:

    if (event.value && Number(event.value)<18) {
        app.alert("You must be an adult to fill in this form!");
        this.closeDoc(true);
    }
    

    Be aware that using this code will close the file without saving it, and the user will lose all unsaved data that they have entered.

  • How to display warning messages in the OPS

    Hi all
    I have a page where in I have a poplist. When the user changes the value of that poplist I want to display a message window that the "the user must either save the modifications or changes will be ignored. And I want to have two buttons to save or cancel the changes.
    How to achieve this in the OPS as I read that popups are not supported in the OPS.
    And the Confirmation message boxes at the top of a page does not stop the users to perform further processing.

    Can someone please shed some light on it.
    Thanks in advance.

    Ginette

    You can join firePartialAction with poplist and make use of the dialog page. For an example of a page of dialog with two buttons you can see the example of Toolbox page remove tutorial.

    Thank you
    AJ

  • Friendly message to the user when a report returns no data

    I have a report that shows a kind of incidents during the week. Sometimes, there is no incident in a week. Analytics would display "No. Results" and then shows the report filter conditions. For an end user, it seems as if the error has erroed somehow.

    Is there a way I can only detect no such condition data and then displays a message that is easy to use for the report?

    IN the layout section, click Add view--> Advanced--> n implies--> Enter the friendly message that you want to see. This will help to achieve your results

Maybe you are looking for