private static string GetName( InstrumentDescription instrument )
{
string name = instrument.name;
if (string.IsNullOrEmpty( name ))
{
if (instrument.Identification != null && !string.IsNullOrEmpty( instrument.Identification.ModelName ))
{
name = instrument.Identification.ModelName;
}
else
{
name = instrument.uuid;
}
}
return name;
}