Hi adampul,
I have one fairly low-tech suggestion for you. You can request the last channel index in the target group prior to running the calculation and then latch on to the new channel indices in that target group:
TargetGroup = GroupDefaultGet ' you can set this to a particular group index if you have one in mind
LastIdx = GroupChnCount(TargetGroup)
Call StatBlockCalc()
MeanChName = ChnName(CNoXGet(TargetGroup, LastIdx+1))
SigmChName = ChnName(CNoXGet(TargetGroup, LastIdx+2))
:
:
Hope that helps,
Brad Turpin
DIAdem Product Support Engineer
National Instruments