03-29-2018 07:55 AM - edited 03-29-2018 07:56 AM
I know this is an old post, but I have a work-around to load all the VIs in the project into memory. Enable scripting, then call New VI Object for every vi in the project source folder and add it to a "VI Tree." Faster than dropping it all on the BD by hand :
09-29-2018 02:48 AM
I don't know if I do something wrong when using text search In labview.
I want to find all places where the phrase "DB: Look-up in DB ".
I know the phrase is used in four string constant's, but it doesn't find it.
Then I search for another phrase or word and it find two occasions but I know there is seven!
What is wrong with find function in labview?
And it's only in one VI. There is no subVI's.
/Bjarne
09-29-2018 06:55 AM
You are much better off starting a new thread.
I would be happy to do that for you but... what project? What vi? What search options?
Honestly, we can only offer advice on how to search for therapists to resolve your frustration BUT, if you knew how to search youself.... I like irony!
10-01-2018 06:00 AM
The search will only look in VIs that are loaded into memory. So you need to make sure that your VI is open. It could also be type sensitive.
10-01-2018 06:24 AM
There are also search options (in the text search dialog). By default I think they're set to true, but if you've set them to false, it will skip some parts.
10-01-2018 06:36 AM
Well, the vi is loaded into memory.
The search function is not consistent. Some strings it will find, some not.
I have at state machine with ~60 states.
Search function, in many cases, don't find text in case structure selector and not in all string constants.
10-01-2018 06:45 AM - edited 10-01-2018 06:48 AM
If you say so. Never bothered me.
Chances are you're doing it wrong or your expectations are wrong.
10-01-2018 08:04 AM
Hi
Attached is a vi (I know ...it's not working;))
Try search the text "DB: Data in NEW DB" without ""
When I do it, it only find the text outside the case structure.
I would expect it to find it in state case "Testdata: FilesInRank?"
Then try find "Testdata: FilesInRank?" At my PC it find it in state case "Macro: DataSend"
10-01-2018 08:42 AM
OK, that is funky.
"Tray: MenuItems" seems to corrupt the search, and specifically the (data in) the "Binary data for VASP icon" constant. And then especially the 0x00 in that data.
I'll point some NI rep to this thread. This is a serious bug.
10-01-2018 08:44 AM - edited 10-01-2018 09:09 AM
To summarize:
A string constant with "0x00" in it in a (case) structure, will stop the search. Cases after the case containing the "0x00" will not be searched for text.
Haven't looked into other multi case structures. EDIT: This does apply to stacked sequence structures as well, but not for event structures.
The entire traversal is stopped, so nested structures in subsequent cases are also not searches.
The 0x00 does not stop the search for functions, just text.
Note that a 0x00 in a free label does the same, as does a 0x00 in a label (constant or control, a 0x00 in a constant label might crash LabVIEW).