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
Tags: NI Software
Similar Questions
-
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.
-
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.
-
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"?
-
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:
-
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
-
Display the menu symbol programmatically
Is there any API that I can call that allows me to progrmatically the symbols screen? I don't want to touch anything, show only the existing one.
Thank you
Marc
You can use the EventInjector class to inject support of the symbol key. There is no API to directly display this dialog box.
-
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.
-
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:
- 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?
- 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)
-
How to call an existing application in the menu of an another aplication
How to call an application in the menu select an another application example in the menu objects switch (selected) {case 0: here the call to other applications aexisting? break;}
You can create a MenuItem that executes the code in this article.
How - to launch a third-party app to another third-party application
Article number: DB-00455 -
Normal actions in photoshop do not support the menu selection, I apppreciate as as easy as possible to have 2 windows for the same image tiled 2 place vertically and a disabling these zooms to 100% ii neee
What I need to do is:
window-> organize-> new window for
window - > organize - > 2, vertically upward
off the wiindows activate and zoom to 100%How is that possible?
can it be done automatically when I open a pic of LR?
Normal actions in photoshop do not support the menu choices
Have you tried 'Insert Menu Item?
-
To the menu choices are suddenly highlighted in pink.
Suddenly, some of the menu selections in Photoshop are highlighted in pink. How to remove the pink bars?
Large good advice it seems to dismiss the option 'New in CS6' workspace as the color seems to be the only way to distinguish the menu items are "new in CS6.
-
Yes, I want to see all the menu options
I have two copies of CS3, one at the office and one at home.
House shows all the menu options but has a below "Show all Options of Menu" which you select to see the rest of them. My Indesign CS3 at work is no not - it shows all the.
One might think, it is an element in the preferences, but I'm not. How can I get InDesign to always show all the menu selections?
Change the settings in your menu. Edit > menus.
The settings menu are saved as part of the workspace, if you select this option.
Bob
Maybe you are looking for
-
Y at - it a setting I can change to get the menu bar back?
-
Could not initialize the TestStand engine. Path not found.
Hi, so far I have installed and removed TestStand 3.5 3 times in a row, just to still get this message (see subject) when I try to start the sequence editor. I even uninstalled all the software of NOR I had on this laptop reinstall the whole... Nothi
-
Keyboard Acer Aspire VN7 - 791 G - 71P 5 is unable to send at the same time and when I hold the three keys within the group. Only the first two hits of the group in the order I press will be sent: for example, if I press on in the keys in the order l
-
I can see other computers on a network of peer to peer windows XP but cannot access their shared files and the shared printer. The computers are connected by a switch, fixed IP addresses that are correctly configured and point to a DNS server outside
-
TimerTask nullpointerexception
im getting a nullpointerexception when you try to start a timer task. The code works fine until I use a value of textbox as as possible. I have the string value, analyze as long and it goes to the white screen of ' you screwed up. So here's what it l