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
4ce7de3d
Commit
4ce7de3d
authored
May 22, 2006
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GeDyn::set_p didn't work, scan function was never called.
parent
f92af1be
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
10 deletions
+23
-10
xtt/lib/ge/src/ge_dyn.cpp
xtt/lib/ge/src/ge_dyn.cpp
+13
-3
xtt/lib/ge/src/ge_dyn.h
xtt/lib/ge/src/ge_dyn.h
+2
-2
xtt/lib/ge/src/ge_graph_object.cpp
xtt/lib/ge/src/ge_graph_object.cpp
+8
-5
No files found.
xtt/lib/ge/src/ge_dyn.cpp
View file @
4ce7de3d
/*
* Proview $Id: ge_dyn.cpp,v 1.4
4 2006-05-16 11:51:01
claes Exp $
* Proview $Id: ge_dyn.cpp,v 1.4
5 2006-05-22 13:27:00
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -704,14 +704,24 @@ void *GeDyn::get_p()
return
0
;
}
void
GeDyn
::
set_p
(
void
*
p
)
void
GeDyn
::
set_p
(
grow_tObject
object
,
void
*
p
)
{
for
(
GeDynElem
*
elem
=
elements
;
elem
;
elem
=
elem
->
next
)
{
if
(
elem
->
dyn_type
==
ge_mDynType_Value
)
{
glow_sTraceData
*
data
;
grow_GetTraceAttr
(
object
,
&
data
);
data
->
p
=
p
;
grow_SetTraceAttr
(
object
,
data
);
((
GeValue
*
)
elem
)
->
p
=
p
;
break
;
}
else
if
(
elem
->
dyn_type
==
ge_mDynType_DigLowColor
)
{
else
if
(
elem
->
dyn_type
==
ge_mDynType_DigLowColor
)
{
glow_sTraceData
*
data
;
grow_GetTraceAttr
(
object
,
&
data
);
data
->
p
=
p
;
grow_SetTraceAttr
(
object
,
data
);
((
GeDigLowColor
*
)
elem
)
->
p
=
(
pwr_tBoolean
*
)
p
;
break
;
}
...
...
xtt/lib/ge/src/ge_dyn.h
View file @
4ce7de3d
/*
* Proview $Id: ge_dyn.h,v 1.2
8 2006-05-16 11:51:01
claes Exp $
* Proview $Id: ge_dyn.h,v 1.2
9 2006-05-22 13:27:00
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -689,7 +689,7 @@ class GeDyn {
int
*
ref_trend_hold
();
double
*
ref_trend_scantime
();
void
*
get_p
();
void
set_p
(
void
*
p
);
void
set_p
(
grow_tObject
object
,
void
*
p
);
void
update
();
void
export_java
(
grow_tObject
object
,
ofstream
&
fp
,
char
*
var_name
);
void
export_java_object
(
grow_tObject
object
,
ofstream
&
fp
,
char
*
var_name
);
...
...
xtt/lib/ge/src/ge_graph_object.cpp
View file @
4ce7de3d
/*
* Proview $Id: ge_graph_object.cpp,v 1.1
2 2006-05-16 11:51:01
claes Exp $
* Proview $Id: ge_graph_object.cpp,v 1.1
3 2006-05-22 13:27:00
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -27,6 +27,7 @@ extern "C" {
#include "co_cdh.h"
#include "co_time.h"
#include "pwr_baseclasses.h"
#include "pwr_basecomponentclasses.h"
#include "rt_gdh.h"
#include "co_dcli.h"
#include "ge_msg.h"
...
...
@@ -84,7 +85,9 @@ static graph_sObjectFunction graph_object_functions[] = {
{
pwr_cClass_ChanDi
,
&
graph_object_chanxx
},
{
pwr_cClass_ChanDo
,
&
graph_object_chanxx
},
{
pwr_cClass_pid
,
&
graph_object_PID
},
{
pwr_cClass_CompPID
,
&
graph_object_PID
},
{
pwr_cClass_mode
,
&
graph_object_Mode
},
{
pwr_cClass_CompModePID
,
&
graph_object_Mode
},
{
pwr_cClass_PlcThread
,
&
graph_object_PlcThread
},
{
0
,
0
}};
...
...
@@ -420,7 +423,7 @@ static int graph_object_ax( Graph *graph, pwr_sAttrRef *arp)
{
GeDyn
*
dyn
;
grow_GetUserData
(
object
,
(
void
**
)
&
dyn
);
dyn
->
set_p
(
(
void
*
)
od
->
object_name
);
dyn
->
set_p
(
object
,
(
void
*
)
od
->
object_name
);
}
sts
=
graph
->
trend_init
(
&
od
->
td
,
arp
);
...
...
@@ -508,7 +511,7 @@ static int graph_object_ix( Graph *graph, pwr_sAttrRef *arp)
{
GeDyn
*
dyn
;
grow_GetUserData
(
object
,
(
void
**
)
&
dyn
);
dyn
->
set_p
(
(
void
*
)
od
->
object_name
);
dyn
->
set_p
(
object
,
(
void
*
)
od
->
object_name
);
}
sts
=
graph
->
trend_init
(
&
od
->
td
,
arp
);
...
...
@@ -595,7 +598,7 @@ static int graph_object_dx( Graph *graph, pwr_sAttrRef *arp)
{
GeDyn
*
dyn
;
grow_GetUserData
(
object
,
(
void
**
)
&
dyn
);
dyn
->
set_p
(
(
void
*
)
od
->
object_name
);
dyn
->
set_p
(
object
,
(
void
*
)
od
->
object_name
);
}
sts
=
graph
->
trend_init
(
&
od
->
td
,
arp
);
...
...
@@ -1301,7 +1304,7 @@ static int graph_object_Mode( Graph *graph, pwr_sAttrRef *arp)
if
(
EVEN
(
sts
))
return
sts
;
grow_GetUserData
(
object
,
(
void
**
)
&
dyn
);
dyn
->
set_p
(
(
void
*
)
&
od
->
man_mode
);
dyn
->
set_p
(
object
,
(
void
*
)
&
od
->
man_mode
);
// Register scan function
graph
->
graph_object_scan
=
graph_object_Mode_scan
;
...
...
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