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
e5c54682
Commit
e5c54682
authored
Jan 14, 2004
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Trace and ge type graphs for Int32 attributes
parent
acf062a8
Changes
10
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
3246 additions
and
5 deletions
+3246
-5
wb/lib/wb/src/wb_goenm0.c
wb/lib/wb/src/wb_goenm0.c
+3
-0
wb/lib/wb/src/wb_goenm1.c
wb/lib/wb/src/wb_goenm1.c
+3
-0
wb/lib/wb/src/wb_goenm14.c
wb/lib/wb/src/wb_goenm14.c
+3
-0
wb/lib/wb/src/wb_goenm15.c
wb/lib/wb/src/wb_goenm15.c
+4
-0
wb/lib/wb/src/wb_goenm2.c
wb/lib/wb/src/wb_goenm2.c
+3
-0
wb/lib/wb/src/wb_goenm7.c
wb/lib/wb/src/wb_goenm7.c
+4
-0
wb/lib/wb/src/wb_gre.c
wb/lib/wb/src/wb_gre.c
+9
-0
xtt/exe/rt_xtt/src/rt_xtt.cpp
xtt/exe/rt_xtt/src/rt_xtt.cpp
+3
-0
xtt/exp/ge/src/pwr_t_int32.pwg
xtt/exp/ge/src/pwr_t_int32.pwg
+3171
-0
xtt/lib/ge/src/ge_graph_object.cpp
xtt/lib/ge/src/ge_graph_object.cpp
+43
-5
No files found.
wb/lib/wb/src/wb_goenm0.c
View file @
e5c54682
...
...
@@ -276,6 +276,9 @@ int goen_create_nodetype_m0(
if
(
bodydef
[
i
].
Par
->
Output
.
Info
.
Type
==
pwr_eType_Float32
)
flow_SetTraceAttr
(
cp
,
NULL
,
bodydef
[
i
].
ParName
,
flow_eTraceType_Float32
);
else
if
(
bodydef
[
i
].
Par
->
Output
.
Info
.
Type
==
pwr_eType_Int32
)
flow_SetTraceAttr
(
cp
,
NULL
,
bodydef
[
i
].
ParName
,
flow_eTraceType_Int32
);
else
if
(
bodydef
[
i
].
Par
->
Output
.
Info
.
Type
==
pwr_eType_Boolean
)
flow_SetTraceAttr
(
cp
,
NULL
,
bodydef
[
i
].
ParName
,
flow_eTraceType_Boolean
);
...
...
wb/lib/wb/src/wb_goenm1.c
View file @
e5c54682
...
...
@@ -262,6 +262,9 @@ int goen_create_nodetype_m1(
if
(
bodydef
[
i
].
Par
->
Output
.
Info
.
Type
==
pwr_eType_Float32
)
flow_SetTraceAttr
(
cp
,
NULL
,
bodydef
[
i
].
ParName
,
flow_eTraceType_Float32
);
else
if
(
bodydef
[
i
].
Par
->
Output
.
Info
.
Type
==
pwr_eType_Int32
)
flow_SetTraceAttr
(
cp
,
NULL
,
bodydef
[
i
].
ParName
,
flow_eTraceType_Int32
);
else
if
(
bodydef
[
i
].
Par
->
Output
.
Info
.
Type
==
pwr_eType_Boolean
)
flow_SetTraceAttr
(
cp
,
NULL
,
bodydef
[
i
].
ParName
,
flow_eTraceType_Boolean
);
...
...
wb/lib/wb/src/wb_goenm14.c
View file @
e5c54682
...
...
@@ -270,6 +270,9 @@ int goen_create_nodetype_m14(
if
(
bodydef
[
i
].
Par
->
Output
.
Info
.
Type
==
pwr_eType_Float32
)
flow_SetTraceAttr
(
cp
,
NULL
,
bodydef
[
i
].
ParName
,
flow_eTraceType_Float32
);
else
if
(
bodydef
[
i
].
Par
->
Output
.
Info
.
Type
==
pwr_eType_Int32
)
flow_SetTraceAttr
(
cp
,
NULL
,
bodydef
[
i
].
ParName
,
flow_eTraceType_Int32
);
else
if
(
bodydef
[
i
].
Par
->
Output
.
Info
.
Type
==
pwr_eType_Boolean
)
flow_SetTraceAttr
(
cp
,
NULL
,
bodydef
[
i
].
ParName
,
flow_eTraceType_Boolean
);
...
...
wb/lib/wb/src/wb_goenm15.c
View file @
e5c54682
...
...
@@ -297,6 +297,10 @@ int goen_create_nodetype_m15(
flow_SetTraceAttr
(
cp
,
NULL
,
bodydef
[
inputs
+
interns
].
Par
->
Output
.
Info
.
PgmName
,
flow_eTraceType_Float32
);
else
if
(
bodydef
[
inputs
+
interns
].
Par
->
Output
.
Info
.
Type
==
pwr_eType_Int32
)
flow_SetTraceAttr
(
cp
,
NULL
,
bodydef
[
inputs
+
interns
].
Par
->
Output
.
Info
.
PgmName
,
flow_eTraceType_Int32
);
else
if
(
bodydef
[
inputs
+
interns
].
Par
->
Output
.
Info
.
Type
==
pwr_eType_Boolean
)
flow_SetTraceAttr
(
cp
,
NULL
,
bodydef
[
inputs
+
interns
].
Par
->
Output
.
Info
.
PgmName
,
...
...
wb/lib/wb/src/wb_goenm2.c
View file @
e5c54682
...
...
@@ -293,6 +293,9 @@ int goen_create_nodetype_m2(
if
(
bodydef
[
i
].
Par
->
Output
.
Info
.
Type
==
pwr_eType_Float32
)
flow_SetTraceAttr
(
cp
,
NULL
,
bodydef
[
i
].
ParName
,
flow_eTraceType_Float32
);
else
if
(
bodydef
[
i
].
Par
->
Output
.
Info
.
Type
==
pwr_eType_Int32
)
flow_SetTraceAttr
(
cp
,
NULL
,
bodydef
[
i
].
ParName
,
flow_eTraceType_Int32
);
else
if
(
bodydef
[
i
].
Par
->
Output
.
Info
.
Type
==
pwr_eType_Boolean
)
flow_SetTraceAttr
(
cp
,
NULL
,
bodydef
[
i
].
ParName
,
flow_eTraceType_Boolean
);
...
...
wb/lib/wb/src/wb_goenm7.c
View file @
e5c54682
...
...
@@ -236,6 +236,10 @@ int goen_create_nodetype_m7(
flow_SetTraceAttr
(
cp
,
NULL
,
bodydef
[
inputs
+
interns
].
Par
->
Output
.
Info
.
PgmName
,
flow_eTraceType_Float32
);
else
if
(
bodydef
[
inputs
+
interns
].
Par
->
Output
.
Info
.
Type
==
pwr_eType_Int32
)
flow_SetTraceAttr
(
cp
,
NULL
,
bodydef
[
inputs
+
interns
].
Par
->
Output
.
Info
.
PgmName
,
flow_eTraceType_Int32
);
else
if
(
bodydef
[
inputs
+
interns
].
Par
->
Output
.
Info
.
Type
==
pwr_eType_Boolean
)
flow_SetTraceAttr
(
cp
,
NULL
,
bodydef
[
inputs
+
interns
].
Par
->
Output
.
Info
.
PgmName
,
...
...
wb/lib/wb/src/wb_gre.c
View file @
e5c54682
...
...
@@ -4393,6 +4393,15 @@ int gre_set_trace_attributes( gre_ctx grectx)
case
pwr_cClass_cstoai
:
case
pwr_cClass_cstoao
:
case
pwr_cClass_cstoav
:
case
pwr_cClass_GetIi
:
case
pwr_cClass_GetIo
:
case
pwr_cClass_GetIv
:
case
pwr_cClass_stoii
:
case
pwr_cClass_stoio
:
case
pwr_cClass_stoiv
:
case
pwr_cClass_cstoii
:
case
pwr_cClass_cstoio
:
case
pwr_cClass_cstoiv
:
sts
=
ldh_GetObjectBodyDef
(
wind
->
hw
.
ldhsession
,
(
*
node_ptr
)
->
ln
.
classid
,
"DevBody"
,
1
,
&
bodydef
,
&
rows
);
...
...
xtt/exe/rt_xtt/src/rt_xtt.cpp
View file @
e5c54682
...
...
@@ -612,6 +612,9 @@ static void xtt_activate_opengraph( Widget w, Xtt *xtt, XmAnyCallbackStruct *dat
case
pwr_eType_Float32
:
sprintf
(
filename
,
"pwr_exe:pwr_t_float32.pwg"
);
break
;
case
pwr_eType_Int32
:
sprintf
(
filename
,
"pwr_exe:pwr_t_int32.pwg"
);
break
;
case
pwr_eType_Boolean
:
sprintf
(
filename
,
"pwr_exe:pwr_t_boolean.pwg"
);
break
;
...
...
xtt/exp/ge/src/pwr_t_int32.pwg
0 → 100644
View file @
e5c54682
This diff is collapsed.
Click to expand it.
xtt/lib/ge/src/ge_graph_object.cpp
View file @
e5c54682
...
...
@@ -44,6 +44,7 @@ typedef struct {
}
graph_sObjectFunction
;
static
int
graph_attr_float32
(
Graph
*
graph
,
pwr_sAttrRef
*
attrref
);
static
int
graph_attr_int32
(
Graph
*
graph
,
pwr_sAttrRef
*
attrref
);
static
int
graph_attr_boolean
(
Graph
*
graph
,
pwr_sAttrRef
*
attrref
);
static
int
graph_object_ix
(
Graph
*
graph
,
pwr_tObjid
objid
);
static
int
graph_object_ax
(
Graph
*
graph
,
pwr_tObjid
objid
);
...
...
@@ -199,13 +200,15 @@ int Graph::init_object_graph( int mode)
sts
=
gdh_NameToAttrref
(
pwr_cNObjid
,
object_name
,
&
attrref
);
if
(
EVEN
(
sts
))
return
sts
;
if
(
strcmp
(
classname
,
"float32"
)
==
0
)
{
if
(
strcmp
(
classname
,
"float32"
)
==
0
)
{
sts
=
graph_attr_float32
(
this
,
&
attrref
);
return
sts
;
}
else
if
(
strcmp
(
classname
,
"boolean"
)
==
0
)
{
if
(
strcmp
(
classname
,
"int32"
)
==
0
)
{
sts
=
graph_attr_int32
(
this
,
&
attrref
);
return
sts
;
}
else
if
(
strcmp
(
classname
,
"boolean"
)
==
0
)
{
sts
=
graph_attr_boolean
(
this
,
&
attrref
);
return
sts
;
}
...
...
@@ -269,7 +272,42 @@ static int graph_attr_float32( Graph *graph, pwr_sAttrRef *attrref)
}
//
// Attribute graph for Float32
// Attribute graph for Int32
//
typedef
struct
{
graph_sObjectTrend
td
;
}
graph_sAttrInt32
;
static
void
graph_attr_int32_scan
(
Graph
*
graph
)
{
graph_sAttrInt32
*
od
=
(
graph_sAttrInt32
*
)
graph
->
graph_object_data
;
graph
->
trend_scan
(
&
od
->
td
);
}
static
void
graph_attr_int32_close
(
Graph
*
graph
)
{
free
(
graph
->
graph_object_data
);
}
static
int
graph_attr_int32
(
Graph
*
graph
,
pwr_sAttrRef
*
attrref
)
{
int
sts
;
graph_sAttrInt32
*
od
;
od
=
(
graph_sAttrInt32
*
)
calloc
(
1
,
sizeof
(
graph_sAttrInt32
));
graph
->
graph_object_data
=
(
void
*
)
od
;
graph
->
graph_object_close
=
graph_attr_int32_close
;
graph
->
graph_object_scan
=
graph_attr_int32_scan
;
sts
=
graph
->
trend_init
(
&
od
->
td
,
pwr_cNObjid
);
return
1
;
}
//
// Attribute graph for Boolean
//
typedef
struct
{
...
...
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