02-08-2023 06:52 PM
I wanted this feature for years but every time I checked over the years, no keyboard shortcut exists for the yellow bulb icon, on the FP menu, to "Highlight Execution".
Also, wasn't there an enhancement where a section of the LV code will run "Highlight Execution" instead of popping down a break point to stop, then mouse click "Highlight Execution", then reverse the changes when I'm finished, adding up the mouse travelling.
I'm using LV2020, was this implemented after LV2020?
Solved! Go to Solution.
02-09-2023 12:50 AM - edited 02-09-2023 12:51 AM
Well, the TopLevelDiagram class has the "Highlight Execution?" property going back quite a few versions, so it should be possible to do this yourself (QD shortcut, hijack a shortcut from the menus to activate for the current VI, etc.).
And yes, I'm pretty sure I also saw a demo of a breakpoint which can then enable the highlight. I'm assuming it was a QD shortcut or a shortcut menu option, which probably uses this property. It's also quite possible this was just an idea on the idea exchange. You can try searching for it in the relevant places or build it on your own.
02-09-2023 01:00 AM - edited 02-09-2023 01:00 AM
02-09-2023 04:15 AM - edited 02-09-2023 04:16 AM
You can do this with a toggle execution highlighting probe as well:
It seems to be standard in LV20...
02-09-2023 10:19 AM - edited 02-09-2023 10:21 AM
Aahaaa, so toggle execution highlighting seems very useful. It will eliminate doing-undoing 2-clicks for a break point, 1 click to highlight then the perform the reverse when done. This cuts my mouse clicks to half, well from 6 to 4 actually!
Still doesn't cover what I thought I saw in an NI demo posted as a upcoming feature (I think). Select the section of BD code you want highlighted (debuged) and turn Highlight on. (A shortcut key to enable disable Highlight is desperately needed.)
I don't see much use for the VI property node to enable highlight, it good to know it exist.
02-10-2023 02:39 AM
@richjoh wrote:
Aahaaa, so toggle execution highlighting seems very useful. It will eliminate doing-undoing 2-clicks for a break point, 1 click to highlight then the perform the reverse when done. This cuts my mouse clicks to half, well from 6 to 4 actually!
I think it will save a lot more clicks the 2nd time?
02-11-2023 04:38 AM
@richjoh wrote:
I don't see much use for the VI property node to enable highlight, it good to know it exist.
You could create your own QD shortcut with it. It would be a pretty quick one to write.
The problem with standard menu shortcuts is that they were starting to get hard to invent, as a lot of them are already in use. And inventing new combos besides CTRL-something and CTRL-SHIFT-something isn’t that easy and intuitive either.