libscott
Joined: Aug 30, 2017 Posts: 1
|
Posted: Aug 30, 2017 9:35 PM Post subject: External parameterisation of design? |
|
Could someone explain a basic method for dynamically setting element parameters in a design or a nested design?
For example, lets say I want to implement a CustomElement in Java to produce parameterisation events. Those events should specify an element name or element ID, property name and property value, to update in real time.
Then I could, for example, adjust a threshold in real time. Any help? :) |
|
jarek
Joined: Oct 22, 2007 Posts: 1073
|
Posted: Aug 30, 2017 9:43 PM Post subject: |
|
It is easy to set any BioEra element property using PropertySetter, I can create a simple example for you. It is demonstrated in the main BioEra example designs.
But this will not be useful with CustomElement. CustomeElement does not have properties like all other elements (except its name and java class). You do not pass properties to your java program that way.
If you want to adjust a threshold in real time from CustomElement, then you could send the current threshold value to the output of CustomElement, and then use this value to set threshold in Threshold element (you don't need a PropertySetter for that). |
|