Easy StampDAQ Question
Archiver
Posts: 46,084
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
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