Property: BoundaryLimitsRight for AssignmentList <Data>
- Updated2024-09-12
- 2 minute(s) read
Internal Data > Properties > Property: BoundaryLimitsRight for AssignmentList <Data>
Property: BoundaryLimitsRight for AssignmentList <Data>
Specifies the interval limit of the maximum value of an assignment in an assignment channel in the script interface for internal data.
Object.BoundaryLimitsRight
| Object | AssignmentList <Data> Object with this property | ||||||
| Object.BoundaryLimitsRight | Enumeration with read access and the following selection terms:
|
![]() | Note Specify the interval limits in a script before you generate individual assignments. |
![]() | Note If you define assignments with single values, use the BoundsClose setting for the minimum and the maximum. |
The following example specifies the interval limits for the minimum and the maximum and displays these values:
| VBScript | Python |
Dim oMyGrp, oMyChn, oMyAssgnList Set oMyGrp = Data.Root.ChannelGroups(1) Set oMyChn = oMyGrp.Channels.AddAssignmentChannel("MyAssignmentChn","Default Value", DataTypeChnFloat64, 1) Set oMyAssgnList = oMyChn.AssignmentList Call oMyAssgnList.SetBoundaryLimits(BoundsOpen, BoundsClose) Call oMyAssgnList.Add("text1",1) Call oMyAssgnList.Add("text2",2) Call oMyAssgnList.Add("text3",3) Call MsgBoxDisp("Left Limits: " & LimitsAsText(oMyAssgnList.BoundaryLimitsLeft) & vbCrLf & _ "Right Limits: " & LimitsAsText(oMyAssgnList.BoundaryLimitsRight)) ' Function to convert Boundary Limits from enum into text Function LimitsAsText(eMyType) Select Case eMyType Case BoundsOpen LimitsAsText = "BoundsOpen" Case BoundsClose LimitsAsText = "BoundsClose" End Select End Function
