Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Simulation xml configuration
March 12, 2015
8:28, EET
Avatar
Liam.Callagher
New Member
Members
Forum Posts: 2
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

Hi,

Do you have any documentation for how to configure the simulation.xml file? Specifically I want to make a set of points that will write from an external source. I’d also like to try some of the other node types.

Thanks,

Liam

March 12, 2015
10:19, EET
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1009
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

I am afraid there is no documentation about the XML format. But I recommend that you define the signals using the user interface and refer to the generated XML for those signals as a reference, if you wish to create similar signals directly to the XML.

January 9, 2019
17:22, EET
Avatar
hm62
Member
Members
Forum Posts: 4
Member Since:
November 14, 2017
sp_UserOfflineSmall Offline

I can’t find that simulation.xml file. I’ve created some new nodes manually using the UI, but after restarting the simulation server they are gone.
What could be reason for this? I would expect a simulation.xml to be generated somehow, but it isn’t…Frown
Using version 3.1.6.-192

January 11, 2019
17:14, EET
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 983
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

Hi,

It should be next to the settings.xml in /.prosys/SimulationServer/simulation.xml.

It should look e.g. like this:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<SimulationConfig>
<CounterNode name="Counter1" minValue="0" maxValue="100" changeAmount="1" direction="UP" dataType="SIGNED_INTEGER" simOffset="0"/>
<ExpressionNode name="Expression1" expression="a+b+2">
<links>
<link nodeName="Sinusoid1" variableName="a"/>
<link nodeName="Sawtooth1" variableName="b"/>
</links>
</ExpressionNode>
<RandomNode name="Random1"/>
<WaveNode name="Sinusoid1" amplitude="2.0" period="30.0" timeOffset="0.0" valueOffset="0.0" expression="a*sin((2*Pi/p)*(t+to))+vo"/>
<WaveNode name="Square1" amplitude="2.0" period="8.0" timeOffset="0.0" valueOffset="0.0" expression="a*sign(sin((2*Pi/p)*(t+to)))+vo"/>
<WaveNode name="Sawtooth1" amplitude="2.0" period="10.0" timeOffset="0.0" valueOffset="0.0" expression="2*a*(((t+to)/p)-floor(0.5+(t+to)/p))+vo"/>
<WaveNode name="Triangle1" amplitude="2.0" period="30.0" timeOffset="0.0" valueOffset="0.0" expression="2*a*asin(sin((2*Pi/p)*(t+to)))/Pi + vo"/>
</SimulationConfig>
Forum Timezone: Europe/Helsinki

Most Users Ever Online: 518

Currently Online:
27 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 135

pramanj: 86

Francesco Zambon: 81

rocket science: 77

ibrahim: 75

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

fred: 41

Member Stats:

Guest Posters: 0

Members: 680

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1467

Posts: 6259

Newest Members:

sagarchau, elviralangwell4, Donnavek, Eddiefauth, DonaldPooma, fidelduke938316, Jan-Pfizer, DavidROunc, fen.pang@woodside.com, aytule

Moderators: Jouni Aro: 1009, Otso Palonen: 32, Tuomas Hiltunen: 5, Pyry: 1, Petri: 0, Bjarne Boström: 983, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Jimmy Ni: 26, Teppo Uimonen: 21, Markus Johansson: 42, Niklas Nurminen: 0, Matti Siponen: 321, Lusetti: 0, Ari-Pekka Soikkeli: 5

Administrators: admin: 1