03-12-2013 03:32 AM
Hello,
I'm looking for a method to assign data to a new channel. I tried with some scripts that are posted on this forum, but they are not working correctly with my DIAdem version (2011). Is there another method on 2011?
Thank you for your support
Jérémy
03-12-2013 04:55 AM
Hi Jeremy_TCL,
I'm not sure what exactly you are going to do, but maybe folowing script can help:
dim oChn, iLoop
' Create a channel in the default channel group
set oChn = Data.Root.ActiveChannelGroup.Channels.Add("MyChannel", DataTypeFloat64)
' create values
for iLoop = 1 to 15
oChn(iLoop) = iLoop
next
' update characteristic values
Call ChnCharacter(oChn)
Greetings
Walter
03-14-2013 03:09 AM
Hi,
very useful thank you!
Jérémy