05-12-2011 07:47 AM
I use an array as showed by my example (LB8.2).
Press a 1 or 0 in the array changes it's value and it gives
back the Row and Column (that was changed).
I use this to program a 22 channel patterngenerator (GPIB).
It sends only the column (channel of patterngenerator) patterns, so that makes it faster.
Has someone an idea if this row and column detection can be made simpler (faster)?
Kind regards, Bernard
05-12-2011 08:22 AM
You could do something like that:
The check >0 and the select functions are not even required since this code sits in a value change event, so one element did change (normally, there are a few exceptions though).
05-12-2011 09:01 AM
Here is a different way
05-13-2011 03:08 AM
This one works only when the array value goes from 0 to 1, but doesn't work when the value goes from 1 to 0.
Kind regards, Bernard
05-13-2011 03:18 AM
My excuse it works correctly!
I forgot that change the same position inn the array (0 to1 or 1 to 0) gives the same results.
Thanks, Bernard