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
Operations
Operations
Metrics
Environments
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
Mateus Goto
IC-Interface Control
Commits
06c39034
Commit
06c39034
authored
Aug 11, 2022
by
Mateus Goto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TESTED AND FIXED] Inst Cap
parent
4af7ac90
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
68 additions
and
58 deletions
+68
-58
NHR9400series/NHR9400.py
NHR9400series/NHR9400.py
+58
-42
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
main.py
main.py
+10
-16
No files found.
NHR9400series/NHR9400.py
View file @
06c39034
This diff is collapsed.
Click to expand it.
NHR9400series/__pycache__/NHR9400.cpython-310.pyc
View file @
06c39034
No preview for this file type
NHR9400series/__pycache__/NHR9430.cpython-310.pyc
View file @
06c39034
No preview for this file type
main.py
View file @
06c39034
...
...
@@ -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,27 +20,21 @@ def main():
for
elem
in
nhr10
:
print
(
"nhr10 ip: "
,
elem
.
getIp
())
elem
.
setVoltage
(
220
)
elem
.
setPower
(
5
)
elem
.
start
()
print
(
"nhr10 ip: "
,
elem
.
getIp
())
print
(
"nhr10 max current: "
,
elem
.
instrumentCapCurrent
())
print
(
"nhr10 max current range: "
,
elem
.
instrumentCapCurrentRange
())
print
(
"nhr10 max freq range: "
,
elem
.
instrumentCapFreqRange
())
print
(
"nhr10 max power range: "
,
elem
.
instrumentCapPowerMax
())
print
(
"nhr10 max voltage range: "
,
elem
.
instrumentCapVoltageMaxMin
())
print
(
"voltage:"
,
elem
.
getVoltage
())
print
(
"current:"
,
elem
.
getCurrent
())
print
(
"Power:"
,
elem
.
getPower
())
print
(
elem
.
checkErrors
())
for
elem
in
nhr30
:
print
(
"nhr30 ip: "
,
elem
.
getIp
())
elem
.
setCurrent
(
30
)
elem
.
start
()
print
(
"voltage:"
,
elem
.
getVoltage
())
print
(
"current:"
,
elem
.
getCurrent
())
print
(
"Power:"
,
elem
.
getPower
())
time
.
sleep
(
20
)
time
.
sleep
(
3
)
for
elem
in
nhr10
:
elem
.
close
()
...
...
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