NerdKits - electronics education for a digital generation

You are not logged in. [log in]

NEW: Learning electronics? Ask your questions on the new Electronics Questions & Answers site hosted by CircuitLab.

Everything Else » screen replacement

September 02, 2009
by pbfy0
pbfy0's Avatar

I have been having trouble with the screen program for mac. Here is a perl script for reading from the serial port. you run it like this:

./f705c6e12.pl "*port*" "*times to repeat*"

"port" is the port that is in the makefile. "times to repeat" is the number of lines you want the program to read. If you want it to read an infinite number of lines, use 0. Here are examples.

./ReadSerial.pl /dev/ttyUSB0 0

./ReadSerial.pl COM5 0

./ReadSerial.pl /dev/cu.PL2303-0000201A 0

I will post a read/write program when I figure out how to do it.

September 17, 2009
by pbfy0
pbfy0's Avatar

ok, I have the writer. It works at the same time as the reader. no args; just ./WriteSerial.pl

September 17, 2009
by pbfy0
pbfy0's Avatar

whoops--i forgot to add the code. here it is.

Post a Reply

Please log in to post a reply.

Did you know that using an alternating excitation voltage can reduce the noise in many sensor measurements? Learn more...