02-09-2024 07:07 AM - edited 02-09-2024 07:09 AM
LV2017SP1 32bit
looking for a way on the block diagram to export the results of a text search into a list.
static, one time requirement.
estimated hits: about 113
use case: need to isolate all table names (td... of a database) used in a case structure on various text queries (in nested sql statement sometimes):
rigth now, I see there are approximately 113 hits and swipping to them with Ctrl-G is possible.
all the marked text of all hits should be selectable at once somehow - instead of 113 times: mark, copy, paste, come back...
probably with another vi that crawls trough this one?
thanks in advance for any support
02-09-2024 11:56 AM
You'll likely want to enable VI scripting and use that.
After it's enabled, you will have access to "blue" VIs and property nodes usually hidden that will all VIs to probe the block diagram of other VIs, and change the diagram too. It would look something like this:
Link to NI general tutorial on VI scripting
Link to the specific page in the tutorial covering the "Traverse" function I showed in the example
02-10-2024 02:55 AM
Thanks for that, it guided me to the right direction and helps solving the task!
As an addition: the references (vi and string array elements) should also be closed by the vi 'Close Reference'