VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Retrieve Sys Def file path from a Custom Device

Solved!
Go to solution

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

0 Kudos
Message 1 of 2
(2,535 Views)
Solution
Accepted by topic author fra_sab

 

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. 

CD_modifySysDef.png

 

Message 2 of 2
(2,431 Views)