Hardcode menu selection

How to hard code value for a menu selection?
I want a specific menu option to be selected if i click a particular button.

309...,
In your .jpg you show an event structure embedded inside another event structure.  Don't do it!  You are going to wind up having lots of problems with your code.
Event structures capture events even when they aren't in the current path of execution.  So if you do a number of menu selection (Apps) before you do a Cut (Value Change) you'll wind up accumulating events in your queue for the inner event structure.  Possibly to the point of even crashing your program, but at least to the point that your program will seem like it's not behaving the way you want to.
There should be only one event structure in any given while loop.  Any given event case should run quickly enough so that the front panel always seems responsive to the user.  Never trap an event structure in a piece of code that may not be executed or not executed for a long time (such as in a case structure or another event structure.)

Similar Messages

  • Lightroom trial doesn't show complete menu selections or import button.  Also get error message on launch:  An error occurred when attempting to change modules.  I am unable to find/see the following file to try renaming the SLCache and SLStore files:  Sy

    Lightroom trial doesn't show complete menu selections or import button.  Also get error message on launch:  An error occurred when attempting to change modules.  I am unable to find/see the following file to try renaming the SLCache and SLStore files:  System Library/Application Support/Adobe.  Any ideas?  I only have 16 days left on the trial and have been unable to get it to work on my Macbook Pro.  This is all I am seeing after Lightroom opens.  Thanks!

    Thanks to both of you for attempting to help.  I finally figured out what was wrong . . . it was a Permissions problem.  Very frustrating, but after scouring the troubleshooting tips I finally found the one that solved my problem.  I had to add a User and give it Read/Write privileges to Lightroom.  The file I had to add the User to was Hidden on my Mac, so that added an even bigger challenge to the mystery.  Only a few days left on my trial version!  I hope I have time to try it out!

  • I am trying to get the most speed out of the browser, instructions say to type about:config in the address bar and hit enter, I did this. It now says to rt. click, from the menu select "New" then "Integer", I cannot find "New", I need better directions.

    when I typed in about:config in the address bar and hie enter, what appeared looked like a lot of files, pages of them, I didn't know where to right click from the menu select "New"

    Which prefs to you want to change?
    It is not recommended to change prefs in order to tweak some settings.<br />
    Do you have specific problems?

  • How do I make a drop down menu selection show up in another web page?

    What I am trying to accomplish is this.  I have a page with various drop down menu selections that I want to transfer the selection to a secured web page. What happens now is once the selection is made it goes to the secure page but then the user has to again select the choice again.  Is there way to keep the selection chosen in the linked page?

    You can set the "selected" value in the second page based on the input from the first page.
    Ignor the language referance used below for the example and simple use the concept with your desired language.
    Second Page form:
    <form id="form1" name="form1" method="post" action="">
      <select name="testing" id="testing">
        <option value="Value 1" <% if ( Passed values == Value 1 ) { %>selected="selected"<% } %>>Lable 1</option>
        <option value="Value 2" <% if ( Passed values == Value 2 ) { %>selected="selected"<% } %>>Lable 2</option>
      </select>

  • Capturing a front panel menu selection in a SubVI

    All,
          Title is pretty descriptive, so i've got a subvi that's running pretty much in a while loop and I want a menu selection from the parent VI to be able to cancel it. What i've tried so far is passing the reference to the front panel menu and then trying to detect a valuechange/mouse click/ selection etc in an event loop in the SubVI. The problem is it doesn't look like the front panel menu registers the change until after the SubVI finishes executing. How can I fix this?
    Regards,
    Ken

    Hi Ken,
    I hope you are doing well today! Before I attempt the answer your question, I
    need just need to clear a few things as to what you are trying to do. Are you
    trying to stop the while loop in the subVI from the parent VI? And, what’s the
    purpose of using a menu selection? If you can post a simple example, that would
    be great.
    Adnan Zafar
    Certified LabVIEW Architect
    Coleman Technologies

  • "Document Numbering" & "Relate Series To Document" Menu Selection

    Hi Guys,
    I am confused with the database that I am seeing. I am currently running SBO 2007A (8.00.177) PL 38.
    I have 2 databases both are the same version 800177 but I am seeing a strange thing.
    In the one database under "Administration -> System Initialization -> Document Numbering" I am seeing two selections namely: "Relate Series To Document" and "Numbering Series"
    In the other one database under "Administration -> System Initialization ->" I just have one menu selection called "Document Numbering"
    I am confused. Can someone please tell me why for the document numbering I have seeing two different menu items and windows to define number series and assign it to the documents.
    Thanks very much.
    BR,
    Jimmy

    Hello,
    Can you please check in both of the Databases whether under Administration > System Initialization > Company Details > Basic Initialization Tab > Permit More than one document type per series is ticked.
    In which the above will be ticked, the two windows will show whereas where the above tickbox is not checked the one window of Document Numbering will be shown.
    Hope it clarifies.
    rgds,
    Jitin Chawla

  • Handling menu selection in multi states of states machine

    Hi everyone,
    My application uses states machine architecture, I have to handle menu selection in two different states and the 2nd of them has to be handled by the event case structure.
    The problem is that when I use event structure in the 1st state it is also handled later by the event case in the 2nd state and it is impossible to handle menu selection in the 1st state by the "Get Menu Selection" block because according to it's descripton if event structure is configured to handle the same menu as item as this block, LabVIEW ignores this function.
    I would be greatful for any clue.
    Greetings,
    Mariusz
    Solved!
    Go to Solution.

    Thanks for respond.
    Here's a code explaining the main idea.
    Attachments:
    Untitled 1.vi ‏9 KB
    Enum_States.ctl ‏5 KB

  • File Upload/Menu Select Option

    I have a form that needs to have a combination of a file
    upload or a menu select option. The client I have been
    working with wants to use an insert form to insert a new
    record. If the file that they want doesn't have the filename
    their looking for in the menu list, they want to use the
    option of uploading a file. I'm having trouble combining the
    processing script for this and was wondering if anyone can
    help me put this together; it's an interesting challenge.
    PHP:
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
    $editFormAction .= "?" .
    htmlentities($_SERVER['QUERY_STRING']);
    if ((isset($_POST["MM_insert"])) &&
    ($_POST["MM_insert"] ==
    "form1")) {
    define('UPLOAD_DIR', '../../photos/staff/');
    $file = str_replace(' ', '_',
    $_FILES['staff_photo']['name']);
    $permitted = array('image/gif', 'image/jpeg',
    'image/pjpeg', 'image/png');
    $typeOK = false;
    foreach ($permitted as $type) {
    if ($type == $_FILES['staff_photo']['type']) {
    $typeOK = true;
    break;
    if ($typeOK) {
    switch($_FILES['staff_photo']['error']) {
    case 0:
    if (!file_exists(UPLOAD_DIR.$file)) {
    $success =
    move_uploaded_file($_FILES['staff_photo']['name'],
    UPLOAD_DIR.$file);
    if ($success) {
    $insertSQL = sprintf("INSERT INTO staff (staff_name,
    staff_position, staff_subposition, staff_desc, staff_photo,
    staff_spec_1, staff_spec_2, staff_spec_3, staff_spec_4,
    staff_spec_5) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s,
    %s)",
    GetSQLValueString($_POST['staff_name'], "text"),
    GetSQLValueString($_POST['staff_position'], "text"),
    GetSQLValueString($_POST['staff_subposition'], "text"),
    GetSQLValueString($_POST['staff_desc'], "text"),
    GetSQLValueString($_POST['staff_photo'], "text"),
    GetSQLValueString($_POST['staff_spec_1'], "text"),
    GetSQLValueString($_POST['staff_spec_2'], "text"),
    GetSQLValueString($_POST['staff_spec_3'], "text"),
    GetSQLValueString($_POST['staff_spec_4'], "text"),
    GetSQLValueString($_POST['staff_spec_5'], "text"));
    mysql_select_db($database_wvgsadmin, $wvgsadmin);
    $Result1 = mysql_query($insertSQL, $wvgsadmin) or
    die(mysql_error());
    if ($Result1) {
    $insertGoTo = "staff_list.php";
    if (isset($_SERVER['QUERY_STRING'])) {
    $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
    $insertGoTo .= $_SERVER['QUERY_STRING'];
    header(sprintf("Location: %s", $insertGoTo));
    } else {
    $result = "Error uploading $file. Please try again.";
    break;
    case 3:
    $result = "Error uploading $file. Please try again.";
    default:
    $result = "System error uploading $file. Contact
    webmaster.";
    } else {
    $result = "$file cannot be uploaded. Acceptable file
    type: .gif, .jpf, .png";
    HTML FORM:
    <form method="post" name="form1"
    enctype="multipart/form-data" action="<?php echo
    $editFormAction; ?>">
    <table width="80%" align="center" cellspacing="0"
    border="0">
    <tr valign="baseline">
    <td nowrap align="right">Select Photo:</td>
    <td><select name="staff_photo">
    <option selected="selected"></option>
    <?php buildImageList('../../photos/staff/'); ?>
    </select>
    <span class="small">   (If
    there is no photo
    available, please choose 'No-Phot-Available.jpg' or 'No
    photo')</span></td>
    </tr>
    <tr valign="baseline">
    <td nowrap align="right">Upload Photo: </td>
    <td><input name="staff_photo" type="file" />
    </td>
    </tr>
    <tr valign="baseline">
    <td nowrap align="right"> </td>
    <td><input type="submit" value="Insert
    record"></td>
    </tr>
    </table>
    <input type="hidden" name="MM_insert" value="form1">
    <input name="staff_photo" type="hidden" id="staff_photo"
    />
    </form>

    In this case, I think you might need to
    1) Create a transient attribute in the VO.
    2) Either create a method in AM to get the file id based on the attachment entity name/id(using PL/SQL) and set the view attribute accordingly
    or call a PL/SQL procedure to get the file id in the getter method of the transient attribute.
    Look at this forum entry to get the file id.
    How to display Attachments on OAF page for different entities
    Regards,
    Peddi.

  • Menu selection issues in Flash CS4 for Mac

    I'm having a few menu selection issues in Flash. It seems some fields are de-selecting automatically (and quickly). For instance:
    1) When I double-click a layer to change it's name, it highlights then immediately de-selects. I can only rename by right-clicking and bringing up the Properties dialog.
    2) Fields highlight briefly then immediately de-select in the Properties menu when using the Tab button to advance or cycle thru fields. I have to click on each field individually to enter dimensions/characters.
    Possibly related...
    On occasion, I'm having an issue in Photoshop where the tools are off by 30 pixels or so. Examples:
    - Paint brush affects an area approximately 30px to the right and down from the brush head.
    - Selection tool selects an area approximately 30px to the right and down from the arrow head.
    This only happens on occasion and can be fixed by restarting Photoshop. I have not had any luck fixing the problems experienced within Flash.
    I'm experiencing this on two different machines that have CS4 installed. My only guess is a conflict with a Logitech driver OR a Wacom driver, but I have uninstalled the software and unplugged the Logitech mouse and Wacom tablet to no avail.
    Long time Flash/Photoshop user.... never had a problem like this.
    Anyone else have these issues or know a fix?
    Mac OS X 10.5.7
    Macbook Pro & iMac
    Logitech Control Center 2.7.0
    Wacom Driver 6.1.1-2(RC) for Mac OS X v. 10.4 & 10.5

    Hi there,
    This is a known issue, however we have not been able to reproduce it internally. The way to fix it (assuming it's the same problem) is to change your workspace (such as resetting to a default shipping layout, and then modifying from there), as it seems as though something about the workspace is causing the problem. It could be very specific to where its layed out on your monitor(s), some exact pixel size of a panel and/or grouping - and so on. However, we haven't been able to reproduce this internally yet - only reproed and fixed similar problems - so I cannot say for sure, however changing the workspace has fixed it for the other users I've talked to seeing this one.
    If you are able to share the following about one or both of your computers and send it to jdh (at) adobe, greatly appreciated:
    * workspace XML file from the Configuration directory (before changing the workspace!)
    * description monitor layout (ie: primary on left, secondary on right... or "one" )
    * monitor resolution(s)
    * screenshot(s) of your layout exhibiting the problem
    Thanks!

  • IPhoto 7: Menu Selections Gray, Photos Don't Show

    Trying to install iPhoto 7 (iLife '08) on my dad's iMac G4 (1 GHz, PowerPC, 768 MB RAM, OS 10.4.11) -- ignore the computer info below as that's my own computer, not the one on which I'm trying to install iPhoto.
    According to the package and Apple's web site, iPhoto 7 should work on this computer. However, after installing and running iPhoto, the photo library doesn't open and almost all menu selections are gray. I have tried following Apple's instructions for rebuilding the library (holding down Command-Option while starting) and that does not happen. I have tried updating iPhoto 7 to 7.1.4 and the same things happen. I can select the Help menu. I can also select the Preferences menu item but the Preference panel does not open. I can quit iPhoto. That's about it.
    I tried rebuilding the old library (iPhoto 2.01) and reinstalling iPhoto 7. Nothing changed. I tried using iPhoto Library Manager to rebuild the library and that made no difference. I cannot manually import photos from the old library because the menu selections don't work.
    What am I missing?

    Terence -- I really appreciate the time you're taking to try to help me.
    I upgraded iPhoto all the way to 7.1.5. Nothing changed.
    Per Apple's instructions for rebuilding the photo library, I launched iPhoto holding down the Command-Option keys. Nothing changed -- the library was not rebuilt as far as I could tell.
    I tried launching iPhoto with just the Option key pressed as you suggested. Nothing changed -- no menu.
    Every time I launch iPhoto, I get the opening splash screen that, if clicked, takes me to the iPhoto page of Apple.com.
    Could this be an operating system problem? Do I need to try to reinstall OS 10.4.x and then upgrade back to 10.4.11? I would need to do an "Archive and Install" since I would be installing an earlier version of the OS over the current, older version. If I need to do that, what issues am I facing in order to get the settings (System Preferences, etc.) back to where they are now?

  • Get menu selection help

    Hi I am new to the Labview world and am having a bit of an issue with the get menu selection vi.  I opened an example (Queued Message Handler.vi) and basically copied that get menu selection setup in my vi.  Yet all i get for menu selections are null strings.  I have tried to set the get menu selection timeout to -1 then selecting a menu item.  I still get a null string from it so I know it isn't some timing issue.  I have attached a copy of my vi.  The runtime menu I was using was just File with an exit option.  There are a couple sub vi's that i made that are required to run Queue.vi but they arent really needed to see what I am doing.  Thanks for any help in advance.
    Attachments:
    Queue.vi ‏59 KB

    Hi Superseadragon,
    I recommend you to use an event-driven state machine desing pattern that combines a queued state machine and event structure into a hybrid single-loop design pattern.
    I made an example with your code but as I don't have your set up I put in commentary all the communication function.
    To close the VI click on the cross on the upper right corner like for a tradionnal application.
    You can fire an event from the run time menu. I included a case in the event structure. Have a look at it. This is not the only way to do it.
    Have fun with your algae!
    Charly
    It's always sunny in California! Certified LabVIEW Associate Developer!
    Attachments:
    SuperSeaDragon.zip ‏135 KB

  • Programmatically simulate the Get Menu Selection vi

    Hi,
    I'm using LabVIEW 8.5 base version (no event handling). I have created a custom RTM (Run-Time Menu) and use the Get Menu Selection vi wired to a Case structure to handle all the items. (Part of the handling it to put a check mark next to the selected menu item and clearing the check mark from all other items using the Set Menu Item Info vi. Too bad it doesn't do that automatically. Maybe it does in newer versions, but I digress.)
    My application can save and recall setups. When I recall a setup I would like to programmatically call the respective Case, as is done by the Get Menu Selection vi, even though the menu is not actually clicked by the user. I cannot find a way to do this. Is is possible?
    Thank you.
    Ed
    Solved!
    Go to Solution.

    Edjsch wrote:
    Thank you for your reply. It looks like there is no convenient way to "simulate" a Windows "event" with the base version. Duh! 
    I'd take that a step further and say there is no convenient way to write software without the event structure.  I don't know how people write code without it.  This limitation has been removed and the event structure comes with all versions of LabVIEW as of 2012.
    As for my virtual keyboard trick, here is a better one I didn't get a chance to check the link previously.
    https://decibel.ni.com/content/docs/DOC-15310
    With that you can call a subVI that will invoke the Alt+F or whatever to open menus.
    Edjsch wrote:
    Note that in the Get Menu Selection vi's Case structure, I had to actually clear each check mark and set the one for the current selection, since the RTM does not handle check marks automatically, as, for example, Visual Basic does. Again, maybe newer versions do.
    They do not, you are welcome to make an idea exchange for it, but I'm fine with toggling that bit myself.  But then again I can't think of a time when clicking on a checked item, shouldn't uncheck it so I can see your point.
    Edjsch wrote:
    Let me know if anyone would like to see screen shots of that area of my block diagram.
    Never post screenshots. 
    When posting code post the actual code not a screenshot.  You wouldn't take a screenshot of a text file and post it on a text language forum.  Upload the actual VI, or zip several files and upload the zip.  The exception to this rule is when uploading a VI Snippet.  This is an image with the VI embedded in it, so the source is still intact.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • I am using the "Menu Selection With Events.vi" example alongside other while loops, When I select exit from the new menu it stops the other while loops but not the menu/event while loop

    The event driven menu example works fine and I've integrated it into my application. I have built in simple local vars to link menu selections to existing GUI buttons. The problem is that I cannot get the File-Exit menu option to switch off/terminate the application. The [1] "Stop": Value Change panel of the event structure simply switches off the other while loops but leaves the event while loop running. Add a while loop to the axample using a local var from the event while loop to terminate 2nd while loop to get the effect.
    Help appreciated, Chris

    Attached you will find a modified version of your VI.
    I documented what I did on the block diagram.You were right on you just needed to add a variable with a true wired to it.
    Have fun with it.
    Joe
    Joe.
    "NOTHING IS EVER EASY"
    Attachments:
    Menu_Selection_with_Events_%26_while_loop[1].vi ‏76 KB

  • Creating an Extras menu selection

    Hello there,
    I was wondering if anybody can help me with this.
    I want to create an Extras menu select option on the title menu of my film. Here will be extra footage and other bonus material.
    Firstly, I understand how the menu markers and scene markers work, but am confused on how to achieve this set up.
    My extras footage are in seperate projects to the main film. My first attempt was exporting the extras footage and placing into
    the main project where my feature film is and added it on to the end, placing a menu marker at the start of the extras footage.
    This worked, but I obviously dont want the extra footage to play directly after the film once its finished, but will do as its in the same project as the feature film.
    I hope that makes sense?
    basicly this is what options I need on the main menu screen:
    -Feature Film > Play
    -Extras > (once selected the following options are avaliable in the extras menu)
    >Bonus footage
    >Making of
    >Interviews with cast and director
    So its set up is typical to most dvds today. If anyone knows how to achieve this please get in touch, or at least tell me if its possible or not.
    Kind Regards
    Mike

    It is correct to put all your footage into the project timeline. What you must do is to use the 'Stop' marker at the end of the your main film. The stop marker returns you to the main menu so will not automatically play your extras.
    However do NOT put a stop marker at the very end of the timeline - PRE automatically returns to the menu at the very end of the timeline and adding a stop marker there usually crashes the encoding process.
    Cheers,
    Neale
    Insanity is hereditary, you get it from your children

  • Menu selection event

    Is there any way to generate a Menu Selection Event for a menu item that has a sub-menu?

    You can handle the "Menu Activation?" (Filter) event to set the menu item info before it is displayed.
    The attached VI has a custom menu. Set the "Checked?" boolean to the desired value and then activate the menu to see the effect.
    Attachments:
    Menu_Test.zip ‏9 KB

Maybe you are looking for

  • A question based on classroom in a book cs5????

    So i am new to flash and wanted to learn so i went and bought the classroom in a book for flash cs5 to self teach my self and well in chapter 6 it has you create a navagation menu. This menu has four boxes you can hover over and click ( i completed t

  • Error when Installing Exchange 2010

    I get the following error when attempting to run setup /PrepareAD /OrganizationName:vdh -- Clean Install of Exchange Entry DN: cn=X400,cn=409,cn=Address-Templates,cn=Addressing,cn=vdh,cn=Microsoft Exchange,cn=Services,cn=Configuration,dc=lab,dc=bhavi

  • What is the payment procedure from Apple?

    We have set-up a company in India to develop App. We need to know, how Apple will make payment once our App starts selling? We do not want to be double taxed in India as well in USA. What is the method in place from Apple?

  • Media server dynamic buffer

    Hi, I am evaluating flash media server for usage of our camera application. Reason that I wanna use this is that mediaserver has ability for dynamic buffering. My question: is it possible to set up dynamic buffer if it not a pre recorded file. For ex

  • How do I activate the Multi-Screen Sharing in Lion?

    Hi, How do I activate the Multi-Screen Sharing in Lion? I was told it was on by default but when my partner logs in from his machine, I can't also login to the actual Mac itself. When I first enabled Sharing it allowed him to connect even though I wa