Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lebt-alisson-scanner
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
icshwi
lebt-alisson-scanner
Commits
eb80b0ed
Commit
eb80b0ed
authored
8 years ago
by
Jean-François Denis
Browse files
Options
Downloads
Patches
Plain Diff
Add SNL procedure in order to simulate a curent
parent
836b51e3
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/EMU_RAMP-CURRENT.st
+73
-0
73 additions, 0 deletions
src/EMU_RAMP-CURRENT.st
with
73 additions
and
0 deletions
src/EMU_RAMP-CURRENT.st
0 → 100644
+
73
−
0
View file @
eb80b0ed
/*
#
C
.
E
.
A
.
IRFU
/
SIS
/
LDISC
#
*/
program
RampCurrent
%%
#include
<
stdio
.
h
>
%%
#include
<
string
.
h
>
%%
#include
<
stdlib
.
h
>
/****
PLATES
PS
******/
float
PS2_Cons
;
assign
PS2_Cons
to
"{PREFIX_PS}:{CONS_PS2}"
;
monitor
PS2_Cons
;
evflag
PS2_Cons_flag
;
sync
PS2_Cons
PS2_Cons_flag
;
/****
FC
CURRENT
******/
float
FCCurr_Cons
;
assign
FCCurr_Cons
to
"SIMU:CURRENT-SP"
;
monitor
FCCurr_Cons
;
short
start
;
assign
start
to
"SCAN:MTR.EXSC"
;
monitor
start
;
short
simulation
;
assign
simulation
to
"SCAN:PROC-SIMU"
;
monitor
simulation
;
/****
variables
*****/
float
limitCurr=
0.6
;
ss
ss1
{
state
init
{
when
(
delay
(
1.0
)
&&
(
pvConnectCount
()
==
pvChannelCount
()))
{
start
=
0
;
simulation=
0
;
}
state
start
}
state
start
{
when
((
start
==
1
)
&&
(
simulation
==
1
))
{
FCCurr_Cons
=
0
;
pvPut
(
FCCurr_Cons
);
}
state
ramp
}
state
ramp
{
when
(
efTestAndClear
(
PS2_Cons_flag
))
{
if
((
PS2_Cons
<
limitCurr
)
&&
(
PS2_Cons
>-
limitCurr
)){
FCCurr_Cons
=
3
;}
else
{
%%
FCCurr_Cons
=
0
;
}
pvPut
(
FCCurr_Cons
);
}
state
ramp
when
(
start
==
0
)
{
FCCurr_Cons
=
0
;
pvPut
(
FCCurr_Cons
);
}
state
start
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment