| Keysight.Visa Namespace > ResourceManager Class : Parse Method |
'DeclarationPublic Function Parse( _ ByVal resourceName As String _ ) As ParseResult
'UsageDim instance As ResourceManager Dim resourceName As String Dim value As ParseResult value = instance.Parse(resourceName)
public ParseResult Parse( string resourceName )
public: ParseResult^ Parse( String^ resourceName )
This method should succeed for all strings returned by Find and recognized by Open.
The value returned in Ivi.Visa.ParseResult.ExpandedUnaliasedName is, in most cases, identical to the canonical resource name. However, there may be cases where the canonical name includes information that the driver may not know until the resource has actually been opened. In these cases, the value returned will be semantically similar.
The value returned in Ivi.Visa.ParseResult.AliasIfExists allows programmatic access to user-defined aliases. Keysight VISA.NET recognizes aliases defined in the Keysight Connection Expert utility, which allows multiple aliases per resource. Parse returns the first alias it finds in the parse results. The ordering is not deterministic, so you should write your code to expect aliasIfExists to return any one of the defined aliases if multiple aliases exist.
Current with Keysight IO Libraries Suite 18