Avatar
Please consider registering
guest
sp_LogInOut Log Insp_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 RSSsp_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: 1029
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: 1045
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: 1919
Currently Online:
Guest(s) 29
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 90
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 732
Moderators: 8
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1545
Posts: 6516
Newest Members:
mood edibles, LouieWreve, daniellabdx, janessan21, sammiebeak359, gena7127517, thorstenbouldin, Brett.Rollason, steven014223542, Roberthat
Moderators: Jouni Aro: 1029, Pyry: 1, Petri: 1, Bjarne Boström: 1045, Jimmy Ni: 26, Matti Siponen: 353, Lusetti: 0, Elias: 0
Administrators: admin: 1