Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
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
Esteban Blanc
proview
Commits
16ed5c5d
Commit
16ed5c5d
authored
May 14, 2014
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IO OneWire_AiDevice Status attribute set
parent
9af2f4fd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
otherio/lib/rt/src/os_linux/rt_io_m_onewire_aidevice.c
otherio/lib/rt/src/os_linux/rt_io_m_onewire_aidevice.c
+5
-0
src/msg/rt/src/rt_io_msg.msg
src/msg/rt/src/rt_io_msg.msg
+1
-0
No files found.
otherio/lib/rt/src/os_linux/rt_io_m_onewire_aidevice.c
View file @
16ed5c5d
...
...
@@ -91,6 +91,7 @@ static pwr_tStatus IoCardInit( io_tCtx ctx,
errh_Info
(
"Init of OneWire_AiDevice '%s'"
,
cp
->
Name
);
}
op
->
Status
=
IO__SUCCESS
;
return
IO__SUCCESS
;
}
...
...
@@ -176,6 +177,7 @@ static pwr_tStatus IoCardRead( io_tCtx ctx,
*
(
pwr_tFloat32
*
)
chanp
->
vbp
=
actvalue
;
sop
->
SigValue
=
cop
->
SigValPolyCoef1
*
fvalue
+
cop
->
SigValPolyCoef0
;
sop
->
RawValue
=
fvalue
;
op
->
Status
=
IO__SUCCESS
;
break
;
}
default:
{
...
...
@@ -201,11 +203,13 @@ static pwr_tStatus IoCardRead( io_tCtx ctx,
*
(
pwr_tFloat32
*
)
chanp
->
vbp
=
actvalue
;
sop
->
SigValue
=
cop
->
SigValPolyCoef1
*
ivalue
+
cop
->
SigValPolyCoef0
;
sop
->
RawValue
=
ivalue
;
op
->
Status
=
IO__SUCCESS
;
}
}
}
else
{
op
->
Super
.
ErrorCount
++
;
op
->
Status
=
IO__SEARCHSTRING
;
}
}
...
...
@@ -216,6 +220,7 @@ static pwr_tStatus IoCardRead( io_tCtx ctx,
if
(
op
->
Super
.
ErrorCount
>=
op
->
Super
.
ErrorHardLimit
)
{
errh_Error
(
"IO Card ErrorHardLimit reached '%s', IO stopped"
,
cp
->
Name
);
ctx
->
Node
->
EmergBreakTrue
=
1
;
op
->
Status
=
IO__ERRDEVICE
;
return
IO__ERRDEVICE
;
}
...
...
src/msg/rt/src/rt_io_msg.msg
View file @
16ed5c5d
...
...
@@ -120,6 +120,7 @@ initfail <Initialization failed> /error
nodevice <Device not found> /error
releasebuild <I/O system is not built with this release> /error
dummybuild <Archive for I/O system is not linked with this executable> /error
searchstring <Search string not found> /error
.end
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