03-19-2020 12:40 PM
I've inherited a project that implements this engine
https://forums.ni.com/t5/LabVIEW/Tushar-s-Event-Architecture/td-p/673475
That is, in one VI that is subscribing to an event, will call it SetTheOutput and has a Case for handling that event. Various other VIs in the project can RaiseEvent on this SetTheOuput and pass the data SetTheOutput needs.
My problem is, a Ctrl-F search from within the project file for SetTheOutput doesn't find the Case where this is being handled. It took me the better part of a couple of days of working backwards to find where SetTheOutput was actually coded (buried in a file name that made absolutely no sense or connection to why SetTheOutput was put there). If I Ctrl-F on this vi it does find the SetTheOutput text in the Case statement and 2 other places as well.
This is LV2019. The vi where SetTheOutput is handled is included in the project file. Doesn't make any sense to me.
03-20-2020 04:43 PM
Maybe ctrl + F search will only look through VIs that are loaded into memory. So if you just open the project and press ctrl + F then it won't find much because nothing has been loaded.
Try opening the Top-level VI of your project. This should load all VIs (except ones that are dynamically dispatched) and maybe you'll have better search results?
03-30-2020 12:53 PM
I came to that conclusion as well not long after posting this. I feel like this is something that can be improved on from NI as the search feature can be really useful when you've inherited a pretty poorly coded and documented base. I'm really surprised searching from the project file is only looking at loaded VIs, not surprised that searching from the top level VI doesn't find it as in my instance the top level calls one vi that simply calls another via invoke node with Wait Til Done set to false (no idea why they did it this way other than they didn't understand async calls or dynamic dispatch).
Would be nice if from within a given vi a CTRL-F allowed you to search a directory structure and subdirectories.