04-24-2018 03:25 AM
Hi,
someone know if there is a way of retrieving the current System Definition File Path reference from the Inizialiation.vi of a Custom Device that has just added?. (I need the path reference in order to add programmatically some alarms from the Main Page.vi and I don't want to ask the user to enter the file path of the Sys Def).
Thank you,
Francesco
Solved! Go to Solution.
05-07-2018 03:00 AM
After a research on this Community, I found a good solution in order to retrieve the Sys Def Root reference from any node of your Custom Device. Then you can use this reference in order to navigate the Sys Def tree and add any type of node (Alias, Alarms, Calculated Channels, etc.).
Now I need a way of refreshing the tree, so I can see immediately the modifications. At this link an user wrote a post about this issue. If someone is able to find a solution, he can share It with the Community, thank you.
I attached an example Custom Device for testing.
Here is a snippet of the main code in Main Page VI.