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
ee4d43bb
Commit
ee4d43bb
authored
Oct 11, 2022
by
Mateus Goto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TESTED] Arrays and fetchs arrays
parent
2e328336
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
16 deletions
+14
-16
NHR9400series/NHR9400.py
NHR9400series/NHR9400.py
+1
-2
NHR9400series/NHR9430.py
NHR9400series/NHR9430.py
+5
-0
NHR9400series/__pycache__/NHR9400.cpython-310.pyc
NHR9400series/__pycache__/NHR9400.cpython-310.pyc
+0
-0
NHR9400series/__pycache__/NHR9430.cpython-310.pyc
NHR9400series/__pycache__/NHR9430.cpython-310.pyc
+0
-0
UtilitiesRei/__pycache__/refineOutput.cpython-310.pyc
UtilitiesRei/__pycache__/refineOutput.cpython-310.pyc
+0
-0
main.py
main.py
+8
-14
No files found.
NHR9400series/NHR9400.py
View file @
ee4d43bb
...
...
@@ -126,12 +126,11 @@ class NHR9400():
return
self
.
receiveString
(
value
)
def
close
(
self
):
self
.
__s
.
send
(
"SOUR:OUTP:ON 0
\n
"
.
encode
())
self
.
__s
.
send
(
"ABOR
\n
"
.
encode
())
self
.
__s
.
send
(
"SYST:LOC
\n
"
.
encode
())
self
.
__s
.
close
()
# Controle do relé de saída do hardware (LIGAR OU DESLIGAR)
# 0 OFF - Instrumento desabilitado
# 1 ON - Instrumento habilitado
...
...
NHR9400series/NHR9430.py
View file @
ee4d43bb
...
...
@@ -60,6 +60,11 @@ class NHR9430(NHR9400):
return
-
1
self
.
__s
.
send
((
"SOUR:CURR:CPHase "
+
str
(
current
)
+
"
\n
"
).
encode
())
def
getCurrentArray
(
self
):
self
.
__s
.
send
(
"FETC:ARR:CURR?
\n
"
.
encode
())
value
=
self
.
__s
.
recv
(
1024
)
return
self
.
receiveArray
(
value
)
###################### Instrument Capabilities #################
#Query returns the minimum and maximum allowable set value for crest factor in NORMal loading mode Refer to CONFigure:LOAD:MODE for information about setting the 9430 in NORmal loading mode.
...
...
NHR9400series/__pycache__/NHR9400.cpython-310.pyc
View file @
ee4d43bb
No preview for this file type
NHR9400series/__pycache__/NHR9430.cpython-310.pyc
View file @
ee4d43bb
No preview for this file type
UtilitiesRei/__pycache__/refineOutput.cpython-310.pyc
View file @
ee4d43bb
No preview for this file type
main.py
View file @
ee4d43bb
...
...
@@ -10,7 +10,7 @@ def main():
interface
.
__init__
()
print
(
interface
.
getListIp
())
interface
.
newNhr
(
"9410"
)
#
interface.newNhr("9430")
interface
.
newNhr
(
"9430"
)
#interface.newNhr("9430")
nhr10
=
[]
...
...
@@ -20,24 +20,18 @@ def main():
for
elem
in
nhr10
:
print
(
"nhr10 watch dog interval: "
,
elem
.
systWatchdogInterval
(
0
))
elem
.
setVoltage
(
110
)
elem
.
start
()
print
(
"nhr10 ip: "
,
elem
.
getIp
())
print
(
"nhr10 max current: "
,
elem
.
instrumentCapCurrent
())
print
(
"nhr10 current range: "
,
elem
.
instrumentCapCurrentRange
())
print
(
"nhr10 freq range: "
,
elem
.
instrumentCapFreqRange
())
print
(
"nhr10 power range: "
,
elem
.
instrumentCapPowerMax
())
print
(
"nhr10 voltage range: "
,
elem
.
instrumentCapVoltageMaxMin
())
print
(
"nhr 10 array: "
,
elem
.
getVoltageArray
())
for
elem
in
nhr30
:
elem
.
setCurrent
(
10
)
elem
.
start
()
print
(
"nhr30 ip: "
,
elem
.
getIp
())
print
(
"nhr10 watch dog interval: "
,
elem
.
systWatchdogInterval
(
5
))
print
(
"nhr30 max current: "
,
elem
.
instrumentCapCurrent
())
print
(
"nhr30 current range: "
,
elem
.
instrumentCapCurrentRange
())
print
(
"nhr30 freq range: "
,
elem
.
instrumentCapFreqRange
())
print
(
"nhr30 power range: "
,
elem
.
instrumentCapPowerMax
())
print
(
"nhr30 voltage range: "
,
elem
.
instrumentCapVoltageMaxMin
())
print
(
"nhr30 range: "
,
elem
.
instrumentCapResistenceRL
())
print
(
"nhr 30 array: "
,
elem
.
getCurrentArray
())
...
...
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