Asked
— Edited

I am trying to get a HC - SR04 Ultrasonic sensor to work off of ADC ports and having a little difficulty. Before I go any further into frustration - can you run this sensor off of ADC ports?
In general, your first board is board 0. All controls and script commands go to this board. All controls (except movement panel) have the option of selecting another board. Your second would be board 1, 3rd, board 2, etc.
All script commands also have the board number as an optional parameter.
Alan
I'm going to defer to @Rich on this one... How do you send servo commands (in a script) to a particular board?.... I am probably missing the obvious but, I can't get the servo(port,postion) command to accept a third argument (being the specific board the servo is attached...)
From the script help:
"Multiple EZ-B Boards
ARC supports multiple physical EZ-B Boards connected to your computer. You can specify the board by putting the board number in front of the port. For example: Servo(2.d0, 8) will move the D0 servo on EZ-B board #2 to position 8. If no board index is specified, the first board (zero) is assumed. If using more than one board, the first board is always responsible for movement panels."
Alan
Thanks, Alan. Makes sense, I will try that out. Where did you find that?
Scroll down after the script commands in the script reference to the right of any script window. Maybe 3/4 of the way through the page or so.
Alan
@alan... I tried servo(1,D0,90) and it threw an error when I checked syntax... "This parameter requires 2 you have passed 3" or something like that... So instead of a comma after the first argument it should have been a period.... I guess I should have searched a little further... Thanks....
You need a period, not a comma between the board number and the port.
1.d0,50 not 1,d0,50
Alan
I should label this as resolved, thanks everyone for your responses. Richard answered my original question first so I'll give it to him. I'll start another post for using multiple v4,s as questions come up.