spacetoon34 Posted April 6, 2007 Report Share Posted April 6, 2007 Hello, I tried to control Hs-311 servo motor for position control, but it dosen't work. The servo is applied by 50 Hz pulses(20 ms), every pulse contain on/off duty, the on duty determine the position of the servo and our servo is deal with ( 0.9ms - 2.1 ms ) on duty to cover the rang (0-180 degree). so i want to generate a train of pulses with 50Hz and 0.1 ms resolution at minimum, and i can control the duty by a knob and output at parallel port 0x378. |0.9-2.1ms| ________ ________ | | | | | | | | ___________| |______________| |____________ | 20ms | That's what i want to out i will attached to you my try. please help. Link to comment
Mikkel Posted April 6, 2007 Report Share Posted April 6, 2007 I though this had been answered here: http://forums.lavag.org/index.php?showtopic=6682 -Mikkel Link to comment
Mellroth Posted April 6, 2007 Report Share Posted April 6, 2007 QUOTE(spacetoon34 @ Apr 5 2007, 05:08 AM) Hello,I tried to control Hs-311 servo motor for position control, but it dosen't work. The servo is applied by 50 Hz pulses(20 ms), every pulse contain on/off duty, the on duty determine the position of the servo and our servo is deal with ( 0.9ms - 2.1 ms ) on duty to cover the rang (0-180 degree). so i want to generate a train of pulses with 50Hz and 0.1 ms resolution at minimum, and i can control the duty by a knob and output at parallel port 0x378. Hi, as Mikkel said, check that other thread for answers. The VI you supplied won't work in any LabVIEW environment, due to that you are trying to Wait 0.1 ms. The DBL value (generated from 1/10000), is coerced to a U32 value and is interpreted as 0 (zero), so the wait for next multiple waits for 0 ms. /J Link to comment
spacetoon34 Posted April 7, 2007 Author Report Share Posted April 7, 2007 It seems No solution and No VI Link to comment
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now