Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

PI Powershell

GetPIDigitalStateSet Class

  • Last UpdatedDec 15, 2025
  • 3 minute read
GetPIDigitalStateSet Class

Get a PI Digital State Set

The Get-PIDigitalStateSet cmdlet gets a PI Digital State Set from a PI Data Archive.

The connection parameter specifies which connection to a PI Data Archive to use.

Inheritance Hierarchy

SystemObject
  InternalCommand
    Cmdlet
      PSCmdlet
        OSIsoft.PowerShellOSICmdletBase
          OSIsoft.PowerShellGetPIDigitalStateSet

Namespace:  OSIsoft.PowerShell
Assembly:  OSIsoft.PowerShell (in OSIsoft.PowerShell.dll) Version: 2.2.3.0 (2.2.3.952)

Syntax

[CmdletAttribute("Get", "PIDigitalStateSet", DefaultParameterSetName = "ByName", 
	SupportsShouldProcess = true)]
public class GetPIDigitalStateSet : OSICmdletBase
<CmdletAttribute("Get", "PIDigitalStateSet", DefaultParameterSetName := "ByName", 
	SupportsShouldProcess := true)>
Public Class GetPIDigitalStateSet
	Inherits OSICmdletBase

Dim instance As GetPIDigitalStateSet
[CmdletAttribute(L"Get", L"PIDigitalStateSet", DefaultParameterSetName = L"ByName", 
	SupportsShouldProcess = true)]
public ref class GetPIDigitalStateSet : public OSICmdletBase
[<CmdletAttribute("Get", "PIDigitalStateSet", DefaultParameterSetName = "ByName", 
	SupportsShouldProcess = true)>]
type GetPIDigitalStateSet =  
    class
        inherit OSICmdletBase
    end

The GetPIDigitalStateSet type exposes the following members.

Constructors

  NameDescription
Public method
GetPIDigitalStateSet

Properties

  NameDescription
Public property
Connection

Connection to a PI Data Archive from which to get the PI Digital State Set

Public property
Id

ID of the PI Digital State Set to get

Public property
Name

Name of the PI Digital State Set to get

Examples

Get-PIDigitalStateSet -Name "SYSTEM" -Connection $con

Where:

$con = Connect-PIDataArchive -PIDataArchiveMachineName "PISRV1"

Gets the "SYSTEM" digital state set from the "PISRV1" PI Data Archive.

Examples

(Get-PIDigitalStateSet -Name "SYSTEM" -Connection $con).ID

Where:

$con = Connect-PIDataArchive -PIDataArchiveMachineName "PISRV1"

Gets the ID for the "SYSTEM" digital state set from the "PISRV1" PI Data Archive. Note that the SYSTEM digital state set will always be ID = 0.

Examples

Get-PIDigitalStateSet -ID 47 -Connection $con

Where:

$con = Connect-PIDataArchive -PIDataArchiveMachineName "PISRV1"

Gets the digital state set of ID 47 from the "PISRV1" PI Data Archive.

See Also

TitleResults for “How to create a CRG?”Also Available in