PING))) to PLX-DAQ
LuisMuratalla
Posts: 3
Hello,
I am a complete beginner to this however it seems that I am missing something. I am simply trying to output my time variable to Excel however my code (below) does not seem to work. I have read the help file that came with PLX-DAQ and I have been able to output date and time however I have not been able to output my time variable. I have tried playing with all the variables Pause, time nothing seems to work.
Works = DEBUG "DATA, TIME, TIMER,", CR
Doesn't work = DEBUG DEC5 time, CR
Can you help me understand why I can't output from my PING))) sensor to Excel?
' PingTest.bs2
' {$STAMP BS2}
' {$PBASIC 2.5}
' {$PORT COM4}
time VAR Word
DO
PULSOUT 15, 5
PULSIN 15, 1, time
time = time ** 2251
DEBUG DEC5 time, CR
'DEBUG "DATA, TIME, TIMER,", CR
PAUSE 100
LOOP
I am a complete beginner to this however it seems that I am missing something. I am simply trying to output my time variable to Excel however my code (below) does not seem to work. I have read the help file that came with PLX-DAQ and I have been able to output date and time however I have not been able to output my time variable. I have tried playing with all the variables Pause, time nothing seems to work.
Works = DEBUG "DATA, TIME, TIMER,", CR
Doesn't work = DEBUG DEC5 time, CR
Can you help me understand why I can't output from my PING))) sensor to Excel?
' PingTest.bs2
' {$STAMP BS2}
' {$PBASIC 2.5}
' {$PORT COM4}
time VAR Word
DO
PULSOUT 15, 5
PULSIN 15, 1, time
time = time ** 2251
DEBUG DEC5 time, CR
'DEBUG "DATA, TIME, TIMER,", CR
PAUSE 100
LOOP
Comments
' PingTest.bs2
' {$STAMP BS2}
' {$PBASIC 2.5}
' {$PORT COM4}
time VAR Word
DO
PULSOUT 15, 5
PULSIN 15, 1, time
time = time ** 2251
DEBUG "DATA,", DEC5 time, CR
'DEBUG "DATA, TIME, TIMER,", CR
PAUSE 100
LOOP