DIAdem Help

Content Type
Programming Language
Current manual
Table of Contents

Property: DefaultValue for AssignmentChannel <Data>

Property: DefaultValue for AssignmentChannel <Data>

Specifies the default text of an assignment channel in the script interface for internal data. DIAdem displays this default text when all the specified assignments are invalid.

Object.DefaultValue
ObjectAssignmentChannel <Data>
Object with this property
Object.DefaultValueString with read and write access

The following example generates an assignment channel, fills the channel with assignments, and outputs the standard text and the assignment texts:

VBScriptPython

 

Dim oMyGrp, oMyChn, oMyAssgnList, Assignment, vRange
Set oMyGrp = Data.Root.ChannelGroups(1)
Set oMyChn = oMyGrp.Channels.AddAssignmentChannel("MyAssignmentChn","Default Value", DataTypeChnFloat64, 1)
Set oMyAssgnList = oMyChn.AssignmentList
Call oMyAssgnList.Add("Text1",Array(10,20))
Call oMyAssgnList.Add("Text2",Array(30,40))
Call oMyAssgnList.Add("Text3",Array(50,60))
Call MsgBoxDisp("Channel default value: " & oMyChn.DefaultValue)
For Each Assignment in oMyAssgnList
  vRange = Assignment.DefinitionRange
  Call MsgBoxDisp("Definition Range " & vRange(0) & " - " & vRange(1) & ": " & Assignment.Value)
Next
In This Section
Was this information helpful?