Method: SetValues for ComplexChannel <Data>
- Updated2024-09-12
- 1 minute(s) read
Internal Data > Methods > Method: SetValues for ComplexChannel <Data>
Method: SetValues for ComplexChannel <Data>
Inserts the value n times at the specified position into a complex channel.
Object.SetValues(newVal, [Index], [Count], [BlockOperationMode])
Object | ComplexChannel <Data> Object with this method | ||||||
newVal | Variant Specifies the numeric or text value to insert. | ||||||
[Index] | LongInteger Specifies where DIAdem inserts the value. The index starts at the value 1 (default value). | ||||||
[Count] | LongInteger Specifies how often DIAdem inserts the specified value. The default value is the channel length minus the index plus 1. If the index is greater than the channel length, the default value is 1. | ||||||
[BlockOperationMode] | Enumeration with the following selection terms:
|
The following example inserts the value 10, starting at the third position, 50 times into the first channel of the default group:
VBScript | Python |
Dim oMyChannel Set oMyChannel = Data.Root.ActiveChannelGroup.Channels(1) Call oMyChannel.SetValues(10, 3, 50)