DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

ChnAlloc not able to create channels????

OK, I've been struggling with this for several hours...I'm hoping someone will see a glaringly stupid issue...but being new at Diadem scripting I'm lost right now.......
 
Here is my ChnAlloc call
 
TimeChannelRef = ChnAlloc("Time", Val(ChnPropGet("[1]/[1]","Length")), 1, DataTypeInt16, "Numeric")      'Allocate channel for Time
Diadem kernel responds with "Cannot generate the required number of channels". 
 
Based on the documentation, it looks like I'm only asking for 1 channel, with "Length" number of elements.  A couple lines before this I delete 2 channels from the same default group...so I'm not hitting some ceiling for the number of channels in single group, am I?  (Creating this channel will result in 254 channels in one group)
 
Thanks in advance
 
Jeff
0 Kudos
Message 1 of 3
(3,593 Views)
Hello Jeff!
 
The Help for ChnAlloc says that only the types 'DataTypeFloat64' and 'DataTypeString' are supported! All other values result in this meaningless error message.
 
Matthias
Matthias Alleweldt
Project Engineer / Projektingenieur
Twigeater?  
0 Kudos
Message 2 of 3
(3,591 Views)
Matthias, thank you!  Thats the "number" it was failing on.  Obscure error message though!
 
Thanks!!!
 
jeff
0 Kudos
Message 3 of 3
(3,587 Views)