GetPIDigitalStateSet Class
- Last UpdatedDec 15, 2025
- 3 minute read
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
InternalCommand
Cmdlet
PSCmdlet
OSIsoft.PowerShellOSICmdletBase
OSIsoft.PowerShellOSICmdletBaseWithConnection
OSIsoft.PowerShellGetPIDigitalStateSet
Namespace: OSIsoft.PowerShell
Assembly: OSIsoft.PowerShell (in OSIsoft.PowerShell.dll) Version: 3.1.1.0 (3.1.1.466)
Syntax
[CmdletAttribute("Get", "PIDigitalStateSet", DefaultParameterSetName = "ByName", SupportsShouldProcess = true)] public class GetPIDigitalStateSet : OSICmdletBaseWithConnection
<CmdletAttribute("Get", "PIDigitalStateSet", DefaultParameterSetName := "ByName", SupportsShouldProcess := true)> Public Class GetPIDigitalStateSet Inherits OSICmdletBaseWithConnection Dim instance As GetPIDigitalStateSet
[CmdletAttribute(L"Get", L"PIDigitalStateSet", DefaultParameterSetName = L"ByName", SupportsShouldProcess = true)] public ref class GetPIDigitalStateSet : public OSICmdletBaseWithConnection
[<CmdletAttribute("Get", "PIDigitalStateSet", DefaultParameterSetName = "ByName", SupportsShouldProcess = true)>] type GetPIDigitalStateSet = class inherit OSICmdletBaseWithConnection end
The GetPIDigitalStateSet type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| GetPIDigitalStateSet |
Properties
| Name | Description | |
|---|---|---|
| Connection | Connection to a PI Data Archive from which to get the PI Digital State Set | |
| Id | ID of the PI Digital State Set to get | |
| Name | Name of the PI Digital State Set to get |
Examples
Get-PIDigitalStateSet -Name "SYSTEM" -Connection $conWhere:
$con = Connect-PIDataArchive -PIDataArchiveMachineName "PISRV1"
Gets the "SYSTEM" digital state set from the "PISRV1" PI Data Archive.
Examples
(Get-PIDigitalStateSet -Name "SYSTEM" -Connection $con).IDWhere:
$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 $conWhere:
$con = Connect-PIDataArchive -PIDataArchiveMachineName "PISRV1"
Gets the digital state set of ID 47 from the "PISRV1" PI Data Archive.