Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Institute of Experimental Physics
Quantum Circuits
python-repo
Commits
a8a0c4e0
Commit
a8a0c4e0
authored
Jun 06, 2019
by
Oscar Gargiulo
Browse files
let's pray it works forgot what i changed anyway
parent
95279ef0
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1042 additions
and
799 deletions
+1042
-799
IPLIST.py
IPLIST.py
+1
-0
Instruments/Drivers/dig_at_mc/dig_at_mc.py
Instruments/Drivers/dig_at_mc/dig_at_mc.py
+35
-0
SDR14.py
SDR14.py
+1006
-799
No files found.
IPLIST.py
View file @
a8a0c4e0
...
...
@@ -37,4 +37,5 @@ IPList = {'SCOPE': '192.168.0.99',
'SA2'
:
'192.168.0.140'
,
'XXF1'
:
'138.232.183.115'
,
# Running on Windows machine
'NI6020'
:
'138.232.183.115'
# Running on Windows machine
#'DA': '192.168.0.119' #does not work with vxi, use socets instead
}
Instruments/Drivers/dig_at_mc/dig_at_mc.py
0 → 100644
View file @
a8a0c4e0
# -*- coding: utf-8 -*-
"""
Created on Mon May 6 14:01:41 2019
@author: User
"""
import
vxi11
class
dig_at_mc
(
vxi11
.
Instrument
):
def
__init__
(
self
,
ip
=
'192.168.0.119'
):
super
(
dig_at_mc
,
self
).
__init__
(
ip
)
def
com
(
self
,
command
,
arg
=
"?"
):
"""Function to communicate with the device. Gives the current status
if no arg is given
Parameters
-----------
command : str
Command/Query string for device
arg : str, int, float
Argument for command
"""
if
arg
==
"?"
:
try
:
return
float
(
self
.
ask
(
"{}?
\n
"
.
format
(
command
)))
except
:
return
self
.
ask
(
"{}?
\n
"
.
format
(
command
))
else
:
self
.
write
(
"{} {}
\n
"
.
format
(
command
,
arg
))
return
None
'''
def reset(self):
self.com('*RST', '')
def connect(self,board_num=1):
'''
\ No newline at end of file
SDR14.py
View file @
a8a0c4e0
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment