Shop OBEX P1 Docs P2 Docs Learn Events
calling external programs from PBASIC — Parallax Forums

calling external programs from PBASIC

FerrolFerrol Posts: 2
edited 2006-08-25 11:19 in BASIC Stamp
In the PBASIC 2.5 application running on Windows, you can receive and display (i.e. debug) data from your connected BASIC STAMP processor.· I was wondering if there is a way to pass these data to another Windows program (e.g. through a Windows DLL) from the PBASIC environment?

Actually, I don't care how the BASIC STAMP data gets to the PC, I'd just like to send those data to a Windows program that I've written for processing.·

Thanks,

Ferrol Blackmon

Comments

  • allanlane5allanlane5 Posts: 3,815
    edited 2006-08-22 13:58
    Yes, if your Windows program opens the serial port to/from the BS2, you can send data to the BS2 and get data back from the BS2. It turns out that the BS2 hardware 'echos' everything sent to it, so your program will have to 'filter' that stuff out.

    On the BS2, you use "SERIN 16, 16384, [noparse][[/noparse]DEC NewData]", and "SEROUT 16, 16384, [noparse][[/noparse]DEC SendData, 13]" to recieve and send data over the DB-9 programming port.
  • FerrolFerrol Posts: 2
    edited 2006-08-25 11:19
    Thank you! I'll give this a try.
Sign In or Register to comment.