05-14-2009 01:37 PM
I know I had stumbled upon a function in DIAdem that will return the current number of data channels in my data set. I can't seem to locate the thread where I had seen this. I'm looking to replace a somewhat lengthly user script with this simple function in my future coding.
Thanks!
Solved! Go to Solution.
05-14-2009 06:18 PM
Hello CrshTstr,
There are probably multiple ways to get this, but the variable
ChnNoMax
is one way to find out how many channels are used in DIAdem. I don't knowif that is what youwere refering to when you said"in my data set", so I am assuming you mean "in DIAdem".
Hope that helps,
05-15-2009 10:54 AM
Hi CrshTstr,
I actually always use GlobUsedChn for this. In newer versions of DIAdem you can use commads like GroupChnCount() or Data.Root.ChannelGroups(1).Channels.Count to return the number of channels in a particular group. But the GlobUsedChn variable will always return the total number of channels currently in the Data Portal, irrespective of what group the channels are in.
Brad Turpin
DIAdem Product Support Engineer
National Instruments