DIAdem Help

Property: BoundaryLimitsRight for AssignmentList <Data>

  • Updated2024-09-12
  • 2 minute(s) read

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
ObjectAssignmentList <Data>
Object with this property
Object.BoundaryLimitsRightEnumeration with read access and the following selection terms:
1
BoundsOpen 
Interval limit open. DIAdem only includes the values that are smaller than the specified maximum value in the assignments.
2
BoundsClose 
Interval limit closed. DIAdem also includes the maximum value in the assignments.

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:

VBScriptPython

 

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

Log in to get a better experience