VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Rename a custom device

Solved!
Go to solution

Hi all,

 

i realized a custom device which perform certain operations with the associated DAQ board.

 

In the Veristand system explorer, in order to manage several boards, it is possible to add several instances of it. The name of each instance must match the associated DAQ board one, it is asked once and will never changes (in the custom device XML file i added the entry "<DisallowRenaming>true</DisallowRenaming>").

 

The asking for the name is done right after the addition of the instance in the system explorer tree (right-clicking the entry "Custom devices"). In particular, the name is asked calling a VI which i put in the "Initialization.VI" of the custom device configuration library. Unfortunately, with this approach i'm not able to change the name because ot the DisallowRenaming property and an error is raised.

 

How can i work around this problem? Is there an event like the ones described in the "Custom Device Guide" (OnDelete, OnLoad, ...) which can be fired before the calling of the "Initialization.VI", but after the addition of the instance in the system explorer tree?

 

Thanks,

 

aRCo

0 Kudos
Message 1 of 2
(5,604 Views)
Solution
Accepted by topic author aRCo

I recommend removing that tag from your main custom device item. its best practice to allow renaming the entire custom device.

 

also, you could store the name of the physical device as a seperate property instead of using the name of the custom device node.

 

Finally, in 2012 we added a "force rename" bool input to the rename item API to work around this.

Stephen B
0 Kudos
Message 2 of 2
(5,595 Views)