03-17-2014 06:37 AM
Hey all,
I have the attached script to perform calculations on channels in a Diadem group. I have tried to make it so it will repeat the exact same calculations for every group loaded (each group will have same channels in the same order). The way I have it now, my code will create i'th number of channels but will perform the calculations always on the first group channels. Any ideas on how to remedy this? I tried putting "i" in place of the 1 in the channel group specifications but it seems that location will not accept a varriable ("Ch(""[i]/Supply Pressure (psi)"").
03-17-2014 07:44 AM - edited 03-17-2014 07:49 AM
Hi,
you can use something like this:
("Ch(""[" & i & "]/Supply Pressure (psi)"")
You have to concatenate text (channel name) and variable (i). Use & (ALT+038) symbol for concatenate.
Did it help?
Simyfren
03-17-2014 01:16 PM
Hi crockengineer,
If you'll post your code as text I can copy and paste, I'll help you make it work on N different Groups. A data set would also be nice.
Brad Turpin
DIAdem Product Support Engineer
National Instruments