QMG 064 to computer

. vrijdag 17 juni 2011
  • Agregar a Technorati
  • Agregar a Del.icio.us
  • Agregar a DiggIt!
  • Agregar a Yahoo!
  • Agregar a Google
  • Agregar a Meneame
  • Agregar a Furl
  • Agregar a Reddit
  • Agregar a Magnolia
  • Agregar a Blinklist
  • Agregar a Blogmarks

The QMG 064 mass spectrometer can be completely controlled with a computer by using the rs232 interface.

If anyone would ever like to connect a QMG 064 to a computer, this should be the cable:

on the DB9 connector connect pin 4 and 6 with each other.
DB9 pin 2 -> DB25 pin 2
DB9 pin 3 -> DB25 pin 3
DB9 pin 5 -> DB25 pin 7
on the DB25 connector connect pin 4 and 5 with each other, and connect pin 6, 8 and 20 with each other.

Set the "code 10" at value 9 (9600 baud) on the QMG 064 and put it in terminal mode by setting "code 5" to 3.

On the unix system (assuming /dev/ttyS0 is your serial port):

user@system:~ $ stty -echo -ixon 9600 -F /dev/ttyS0

If you have other non standard default tty settings, here are all the parameters:

user@system:~ $ $ stty -a -F /dev/ttyS0 
speed 9600 baud; rows 0; columns 0; line = 0; intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0; -parenb -parodd cs8 hupcl -cstopb cread clocal -crtscts -ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl -ixon -ixoff -iuclc -ixany -imaxbel -iutf8 -opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0 -isig -icanon iexten -echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke
 
Be back soon with a ruby interface for the QMG 064, and rrdtool graphs!

0 reacties: