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
55e4ca5e
Commit
55e4ca5e
authored
Aug 12, 2022
by
Mateus Goto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIXED] Watchdog interval
parent
738cb9d3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
12 deletions
+10
-12
NHR9400series/NHR9400.py
NHR9400series/NHR9400.py
+2
-3
NHR9400series/__pycache__/NHR9400.cpython-310.pyc
NHR9400series/__pycache__/NHR9400.cpython-310.pyc
+0
-0
main.py
main.py
+8
-9
No files found.
NHR9400series/NHR9400.py
View file @
55e4ca5e
...
...
@@ -147,10 +147,9 @@ class NHR9400():
#Command specifies the interval (Seconds) in which a command must be received. Query returns the programmed watchdog interval (Seconds).
def
systWatchdogInterval
(
self
,
interval
):
if
interval
<
0
:
return
-
1
self
.
__s
.
send
((
"SYST:WATC:SERV
\n
"
).
encode
())
self
.
__s
.
send
((
"SYST:WATC:INT "
+
str
(
interval
)
+
"
\n
"
).
encode
())
self
.
__s
.
send
((
"
SYST:WATC:SERV
\n
"
).
encode
())
print
(
self
.
checkErrors
())
self
.
__s
.
send
((
"
*RST
\n
"
).
encode
())
self
.
__s
.
send
(
"SYST:RWL
\n
"
.
encode
())
#Command determines the type communication required to reset the watchdog timer. Query returns the type of communication required to reset the watchdog timer.
def
systWatchdogRobust
(
self
,
bool
):
...
...
NHR9400series/__pycache__/NHR9400.cpython-310.pyc
View file @
55e4ca5e
No preview for this file type
main.py
View file @
55e4ca5e
...
...
@@ -20,19 +20,18 @@ def main():
for
elem
in
nhr10
:
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
(
"nhr10 watch dog interval: "
,
elem
.
systWatchdogInterval
(
5
))
print
(
"nhr10 watch dog interval: "
,
elem
.
systWatchdogInterval
(
5
))
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
())
for
elem
in
nhr30
:
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
())
...
...
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