|
194 | 194 | ;; |
195 | 195 | -H|--hutch) |
196 | 196 | hutch=$2 |
197 | | - echo "HUTCH: $hutch" >&2 |
| 197 | + #echo "HUTCH: $hutch" >&2 |
198 | 198 | shift 2 |
199 | 199 | ;; |
200 | 200 | -m|--main) |
@@ -316,8 +316,7 @@ if [ $MAINSCREEN -gt 0 ]; then |
316 | 316 | echo "Camera name not found in hutch. To see which cameras you can access from your current machine use the '-l/--list' option." |
317 | 317 | exit 1 |
318 | 318 | elif [[ "$c" =~ $CAMNAME ]] && [ "$hutch" != "$(get_info --gethutch)" ] ; then |
319 | | - echo "To use camera controls, you must be on the same hutch network as your camera." |
320 | | - echo "Opening read-only main screen..." |
| 319 | + echo "Note that your use of camera controls depend on the gateway setup" |
321 | 320 | fi |
322 | 321 | echo 'try to get the main screen for: ' "$CAMNAME" |
323 | 322 | echo 'start the main screen for camera base PV: ' "$CAMPVFULL" |
@@ -351,8 +350,19 @@ if [ $DISABLE -gt 0 ]; then |
351 | 350 | fi |
352 | 351 |
|
353 | 352 | if [ $ACQUIRE -gt 0 ]; then |
354 | | - echo "Starting acquisition for ${CAMNAME}" |
355 | | - caput -n "$CAMPVFULL":Acquire 1 |
| 353 | + if [ "$CAMNAME" == 'XTCAV' ]; then |
| 354 | + echo "Acquire PV for XTCAV not writeable from photon side" |
| 355 | + exit |
| 356 | + fi |
| 357 | + IS_ACQUIRING=$(caget -t -n "$CAMPVFULL":Acquire_RBV) |
| 358 | + if isNum "$IS_ACQUIRING"; then |
| 359 | + if [ "$IS_ACQUIRING" -eq 0 ]; then |
| 360 | + echo "Starting acquisition for ${CAMNAME}" |
| 361 | + caput -n "$CAMPVFULL":Acquire 1 |
| 362 | + else |
| 363 | + echo "Acquisition for ${CAMNAME} running" |
| 364 | + fi |
| 365 | + fi |
356 | 366 | exit |
357 | 367 | fi |
358 | 368 |
|
|
372 | 382 |
|
373 | 383 | # we do not have write permissions for the XTCAV camera _and_ |
374 | 384 | # the Acquire_RBV is 0 even when the camera is runnig |
375 | | -if [ $CAMNAME != 'XTCAV' ]; then |
| 385 | +if [[ "$CAMNAME" != 'XTCAV' && |
| 386 | + -z "$IS_REMOTE_SSH" ]]; then |
376 | 387 | IS_ACQUIRING=$(caget -t -n "$CAMPVFULL":Acquire_RBV) |
377 | 388 | if isNum "$IS_ACQUIRING"; then |
378 | 389 | if [ "$IS_ACQUIRING" -eq 0 ]; then |
|
0 commit comments