LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

replace button dialog

I am trying to use the Find feature to locate all one button and two button dialog boxes in my VI so that I can replace them with my own message VIs.

This is a large application with many sub VIs as well.

I am having no luck finding them programatically and have to search manually.

Does anyone know of a way to find them?

Thanks

0 Kudos
Message 1 of 9
(3,225 Views)
Use the find vi.  Hit control F and then select the one button dialog under functions.  If you make your replacement vi with the same connection pane it will be a simple exchange.
 
Paul
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 2 of 9
(3,220 Views)
Here's a VI that will do it programatically using scripting.

Make sure you back up your project before running it though.




_______________________________________
Systems Test Engineer
Certified LabVIEW Architect (CLA)
0 Kudos
Message 3 of 9
(3,213 Views)
Thanks falkpl,
That seemed like it should work, but the NI core one-button dialog does not appear in the availablie VIs using the find function.

Thanks karissa, but I am using 7.1 and don't have a project.

I might try the script though.

Any other thoughts?

Thanks

0 Kudos
Message 4 of 9
(3,188 Views)
The odd thing about this is that it is searching for a label titled one button dialog.
If I search for the text "One", some of the one button dialogs appear in the results box, but others do not.
I can only assume that the search would yield the same issue.

Thanks anyway.

0 Kudos
Message 5 of 9
(3,185 Views)

The find works for me with 7.1.



Message Edited by Dennis Knutson on 07-08-2008 07:51 AM
Message 6 of 9
(3,183 Views)
Thanks Dennis, I was foolishly looking under VIs and not functions (I guess that I qualify for the "Duh" award).
0 Kudos
Message 7 of 9
(3,177 Views)


jspaarg wrote:
Thanks Dennis, I was foolishly looking under VIs and not functions (I guess that I qualify for the "Duh" award).



Probably, since Paul mentioned to use 'functions', but we all have those 'Duh' moments. I had a couple already before my first cup of coffee this morning.Smiley Wink
0 Kudos
Message 8 of 9
(3,169 Views)
Another trick when yuou cant find the vi is to place one down on your diagram and highlite it (click on it) then hit control+f this will bring up the find dialog with the function already selected.  The find tool is a great tool but is not used enough by many programmers.  The find text is graet for commenting code that has to be fixed or altered.  I will put a label "<Todo> fit this code ...more here..."  on my diagram then I can search for the <Todo> text and find all places in a project that I have not finished.  
 
Paul 
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
Message 9 of 9
(3,150 Views)