//DogBot LabView control #include "Platform.h" struct __using("jm_servo.spin2") servo; char s[255]; //string buffer void Setup() { printf("Setup...\n"); servo.start(8, 90); } void Loop() { char s1[100] = "SA= 140"; gets(s); int d=100; sscanf(s,"%s %d", s1, &d); _waitms(5); printf("SA= %d\n", d); //printf("%s\n", s); servo.write(0, d); } int main() { _setbaud(921600); Setup(); for (;;) { Loop(); _waitms(10); } }