Dynamical Access to Signal Names
My signal names only differs in an index, like channel1, channel2, etc. Is it possible to access the different signal names dynamically in a script instead of accessing each signal with a separate command?
Yes, it is possible to access dynamically to the signals with the help of reference variables.
Here is an example:
function Function ()
sum = 0;
// loop over signals
for (i=1; i<=3;i++)
// loop over channel1, channel2 and channel3
SPrint(signal, "channel%d", i);
// assigning a signal to the reference
// The reference behaves like a signal
sum = sum + ref;
Please complete all required fields. Fields marked with * are required.