LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I control labview menus using labview code?

Maybe the question is strange, but well, I hope someone can help me ;)!

I want to control LabVIEW menus (>>Operate>>Make Current Values Default,>>Tools>>Build Application..., for example) using labview code.
I have checked OpenGCommander forum,but I have not found any solution.
I am working in Linux, so, I think I can not use Active X.

Any idea?

best regards,

Graci
0 Kudos
Message 1 of 4
(2,909 Views)
The menu functions are located under "Application control>>Menu" palette. You can use these functions to manipulate the menu bar during runtime.

Under "Edit>>Run-Time menu" you can edit the menu including creating your own items.

I'm working under Windows but Help does not state that it will not be availabel under Linux.
Waldemar

Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions
0 Kudos
Message 2 of 4
(2,905 Views)
hi Waldemar!

Thanks for your answer, I have tried your solution!I have built an example that I attached, but it produces an error, " Code 1164, Cannot modify an application menu item".
Even if it works, I am not sure, that it is going to be a solutiom for my problem.
Because my real problem is that I want to build an vi, that launchs a certain vi to build his block diagram, and we want to control labview menu, "to make the building of this vi more automatic" ( launch application builder, or show his block diagram...).
But the first problem is that when you built an exe, and from this exe you try to launch a vi, you can not edit his block diagram so I think that I can't use labview to do this. Any idea?

Gracinda
0 Kudos
Message 3 of 4
(2,879 Views)
Graci,

You should be able to find the right path for application builde VIs
(for window, it's under program files->National Instruments-> ...).
Then use VI server to launch the VI. Don't bother trying to control
LabVIEW menu. You can't.

George Zou
http://gtoolbox.yeah.net
George Zou
0 Kudos
Message 4 of 4
(2,857 Views)