Skip to content

Instantly share code, notes, and snippets.

@ggggggggg
Created March 6, 2015 22:42
Show Gist options
  • Save ggggggggg/6db6e2c3be0eb0e252a4 to your computer and use it in GitHub Desktop.
Save ggggggggg/6db6e2c3be0eb0e252a4 to your computer and use it in GitHub Desktop.
andor basic program to write data to serial port
// setup serial port
baud(2,9600)
Handshake(2,0)
// use background subtracted data
SetDataType(2)
//camera settings
// send timings
timings$ = ShowTimings()
comwrite(2,timings$)
comwrite(2,mid$(timings$, 27,21))
while (1)
run()
comwrite(2,time$(),Mean(#0_sig{s}))
print(Mean(#0_sig{s}))
wend
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment