LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Find a text inside a project ?

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 :open ref to all vis in project.png

Message 11 of 24
(2,562 Views)

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 

0 Kudos
Message 12 of 24
(2,481 Views)

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!


"Should be" isn't "Is" -Jay
0 Kudos
Message 13 of 24
(2,477 Views)

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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 14 of 24
(2,458 Views)

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.

0 Kudos
Message 15 of 24
(2,448 Views)

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.

0 Kudos
Message 16 of 24
(2,449 Views)

If you say so. Never bothered me.

 

Chances are you're doing it wrong or your expectations are wrong.

0 Kudos
Message 17 of 24
(2,442 Views)

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" 

0 Kudos
Message 18 of 24
(2,426 Views)

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.

 

0 Kudos
Message 19 of 24
(2,420 Views)

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.

Error cases.png

 

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

0 Kudos
Message 20 of 24
(2,419 Views)