DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Coding VB in DIADEM for international use

I am writing some basic code in VB for DIADEM, and have a concern with the STATBLOCKCALC() fucntion in particular.  This function returns data channels named according to the language version of DIADEM that it is run on.  I reference these channels by name later in my code, and this is where the problem arises.  When I ren the program on and English version, the channels are named differently (I.e. Mittelwerte*--> Arith_mean*).  I would prefer to continue to reference this particular channel by name and not reference number.  Is there a solution to this problem?
 
Thanks.Paul
0 Kudos
Message 1 of 2
(2,786 Views)
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
0 Kudos
Message 2 of 2
(2,775 Views)