|
|
|
|
|
NI Discussion Forums :
Most Active Software Boards :
LabVIEW :
Darren's Weekly Nugget 08/03/2009
|
|
|
|
|
|
|

|
Darren's Weekly Nugget 08/03/2009
|
|
Darren
Proven Active Veteran

Message 1 of 6

Viewed 1,891 times
|

|
|
One helpful LabVIEW feature that add-on developers frequently utilize is the fact that you can place VIs in the [LabVIEW]\project folder to create new entries in the Tools menu. Did you know that you can also place VIs in the [LabVIEW]\help folder to have them appear in the Help menu? Or the even less well-known [LabVIEW]\wizard folder to have them appear in the File menu? This functionality has been around for a long time, and there are even some private VI Server properties that help you determine the VI from which the menu option was selected. In LabVIEW 2009, I added a VI to vi.lib that will give you this information (it basically just wraps the private properties). Check out [LabVIEW]\vi.lib\VIServer\Menu Launch VI Information.vi. This VI will return the App reference of the owning app for the VI from which the menu item was selected, along with the VI name. You can then wire these items to an Open VI Reference function to gain access to the VI from which the menu item was selected.
|
|
|
|
08-03-2009 07:11 PM
|
|
|
|
|

|
Re: Darren's Weekly Nugget 08/03/2009
|
|
Zbigniew StS
Proven Veteran

Message 2 of 6

Viewed 429 times
|

|
|
Very good nuget. But there is a question: how could I assign a keyboard shortcut to so represented in, let's say File menu, VI?
Regards Zbigniew St. Sobków, LabVIEW Champion, CLD, CPI AGH UST Dep. of Electronics, Poland _____________________________________________________________________________ "You can lead a horse to water, but if you can get him to float on his back you've got something."
|
|
|
|
01-07-2010 02:44 PM
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|