122-28176 Parallax Inc, 122-28176 Datasheet - Page 129

GUIDE STUDENT PROCESS CONTROL

122-28176

Manufacturer Part Number
122-28176
Description
GUIDE STUDENT PROCESS CONTROL
Manufacturer
Parallax Inc
Datasheets

Specifications of 122-28176

Accessory Type
Manual
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
Propeller Education (PE) Kit
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
DEBUG "!O lblData = Sample Time\n
DEBUG "!O Meter = 0,0,10000,0,10000", CR
DEBUG "!RSET", CR
LOW Sampled
' -----[ Main Routine ]----------------------------------------------------
DO
LOOP
ReadSP:
RETURN
ReadTach:
RETURN
DisplayData:
RETURN
GOSUB ReadSP
GOSUB ReadTach
GOSUB DisplayData
DEBUG "!READ (txtData)",CR
DEBUGIN DEC SP_Data
COUNT Opto_SW,SP_Data,Opto_Count
TOGGLE Sampled
RPM = Opto_Count * (60000 / SP_Data) / CyclesPerRev
DEBUG DEC RPM,CR
DEBUG IBIN Sampled, CR
DEBUG "!O Stat1 = Counts: ", DEC Opto_Count, CR
DEBUG "!O Stat2 = RPM: ", DEC RPM, CR
DEBUG "!O METER =", DEC RPM, CR ' Update SP Meter
DEBUG "!O ImgG = ", BIN Sampled, CR
"!O txtData = 1000", CR,
"!O txtR = ", CR,
"!O txtY = ", CR,
"!O txtG = Sampled", CR,
"!O Stat1 = Counts:", CR,
"!O Stat2 = RPM:", CR,
"!O txtFileName = Tach1", CR
Run StampPlot macro sic_gen_process.spm.
Connect and plot.
Position the fan in front of the opto-reflective switch at the optimum distance, as
found in encoder test, or at a distance that provides good indication of RPM.
The detector should be pointing at one side or the other of the encoder- not at the
' Label text boxes
' Request data from StampPlot
' Accept returning data
(mSec)", CR,
' Measure counts per unit time
' Toggle LED to show sample done
' Set SP meter
' Reset after configuring
' Analog data of RPM
' Digital trace of samples
' Update controls
' Calculate RPM

Related parts for 122-28176