Shop OBEX P1 Docs P2 Docs Learn Events
Easy StampDAQ Question — Parallax Forums

Easy StampDAQ Question

ArchiverArchiver Posts: 46,084
edited 2003-09-19 19:00 in General Discussion
Dear group,
I am trying to use Stamp DAQ for a simple application but am stumped
right out of the gate. I would like to read a frequency for one
millisecond on a BS2 pin, then send the result to EXCEL(STAMPDAQ).

A simplified part of the code I need to modify:

HIGH LED1
DEBUG CR, "BEGIN REFLECTION"
PAUSE 2000
FOR x = 1 TO 50
COUNT 10, 10, cnt 'Count on pin 10 for 1 ms, store value in cnt
DEBUG DEC cnt, CR 'Send value of cnt, as a decimal to the computer
NEXT 'repeat, 50 times
DEBUG "END"
End

The SEROUT command doesn't have a duration parameter for reading a
pin?

A simple change I'm sure but my newbie status interfers.

Thank you

Mike Ziegler
Sign In or Register to comment.