The menu selection in multi States of handling state machine

Hello world

My application uses States architecture machine, I have to manage the menu selection in two different States, and 2 of them must be managed by the structure of business event.

The problem is that when I use the structure of the event in the State 1 is also later managed by the case of the event in the 2nd State and it is impossible to manage the selection of menu at the 1st State by the block of 'Selection of the Menu Get' because it's descripton depending on whether the structure of the event is set up to handle the same menu as this block element LabVIEW does not account for this function.

I would be grateful for any clue.

Greetings,

Mariusz

Thanks, it solved my problem!

I also had to add the State selector in the Init State. If the reopening, the machine data goes directly to the OpenDataState.

Tags: NI Software

Similar Questions

  • Simulate the Menu selection programmatically to vi

    Hello

    I use the basic version of LabVIEW 8.5 (no event handling). I created a custom RTM (Menu Run-Time) and use the vi to get a selection of Menu connected to a business structure to manage everything. (Part of the manipulation to put a check mark next to the menu item selected and by disabling the checkbox of all other elements using the vi Set Menu Item Info.) Too bad he does that automatically. Maybe it's in the new versions, but I digress.)

    My application can save and recall setups. When I remember a Setup, I want to programmatically call the respective case, as is done by the vi to get a Menu selection, even if the menu is not actually clicked by the user. I can't find a way to do this. Is is possible?

    Thank you.

    Ed

    Thank you for your response. It seems that there is no practical way to 'simulate' an 'event' with the basic version of Windows. Duh!

    Anyway, as usual, I came up with a solution. First of all, I would like to say that only a subset of my menu items require a check, but it's not really relevant. I have a hidden control (aka, a drop-down list box) ring with all these menu items element tags. I've created a loop For and browse all the elements (the ring NumItems property), first clear all checkmarks (using Set Menu Item Info with the RingText.Text related to the input element tag) and then setting the view of what is recalled in the file. Who manages the question mark. (Note that in the case of the vi structure get a Menu selection, I had to actually disable each check box and that of the current selection, value, because the RTM does not automatically, like for example the checkmarks, Visual Basic performs.) Again, maybe the newer versions make.)

    I can then get a Menu selection with other operations reqiured, reproducing what is happening to this menu selection in the case structure of the vi. (Common things can be put in a sub vi.)

    Let me know if someone wants to see screenshots of this area of my block diagram.

    Ed

  • the menu selection has failed

    Hi all...

    I had a problem when I select the menu (data acquisition), the program as being stuck.  What my error? Can someone help me?

    Sasha all

    Now that you've posted your Subvi, go back and read message #2 and the third line of Dennis of the Mani #3 message.

    If you want this Subvi to behave like a dialog box, you need to go to the appearance of the window of the Subvi VI properties and set it to show the cover when it is called.

    Also, put a statement of expectation in this while loop so it does not at the full speed of the CPU waits for you to enter data.

    And case in the case of handmade VI, it is best to uncheck the box that says sign before locking up to end of the case of the event.

  • The use of objects multi-state for the next stage of the course 9

    In my old clumsy e-Learning authoring tool, I could create a slide with several steps. You would click the button Next to display text and graphics.  When you get to the last step, the next step button disappears, so that you know that you have completed. How can I make this work with multi-state Cap 9 objects?  I created an object with 3 States multi-state. I created a button with an action go to Next State.  It is fine until you get to the last State.  If you click the button again, it starts again with the first State.

    Yes, I can create several buttons. But I really just want a button called next step which disappears after posting the last State.  The user would know that she had displayed all the steps.

    Any suggestions are welcome.  Thank you.

    Jeanne M

    Here is a sample script:

    This has been implemented for 6 States (for a container of text, the Normal State is an empty form).

    There are 2 user variables:

    • v_counter has a default value of 0
    • v_max is the number of States, you can replace it with the literal '6' or you need to

    The first decision "done" check if the counter reaches the maximum value (v_max). If this is the case all States should have been disclosed, and it should end the loop. That's why this decision will disable the button used to change States (SB_StateTrigger) and here also to change its status to an invisible state (AfterLoop). Upon return to the slide, the State will be back to Normal (visible), and simply activate the button again. You can replace this with a simple action to hide as well if you want.

    If the first decision is not true, there are still reports to be shown and the counter is incremented.

    All 6 other decisions are similar (I collapsed 2 of them): they will test the value of the counter and show the associated State. I used to state3 on a common standard. This makes it possible to use exactly the same advanced also action if the total number of States is less than 6. Simply change the value of v_max.

  • Why the menu selections are grayed out?

    I recently bought 14 items. I installed it on my laptop and the application works very well. After installing on my PC, it works only partially. I mean here the selections in the menu layers are all grayed out. This is the case even for a file .psd with two layers.

    I'm running on Windows 7 on both machines. I uninstalled and reinstalled 14 elements on my PC (and ran the updates), but the problem persists.

    Thank you.

    georgec77578327 wrote:

    I recently bought 14 items. I installed it on my laptop and the application works very well. After installing on my PC, it works only partially. I mean here the selections in the menu layers are all grayed out. This is the case even for a file .psd with two layers.

    I'm running on Windows 7 on both machines. I uninstalled and reinstalled 14 elements on my PC (and ran the updates), but the problem persists.

    Thank you.

    You are in mode "Expert"?

  • Can I assign the text in a multi-state object?

    I want to assign InCopy files for captions that are part of a slide show, but I can't seem to create assignments for the text boxes in a multi-state object. Is this possible?

    Currently, there is no ability to add some text frames a MSO to an InCopy assignment. There is limited support for this workflow to modify when you use solutions such as K4 or WoodWing. Please be sure to fill out the feature request form: https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform so that we can enter the request for this feature.

  • problem of data flow in the case structures (using a state machine)

    Good day everyone.

    I'm having a problem with the flow of data between the structures of the case.

    I try to use an example of a state machine for this simple problem. but when I try to send data of a box structure to change the State of the code. It will change not in the desirable output, instead, it offers the possibility that the exit options emul.

    could someone please point what I'm doing wrong here. Any kind of help would be very appreciated.

    With a quick glance at your photos a question you have is that you use not data flow. You write your status updated in local variables value. Your State should pass through the case structures are a single wire. Playback of your order "Enum", happened in the register shift on the right side of your loop probably get running and reading before any processing occurs within the structure of your business. That's why you're reading the old value of the State and not the update. or have a classic case of a race condition in your code.

  • How to start and stop the video capture in a state machine

    Hello

    I am a student of neuroscience and this is what I try to do: 1) trigger a camera to GigE (200 FPS), 2) start the video capture, 3) triggers a light that stays on for x milliseconds, 4) trigger a valve that will blow an air puff, 5) stop the tone and the valve at the same time and 5) stop the video capture 1 second after 4). For this, my VI is a state machine, with a State for each trigger (ex, 1 State for trigger camera 1 State of light of trigger, ect) and a statement to "stop" and a "time-out State." Everything worked except the video acquisition - the program could trigger the camera but only acquire a frame, because it was not running in a while loop and this is my first question: for an acquisition video is it always necessary to have a while loop?
    I guess the answer is Yes, so I built a loop of 'consumer' for the camera. A queue of the pre-trial 'trigger camera' in the loop of producer, I was then able to start the video capture, but now the problem is to stop it at the right time. I have an another queue in the State of 'stop' in the loop of the producer, but is not able to start the State 'stop' in the loop of consumer, I think that maybe it's because the loop of consumer gets "stuck" in the whole loop.

    I hope you can help me, the VI is attached. Thank you!

    Hello

    First of all, in your loop producer: STATE 'Stop', you use the flushing line, then there is no need to use 'item queue at the opposite end. You can use the enqueue function.

    Secondly, you said "I moved the command stop inside the while loop as you said, but it did not work. But if you look closely, you moved "Enqueue function" inside the while loop. Instead you should use Dequeue function. Please, look at the picture I posted an orderly manner.

    And remove the circled (i.e. function. Enqueue function loop of consumption, where I wrote 'Why stop here').

    Try now.

  • Problem of Muse | The menu link stuck in State 'active '.

    I work with a menu and you have a link that is stuck in the "active" State No matter if I manually change to normal, it keeps active default. Why this is happening and how to fix it?

    Ryan

    Hi Ryan,

    Here's what you need to do to fix the link Industries - select the "INDUSTRIES" textframe inside the trigger - make sure that the textframe is selected and is not the trigger - and select the drop-down list of hyperlinks field that has the link to the applied Industries page. Click the X button next to the hyperlink field to remove the link of the textframe.

    After doing the above, as well as other triggers - trigger Industries would have the link but the textframe inside doesn't have the link attached to it. Now preview/publication to check the link of Industries.

    Let me know if you face problems making the fix.

    See you soon,.

    Vikas

  • Area of development under the menu "select" does not work

    CC trial on 32-bit machine with 4 GB of ram and 1 GB card graph.

    Have the photo on the screen. Select the update box, select Menu. Get the graphic treatment of circle and then nothing.

    Tried all the display modes and still nothing. Original photo with no overlay.

    Any ideas greatly appreciated.

    What version of windows are you using?

    Maybe your photo is quite important with respect to the pixel dimensions.

    Have you tried smaller photo?

    (smaller in size in pixels, as 1014 x 768)

  • Right-click the menu selection

    Now, I installed the new LV 2012 DS2, but my right click is not quite the same as it used to be. Is it just me?

    The right click menu can only be dismissed with the same mouse right button, I have to use the left button of the mouse. This noise doen't like many but every time I try to pick something, I have to think why it is not working, then use the left button. Each action to double the amount of time :-(


  • Suddenly and without reason my HP printer menu quit showing the menu selections oncomputer?

    I run a printer more HP Officejet 8600. It worked fine for a year, now, all of a sudden there is no menu to allow me to choose scan, fax or to print from my computer. I have tried several things but find the HP of self-help way confusing and downright frustrating. Can someone help me with this problem of soft ware?

    Windows 7 Home op system

    Hello

    The issue occur due to the use of the obsolete software.

    Remove the current software by clicking programs > HP > printer model file and follow the Uninstalll.

    Download and install the latest version of the software below and you should see an option in the HP printer Assistant new software:

    http://h10025.www1.HP.com/ewfrf/wc/softwareDownloadIndex?softwareitem=bi-108858-3&cc=us&DLC=en&LC=en&OS=4062&product=4323648&sw_lang=

  • Problem: No icons on desktop, no taskbar, just a black screen with my pointer. I got a response to restart, press F8 to restart the menu, select Safe mode with network, but at this stage of my computer, it is in safe mode, help!

    Ideas:

    • Programs that you have problems with Windows XP
    • Error messages
    • Recent changes to your computer
    • What you have already tried to solve the problem

    Remember - this is a public forum so never post private information such as numbers of mail or telephone!

    Hello tfortexas

    Do you get the login screen before the black screen?    You never even get to the desktop?

    Try this fix.  You will need an XP installation CD.  If you don't have that it is OK to borrow one.  Try to get the same version of XP as your example Home/Pro/Media

    Configure your PC to boot from the CD if it is not already configured in this way. You may need to enter the BIOS to configure the PC to boot from the CD.

    Set the boot order of

    Floppy (if present)

    CDROM

    Hard drive

    RECORDING and EXIT

    Start your PC with the XP installation CD in the drive. When you see the prompt «Press any key to boot from CD...» ", do and start the process to boot on CD.

    When the Recovery Console option is available ("press R to start the Recovery Console"), do it. You may be asked to what Windows installation to enter, what kind of cases the number of the Windows installation you want to work (usually ' 1').

    When you are prompted, enter the password for the Windows installation. If you have not set up a password just press ENTER

    At the command prompt, type

    FIXMBR

    Come in

    Then type

    Fixboot

    Come in

    Type

    OUTPUT

  • Access the menu bar drop down everything by changing the menu items

    Hello

    I use a design of producer/consumer.  In the producer, I have a structure of the event which generates messages for the consumer based on the event.  One of the events in the event structure is placed to get the menu selection.  In the loop of consumption, some States modify the menu bar items.  For example, if the program mode from automatic to manual, the items of the menu bar change accordingly.

    The problem I have is if the mode is changed to auto, for example, and then a menu bar dropdown can be reached quickly afterwards (sometimes happens accidentally even), before the menubar item change happens, there is a mistake and labview crashes.  I guess the problem is that the menu bar is connected the user while he tries to be changed. ?? Disable the menu followed until the elements are correctly changed does not help, because it does not prevent you from pulling a menu down, only to make a selection.

    Any advice?  This is the problem because it seems to me, in any case.

    Thanks as always!

    Greg

    You can set the cursor "Occupied" until such time that your Menu is updated.

    So user will not be able to click on the Menu.

  • Run the menu error

    Hello world

    I run intoanother apparently simple problem, but I just can't get my head around it.

    I want to set up a simple menu of execution of a control where the user can select different options.  RTM reviewed and set by default no problem.  Right-click on the control when running, the correct menu does appear, no problem.

    Problem arises when I want to set the menu checked or unchecked entry. My problems are:

    1. Why didn't - not the refnum menu that appears in the "Selection of the Menu?" events (user)  Do I have to intercept the reference of the event "Meu activation?" menu for control?
    2. When I catch the reference in this way (changes reference to each menu selection), I get "Menu invalid 1160 error" when I try to change the items in checked or unchecked...  I store the reference in a registry to offset for later use when a different menu event is triggered.

    Can someone please take a look at this VI and let me know what I am doing wrong?

    Why the run menu not can not simply be read of the property of a control node?  It would be so easy.   Or if I know the name of file for rtm, how can I get a valid reference to it?

    Sorry what are silly questions, but I just can't understand it right now.

    All screws are 8.2.1.

    Thank you

    Shane.

    "When I catch the reference in this way (changes reference to each menu selection), I get"Menu invalid 1160 error"when I try to change the items in checked or unchecked...". »

    Make these changes in "activation of the Menu (user) selection event?

    The menu "(user) the Menu selection event" is after the display was done, so it is normal is not to place a check (make a change)

Maybe you are looking for