12-18-2014 09:22 AM
Is there a way to get all files in a project by using vi scripting?
I don't want only all VIs in memory...
12-18-2014 12:14 PM
Use the Get All Descendents method:
This code removes empty paths from the list (for things that don't have paths, like variables, targets, etc.). Thise code does not remove duplicates (like if you have the same file under multiple targets). And you can specify filters on the method, like whether you want to exclude dependencies.
12-19-2014 01:17 AM
Nice!
Thanks!
12-19-2014 02:02 AM
I want to know if there are any broken vit in the project, now that i've the list of all VIs i can filter for the ".vit" only.
But, how can i know if the selected vit is broken?
If i use the execution.state method i always get "Bad" because the vit is not running.
I don't want to run these VIs...
12-19-2014 11:29 AM
Read the help on the execution state. Bad means cannot execute, Idle means no running.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
12-22-2014 01:58 AM
Ok, i've read the help but:
Every single .vit in my project is not broken, and of course, in the other side of the case structure there is a false
Is there something I'm missing in the operation of the property node?
12-22-2014 02:31 AM
You're converting a full path to a string and feeding that into the Open VI Ref function. I'm guessing that's returning an error.
You should either give it a full path or just the fully qualified name (if the VI is already in memory, which I'm not sure if it is if it's just in the project, so you should stick with the path).
12-22-2014 03:56 AM
Indeed...
There is an error
I finally resolved, thanks to everybody!