03-28-2023 02:52 AM
Hello everybody.
I would like to use the keyboard shortcut "Ctrl+Shift+E" (this vi in project) in LabVIEW 8.6.
Is there any way?
Solved! Go to Solution.
03-28-2023 03:08 AM
Hi hanamaru,
@hanamaru wrote:
I would like to use the keyboard shortcut "Ctrl+Shift+E" (this vi in project)
What do you want to achieve exactly?
Should the LabVIEW IDE do something when you press <Ctrl-Shift-E>? Or should a (running) VI react when you press those keys?
@hanamaru wrote:
Is there any way?
Use an event structure to handle KeyDown events…
03-28-2023 03:22 AM
Thanks for your comment, GerdW.
What I want to do is to open vi from the project explorer while editing vi, and then press the shortcut key "Ctrl+Shift+E" from vi to return to the project explorer.
Or I want to use a function similar to that.
(Since I can only speak Japanese, I used Google's translation function for this sentence)
03-28-2023 05:09 AM
Hi hanamaru,
@hanamaru wrote:
What I want to do is to open vi from the project explorer while editing vi, and then press the shortcut key "Ctrl+Shift+E" from vi to return to the project explorer.
Or I want to use a function similar to that.
You can use the <Enter>/<Return> key to open a VI from the project explorer tree.
And you can use <Alt+Tab> to return to the project explorer window…
03-28-2023 05:22 AM
@GerdW He is talking about this function:
If you press ctrl+shift+E while a VI is open, it will bring the active project to the front and highlight the opened VI in the project, showing the location of the VI in the project.
This is extremely useful if you need to find where a subVI is in the project.
I don't have LabVIEW 8.6 so I cannot help you further, but I just wanted to clarify.
03-28-2023 07:23 PM
Dear Basjong53
It's morning in Japan now.
Yes, I would like to use the function that Basjong53 explained.
LabVIEW 8.6 does not have that feature.
03-28-2023 07:39 PM
Dear Basjong53
It's morning in Japan now.
Yes, I would like to use the function that Basjong53 explained.
LabVIEW 8.6 does not have that feature.
03-29-2023 12:51 AM
Hi hanamaru,
@hanamaru wrote:
LabVIEW 8.6 does not have that feature.
Simplest solution: upgrade to a recent LabVIEW version! 😄
03-29-2023 01:14 AM
Doing this is actually a bit complicated.
The menu function doesn't exist in LV 8.6, so you can't call it directly and would have to do this using scripting, which isn't directly accessible in 8.6 without an INI key.
The next complication is that you can put your custom VIs in the menu by putting it in some special folders and you can assign it a shortcut, but that shortcut will not be saved when you exit LV.
It's possible to run a montioring VI in a private context when LV loads and have that monitor the key combination, but then it might be a bit tricky to figure out what the active VI and project are.
Attached is one way to achieve this:
This LLB includes a VI which launches MAX and because it's a standard item with a tag in the menu, you can assign it a permanent keyboard shortcut (a trick I learned from Darren). The replacement VI implements the highlighting function and works like this:
The biggest downside with this approach is that in the menu you still see MAX, but since you want to use the shortcut, that doesn't matter. If you do want to also see it in the menu, you can extract the VI from the LLB and save it in <LabVIEW>\wizard (you might need to create the folder). After a LabVIEW restart the VI should appear as an item in the File menu (I don't think there's a way to add it to the View menu).
03-29-2023 02:19 AM
hello tst
Yay done! Surprise.
It was a little tricky, but it worked.
I'm so happy.
Thank you very much.
what i did
Rename original max.llb and copy new max.llb
Assign Ctrl+Shift+E to Tool Options menu shortcut