DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

assigning data to a new channel DIAdem 2011

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

0 Kudos
Message 1 of 3
(5,249 Views)

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

Message 2 of 3
(5,245 Views)

Hi,

 

very useful thank you!

 

Jérémy

0 Kudos
Message 3 of 3
(5,217 Views)