Screenshot before taking readings
This commit is contained in:
parent
1b938031f3
commit
d2b911920f
1 changed files with 5 additions and 5 deletions
10
rigol.go
10
rigol.go
|
@ -46,11 +46,7 @@ func main() {
|
|||
|
||||
tstart := time.Now()
|
||||
|
||||
result := queryScope(conn, toRun)
|
||||
// Return from scope is semicolon separated, so just switch for commas.
|
||||
result = strings.Replace(result, ";", ", ", -1)
|
||||
|
||||
// Collect and write screenshot if the screen flag is set.
|
||||
// Collect and write screenshot if the screen flag is set. Do this first because queries can take a little while.
|
||||
if *fScreen {
|
||||
img := getScreenshot(conn)
|
||||
if img != nil {
|
||||
|
@ -58,6 +54,10 @@ func main() {
|
|||
}
|
||||
}
|
||||
|
||||
result := queryScope(conn, toRun)
|
||||
// Return from scope is semicolon separated, so just switch for commas.
|
||||
result = strings.Replace(result, ";", ", ", -1)
|
||||
|
||||
// Clear history
|
||||
if *fClear {
|
||||
fmt.Fprintf(conn, ":CLE;MEAS:STAT:RES\n")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue