Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
af3
AF3
Commits
6b04cace
Commit
6b04cace
authored
Feb 13, 2018
by
Hafiz Muhammad Wahaj Aziz
Browse files
sampling time is now converted to milliseconds
refs 3281
parent
ea1c1a05
Changes
1
Hide whitespace changes
Inline
Side-by-side
org.fortiss.af3.component.ui/trunk/src/org/fortiss/af3/component/ui/generator/FMUGeneratorExecutionTarget.java
View file @
6b04cace
...
...
@@ -77,6 +77,8 @@ import org.fortiss.af3.project.extension.data.Executable;
* @author aravantinos
*/
public
class
FMUGeneratorExecutionTarget
extends
ExecutionTargetBase
{
/** {@inheritDoc} */
@Override
...
...
@@ -201,7 +203,8 @@ public class FMUGeneratorExecutionTarget extends ExecutionTargetBase {
message
+=
baseMsg
+
"return a constant value."
;
}
else
{
// Multiplying with 1000 to convert time to milliseconds
samplingTime
=
((
DoubleConst
)
returnStatement
.
getValue
()).
getValue
();
samplingTime
=
((
DoubleConst
)
returnStatement
.
getValue
()).
getValue
();
}
}
}
...
...
@@ -227,7 +230,7 @@ public class FMUGeneratorExecutionTarget extends ExecutionTargetBase {
samplingTime
=
1
/
lastSelectedFrequency
;
}
final
double
toMilliseconds
=
1000.0
;
samplingTime
=
samplingTime
*
toMilliseconds
;
samplingTime
=
samplingTime
*
toMilliseconds
;
return
samplingTime
;
}
...
...
Write
Preview
Supports
Markdown
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