DoF - a Robotiq Community
Warning sign
The Dof Community was shut down in June 2023. This is a read-only archive.
If you have questions about Robotiq products please reach our support team.
sebastianrea

bcastets said:
Here below is an example of program structure you could use to validate the input of the operator.

zoom
I have copied your program ro my CB3 but i cant really figure out what get_list_length is?
And it gives me an error message when it gets to 
If value=acitveDistances[i]

What could be wrong? or is it simply because i cant copy it to my CB3

sebastianrea

bcastets said:
get_list_length is an integrated script function with return the length of a list.
zoom
I suppose "if value=distance[i]" is not working because you have to use the equal with the question mark.
I figured i used it wrong, my program now works perfect. Thank you so very much

sebastianrea

You can also try length([1,2,3,4]) depending on your version the get_list_length may not be a supported API call.

Matt
Hey Matt, thanks very much, length([1,2,3,4]) seems to work for the program