Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
IC-Interface Control
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
João Santos
IC-Interface Control
Commits
9dfe8c91
Commit
9dfe8c91
authored
Aug 10, 2022
by
Mateus Goto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NEW] Inst capabilities
parent
4f1ec903
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
1 deletion
+50
-1
NHR9400series/NHR9400.py
NHR9400series/NHR9400.py
+50
-1
No files found.
NHR9400series/NHR9400.py
View file @
9dfe8c91
...
...
@@ -170,9 +170,58 @@ class NHR9400():
#Query returns the number of general purpose digital outputs (expressed as number of bits).
def
digitalInputCount
(
self
):
self
.
__s
.
send
((
"DIG:OUT:COUN
\n
"
).
encode
())
################################# Instrument Capabilities - System Information Queries ##############################
# Query returns the number of output channels detected by the hardware.
def
instrumentSystemChanels
(
self
):
self
.
__s
.
send
((
"INST:CAP:SYST:CHAN
\n
"
).
encode
())
value
=
self
.
__s
.
recv
(
1024
)
return
self
.
receiveFloat
(
value
)
# Query returns the number of chassis detected (Master + Auxiliaries)
def
instrumentSystemChassis
(
self
):
self
.
__s
.
send
((
"INST:CAP:SYST:CHAS
\n
"
).
encode
())
value
=
self
.
__s
.
recv
(
1024
)
return
self
.
receiveFloat
(
value
)
#Query returns the maximum number of commands which can be stored in a macro
def
instrumentSystemMacros
(
self
):
self
.
__s
.
send
((
"INST:CAP:MACR:COMM:MAX
\n
"
).
encode
())
value
=
self
.
__s
.
recv
(
1024
)
return
self
.
receiveFloat
(
value
)
#Query returns the maximum delay time allowed for MACRo:WAIT[:TIME] within a single macro step.
def
instrumentSystemMacroDelay
(
self
):
self
.
__s
.
send
((
"INST:CAP:MACR:DEL:MAX
\n
"
).
encode
())
value
=
self
.
__s
.
recv
(
1024
)
return
self
.
receiveFloat
(
value
)
#Query returns the default Regulation Gain setting set value used by the hardware.
def
instrumentSystemRGainNominal
(
self
):
self
.
__s
.
send
((
"INST:CAP:RGA:NOM
\n
"
).
encode
())
value
=
self
.
__s
.
recv
(
1024
)
return
self
.
receiveFloat
(
value
)
#Query returns the maximum Regulation Gain setting set value used by the hardware.
def
instrumentSystemRGainMax
(
self
):
self
.
__s
.
send
((
"INST:CAP:RGA:MAX
\n
"
).
encode
())
value
=
self
.
__s
.
recv
(
1024
)
return
self
.
receiveFloat
(
value
)
#Query returns the maximum trip time (seconds) for a safety limit settings
def
instrumentSystemTripMax
(
self
):
self
.
__s
.
send
((
"INST:CAP:TRIP:MAX
\n
"
).
encode
())
value
=
self
.
__s
.
recv
(
1024
)
return
self
.
receiveFloat
(
value
)
################################# Instrument Capabilities - Measurement Capabilities Queries ##############################
#Query returns the absolute maximum (or minimum) measurement aperture setting for the module.
def
instrumentSystemTripMax
(
self
):
self
.
__s
.
send
((
"INST:CAP:TRIP:MAX
\n
"
).
encode
())
value
=
self
.
__s
.
recv
(
1024
)
return
self
.
receiveFloat
(
value
)
################################# Setters and Getters ################################################
#set limit voltage of all phases
def
setVoltage
(
self
,
voltage
):
if
voltage
<
0
:
...
...
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