DIAdem Help

Method: SetBoundaryLimits for AssignmentList <Data>

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

Method: SetBoundaryLimits for AssignmentList <Data>

Specifies the behavior at the interval limits of the minimum and maximum values of an assignment, in the script interface for internal data.

Object.SetBoundaryLimits(LimitsLeft, LimitsRight)
ObjectAssignmentList <Data>
Object with this method
LimitsLeftEnumeration with the following selection terms:
 1
BoundsOpen 
Interval limit open. DIAdem also includes the minimum value in the assignments.
 2
BoundsClose 
Interval limit closed. DIAdem only includes the values that are larger than the specified minimum value in the assignments.
LimitsRightEnumeration with the following selection terms:
 1
BoundsOpen 
Interval limit open. DIAdem also includes the maximum value in the assignments.
 2
BoundsClose 
Interval limit closed. DIAdem only includes the values that are smaller than the specified 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, generates an assignment channel with three assignments, and displays the settings for the interval limits:

VBScriptPython

 

Dim oMyGrp, oMyChn, oMyAssgnList
Set oMyGrp = Data.Root.ChannelGroups(1)
Set oMyChn = oMyGrp.Channels.AddAssignmentChannel("MyAssignmentChn","Default Value")
Set oMyAssgnList = oMyChn.AssignmentList
Call oMyAssgnList.SetBoundaryLimits(BoundsOpen, BoundsClose) 
Call oMyAssgnList.Add("text1",10)
Call oMyAssgnList.Add("text2",20)
Call oMyAssgnList.Add("text3",30)
Call MsgBoxDisp("Left Limits: " & LimitsAsText(oMyAssgnList.BoundaryLimitsLeft) & vbCrLf & _
   "Right Limits: " & LimitsAsText(oMyAssgnList.BoundaryLimitsRight))

' Function to convert Boundary Limits from integer 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