I'd like to call PIDCompute for 7 different channels in a for-next loop, something like this:
for I = 1 to 7
E= ... 'Determine the error
T=PIDCompute(I,E)
next 'I
I get an error each time I try to compile. When I take the PIDCompute out of the loop and call the function with a channel number (rather than a variable, I), I get no error. for example:
T=PIDCompute(1,E)
works OK.
I'd like to call the function in a loop with the channel indexed. Is that not permitted?
Thanks!