forked from tektronix/Programmatic-Control-Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSaveonTrig.py
27 lines (25 loc) · 921 Bytes
/
SaveonTrig.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
"""
Launch program for main SaveonTrig script
This module is used to loop the SoTmain application
when desired and provide more information
about how to use the program. Built using
python 2.7 (http://www.python.org/)
pyvisa 1.3 (http://pypi.python.org/pypi/PyVISA/1.3)
"""
import SoTmain
print "Welcome to the save on Trigger Data Logging Application"
print "This program is compatible with TDS2000B/C, TDS3000B/C"
print "and DPO2000/3000/4000 series Oscilloscopes with a TCPIP"
print "or USB connection. NI-VISA or TekVISA must be installed. \n"
while True:
try:
SoTmain.main()
except Exception as ex:
print "An unexpected error occured"
print "\n\nWould you like to start another capture" \
+ " session? (Y/N)"
Doagain = str(raw_input(""))
if ('Y' not in Doagain) and ('y' not in Doagain):
print "Good Bye!"
break
a = raw_input("Press ENTER to exit")