04-04-2014 12:39 PM
Good afternoon
It is possible to know whether a reference belongs to typedef? if it is possible, you can get the path of the file that is linked?
Thank you very much
Solved! Go to Solution.
04-04-2014 12:48 PM
It is a scripting node, but the TypedefPath is available for a Control
04-04-2014 02:42 PM
In addition to the "TypeDef?" and "TypedefPath" scripting properties there is also a VI in the vi.lib:
vi.lib\Utility\VariantDataType\ContainsTypedef.vi
This is intended to be used on a complex data structure and will tell you if it contains a type def.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
04-05-2014 04:25 AM
Thank you very much for the reply. But I find what he says, you can add an VI example?
I found another forum: http://forums.ni.com/t5/LabVIEW/Know-programmatically-if-a-control-is-a-typedef/td-p/1909897, but finds jcarmody options.
My version of LabVIEW is 12.0.f2
Thank you very much.
04-06-2014 04:58 AM
Hi, I keep trying to get the path but I can not. I found a link: http://lavag.org/topic/17702-strict-typedef-in-xnodes/ but I find the options palette XNode, in Propety Node. I am not able to find those options. No if someone can help me. Load the .vi example.
I'm new and I do not know where all things are, sorry.
Thank you very much.
04-07-2014 07:29 AM
Do you have scripting enabled? Go to your Tools >> Options, then the VI Server section and check the box "Show VI Scripting Functions"
Now your property nodes and invoke nodes will have a bunch of new methods. Attached is a VI that uses those methods.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord