To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.handyboardOpen lugnet.robotics.handyboard in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / Handy Board / 5881
5880  |  5882
Subject: 
Re: PWM and executing 2 function at the same time
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Tue, 23 Mar 1999 16:09:26 GMT
Original-From: 
Duncan Orthner <ORTHNER@IDIRECTstopspam.COM>
Viewed: 
937 times
  
At 11:28 PM 3/23/99 +0800, you wrote:

thanz  Duncan for your advice. but for question 1, what i mean was to count
the number of pulses generated without any external device. what i am asking
is to count the number of pulses internally.

Umm, not sure which 'pulses' you're refering to. How are you generating the
pulses and what are they for? Do you mean the PWM going to the motor
drivers? The HB can generate lots of different pulses 8^]

and for question 2, i mean is
there any command to executed 2 functions at the same time.(eg: testmotors()
and testdigitals())

try:

start_process(testmotors());
start_process(testdigitals());

this starts each function as a seperate process...

When running more than one process, you should know that some actions (like
printing to the LCD and IR communication) take significantly more processor
cycles which can *really* slow things down if you're not careful.

Hope this helps, Duncan



Message is in Reply To:
  Re: PWM and executing 2 function at the same time
 
thanz Duncan for your advice. but for question 1, what i mean was to count the number of pulses generated without any external device. what i am asking is to count the number of pulses internally. and for question 2, i mean is there any command to (...) (26 years ago, 23-Mar-99, to lugnet.robotics.handyboard)

2 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR