Re: program to slow Kategorie: CC2-Unit & Appl.Board / CC2-Station (von Ingo - 1.05.2006 8:09) | |
Als Antwort auf program to slow von Bram - 30.04.2006 23:09
| |
Hello Bram Maybe this works better... .... //======================================================================== // if ports.get(8) == -1 // 1 puls per rpm from encoder A if ports.getcount(0) > 0 // at least 1 puls at Port 8 { station_io.LEDon(1); i = 0; // wait ports.get(8) == 0; // wait for low } // if ports.get(9) == -1 // 200 puls per rpm from encoder A = ca 1 kHz if ports.getcount(1) > 0 // at least 1 puls at Port 9) { // wait ports.get(9) == 0; // wait for low i = i+1; station_io.LEDon(2); m[i] = ports.adc(0); } //========================================================================= | |
Antwort schreiben Antworten: |