Jump to content
Mr. Josip Basic

Manipulating configuration paramaters

Recommended Posts

Hi!

 

- When writing input file template for the software connection, is it possible to have an expression within <entry> tag:

<entry>X - Y</entry> or something like <entry>X.at(2)</entry> if X was defined as FDoubleSeries would be really handy.

 

- How can a variable in a configuration be initialized with other configuration variable in its expression field?

 

Best regards,

Josip

Share this post


Link to post
Share on other sites

Hi Josip,

 

No sorry, this is not possible the way you suggest.

You cannot create references from one entry to another in a configuration or directly in an input file.

 

Instead you can create all references you need outside of the configuration.

 

1. If you like to work with a series you could create a Series Parameter and set the desired double values to it.

In your configuration you have to create entries for each value you like to get written into the input file.

To access the values of the series set an expression like this to your entries: mySeriesParamter.getValue().at(0)

 

2. If you like to get one entry initialized with the value of another entry you simply can set the same expression to both of them.

e.g.

myParameterX = 1.5

entry1 = myParameterX

entry2 = myParameterX + 0.5

 

So, you still need to create a parameter for each value you like to use as an expression. The advantage of this approach is that you can work with references even between different configurations.

 

Cheers

Ben

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...