#!/usr/bin/env ruby #################### hydorad -- brent@mbari.org ####################### # Copyright (C) 2012 MBARI # MBARI Proprietary Information. All rights reserved. # # Hackish standalone script to trigger the hydrorad instrument # connected to the DWSMgate serial port operating at 57600 baud # sends its output to STDOUT # ############################################################################ require 'mbari' require 'posix/serialport' portcfg = SerialPort::Configuration.default.with :baud=>57600 port = Posix::SerialPort.new "/dev/DWSMgate", portcfg STDOUT.sync=true class <