Discussion:
use spotread non-interactively in a jig
edmund ronald
2014-04-09 20:36:34 UTC
Permalink
Hi,

I need to read a set of emissive values in a script driven way under
computer control. (not a patchset).

I know I can there is a flag to force reading without recalibration, but
how can I read instantly, without keyboard interaction?

Edmund
Graeme Gill
2014-04-10 01:18:01 UTC
Permalink
Post by edmund ronald
I know I can there is a flag to force reading without recalibration, but
how can I read instantly, without keyboard interaction?
Hi,

If you set the ARGYLL_NOT_INTERACTIVE environment variable,
you should be able to operate it via a script.

<http://www.argyllcms.com/doc/Environment.html>

Graeme Gill.
edmund ronald
2014-04-10 01:40:35 UTC
Permalink
Graeme,

Something like this?

#!/bin/sh
ARGYLL_NOT_INTERACTIVE=1
export ARGYLL_NOT_INTERACTIVE
theargyllroot/Argyll/bin/spotread -v -e -N

IS there a way to make it do a single reading? The script goes off and
triggers some external devices, and then comes back and wants to do another
reading at a time not precisely known, a few seconds later.

Edmund
Post by Graeme Gill
Post by edmund ronald
I know I can there is a flag to force reading without recalibration, but
how can I read instantly, without keyboard interaction?
Hi,
If you set the ARGYLL_NOT_INTERACTIVE environment variable,
you should be able to operate it via a script.
<http://www.argyllcms.com/doc/Environment.html>
Graeme Gill.
Graeme Gill
2014-04-10 07:11:49 UTC
Permalink
Post by edmund ronald
IS there a way to make it do a single reading? The script goes off and
triggers some external devices, and then comes back and wants to do another
reading at a time not precisely known, a few seconds later.
Sorry, no. It can be driven from a script/program that interacts
via stdio, but it currently can't be used as a one shot.

Graeme.
edmund ronald
2014-04-21 15:31:38 UTC
Permalink
Ok, then maybe one-shot reading could be a new feature.
One-shot calibration (without reading) as well.

This would substantially simplify the writing of scripts in lab situations,
bringing them into the realm of idiots as myself, and also make such
scripts more portable.

Edmund
Post by edmund ronald
Post by edmund ronald
IS there a way to make it do a single reading? The script goes off and
triggers some external devices, and then comes back and wants to do
another
Post by edmund ronald
reading at a time not precisely known, a few seconds later.
Sorry, no. It can be driven from a script/program that interacts
via stdio, but it currently can't be used as a one shot.
Graeme.
Florian Höch
2014-04-21 16:32:45 UTC
Permalink
Hi,

have you looked into using something like TCL's `expect` (or the python
port, `pexpect` <https://github.com/pexpect/pexpect/>)?
Post by edmund ronald
Ok, then maybe one-shot reading could be a new feature.
One-shot calibration (without reading) as well.
--
Florian Höch
edmund ronald
2014-04-21 22:44:29 UTC
Permalink
Florian, this was a very helpful comment. Thank you. For the benefit of
lurkers, I copy some text from http://en.wikipedia.org/wiki/Expect

"*Expect*, an extension to the Tcl <http://en.wikipedia.org/wiki/Tcl> scripting
language written by Don Libes <http://en.wikipedia.org/wiki/Don_Libes>, is
a program to automate interactions with programs that expose a text
terminal<http://en.wikipedia.org/wiki/Text_terminal>
interface."

In my experience, Argyll already integrates well with shell scripts, and I
think that at some point Graeme will realize that single measurement is a
natural function of a measuring interface, and add a calibration and a
no-calibration single-shot measure option.

Edmund
Post by Florian Höch
Hi,
have you looked into using something like TCL's `expect` (or the python
port, `pexpect` <https://github.com/pexpect/pexpect/>)?
Post by edmund ronald
Ok, then maybe one-shot reading could be a new feature.
One-shot calibration (without reading) as well.
--
Florian Höch
Graeme Gill
2014-04-22 03:40:18 UTC
Permalink
Post by edmund ronald
Ok, then maybe one-shot reading could be a new feature.
One-shot calibration (without reading) as well.
I'll look into it.

Graeme Gill.

Loading...