Interface Matlab to multi BS2
masue
Posts: 1
in BASIC Stamp
Dear all,
I am new to BS2
I have a project that control 2 robot BoeBot and I using matlab to analyse data.
in this case I need to interface Matlab to BS2, so I can command BS2 and analyse at the same time (real time).
the proble is
1. i cant control 2 robot BoeBot at the same time
2. i cant interface Matlab to BS2
here is my source code, I need to change the value LSpeed and RSpeed using Matlab
I appreciate your help and sorry for my bad English
Regards
Masue
I am new to BS2
I have a project that control 2 robot BoeBot and I using matlab to analyse data.
in this case I need to interface Matlab to BS2, so I can command BS2 and analyse at the same time (real time).
the proble is
1. i cant control 2 robot BoeBot at the same time
2. i cant interface Matlab to BS2
here is my source code, I need to change the value LSpeed and RSpeed using Matlab
' {$STAMP BS2}
' {$PBASIC 2.5}
LMotor CON 13
RMotor CON 12
LSpeed VAR Word
RSpeed VAR Word
DO
PULSOUT LMotor, LSpeed
PULSOUT RMotor, RSpeed
PAUSE 10
LOOP
' {$PBASIC 2.5}
LMotor CON 13
RMotor CON 12
LSpeed VAR Word
RSpeed VAR Word
DO
PULSOUT LMotor, LSpeed
PULSOUT RMotor, RSpeed
PAUSE 10
LOOP
I appreciate your help and sorry for my bad English
Regards
Masue