Different users may create two different instruments with the same Name and VisaAddress. It’s hard to identify those two instruments with same Name and VisaAddress, so I Hope there will be a GUID property for Instrument class in the future release, like GUID in TestStep.
We have been discussing something like this before, but never really be able to figure out if it helped with resource GUIDs.
If two users create instruments with the same is it anyway confusing and they should consolidate that before going any further?
Also for test plans it is problematic since a test plan may be shared between users who set up the bench settings separately and then those GUIDs won’t match up.
In what kind of scenario would this GUID be useful?
Consider this scenario:
Different users create their own instruments and plans. Each user can only see the instruments and plans created by themself. Those instruments and plans information are stored in a database.
Multiple plans of different users can be executed at the same time.
When a user executes a test plan containing a scpi test step using an instrument, I need to create the instrument object based on the parameters of the instrument created by the user and add it to InstrumentSettings.Current. Before adding to InstrumentSettings, I need to check if the instrument object already exists in the instrument settings. I have to use the instrument object’s guid to determine the uniqueness of the instrument object.