LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I want to use "Ctrl+Shift+E" (this vi in project) in LabVIEW8.6

Solved!
Go to solution

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?

0 Kudos
Message 1 of 11
(2,540 Views)

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…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 11
(2,536 Views)

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)

0 Kudos
Message 3 of 11
(2,526 Views)

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…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 11
(2,486 Views)

@GerdW He is talking about this function:

Basjong53_0-1679998938626.png

 

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.

Message 5 of 11
(2,478 Views)

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.

0 Kudos
Message 6 of 11
(2,342 Views)

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.

0 Kudos
Message 7 of 11
(2,417 Views)

Hi hanamaru,

 


@hanamaru wrote:

LabVIEW 8.6 does not have that feature.


Simplest solution: upgrade to a recent LabVIEW version! 😄

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 8 of 11
(2,400 Views)
Solution
Accepted by hanamaru

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:

 

  1. Take the attached file and place it in <LabVIEW>\project. Note that there's probably already another version of the file there, so you might want to back that up first.
  2. Open the settings dialog and go the Menu Shortcuts page. Find the Tools menu in the tree and the first option is probably MAX (Measurement & Automation Explorer). Select it.
  3. In the bottom there's a field for the shortcut. Click in it and then click Ctrl+Shift+E and then the Set button.
  4. The shortcut should now launch your VI.

 

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:


Show VI in project.png

 

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).


___________________
Try to take over the world!
Message 9 of 11
(2,392 Views)

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

hanamaru_0-1680074043712.png

 

Assign Ctrl+Shift+E to Tool Options menu shortcut

hanamaru_1-1680074281822.png

0 Kudos
Message 10 of 11
(2,376 Views)