Book a Demo

Author Topic: SysML Parametric Diagram simulation  (Read 7155 times)

Yves C

  • EA User
  • **
  • Posts: 33
  • Karma: +1/-1
  • I love YaBB 1G - SP1!
    • View Profile
SysML Parametric Diagram simulation
« on: March 22, 2012, 09:09:34 pm »
Using V9.3, I'm trying to change the script of a Constraint Block in order to use it in a simulation but I can't find the way to access to the script. In the Example model it is said that it's accessible through the contextuel menu of the Constraint Block but I can't find it.
Has anyone already used it with this version?
Yves

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: SysML Parametric Diagram simulation
« Reply #1 on: March 23, 2012, 08:58:36 am »
Which edition of Enterprise Architect are you currently running?  (E.g. Professional, Corporate, Systems Engineering, etc)

SysML Parametric Model Simulation is only available in the Systems Engineering and Ultimate editions of Enterprise Architect.
http://www.sparxsystems.com/products/ea/index.html#editions

Yves C

  • EA User
  • **
  • Posts: 33
  • Karma: +1/-1
  • I love YaBB 1G - SP1!
    • View Profile
Re: SysML Parametric Diagram simulation
« Reply #2 on: March 23, 2012, 08:43:47 pm »
I'm using the trial version so I'm testing the System Engineering and Ultimate versions.
Yves

Adrian B

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: SysML Parametric Diagram simulation
« Reply #3 on: April 09, 2012, 03:41:39 am »
Hi, I am having exactly the same problem. I'm running the Systems Engineering option for the trial version Program Version 9.3.930.

If I right click on my parametric diagram I get a SysML > Simulate Diagram option in the context menu but nowhere can I find a way to edit the constraint block script. I've tried adding 'ports' and 'parts' to the block to no avail.

I've spent hours trawling the help but can only find references to using the contextual menu - I just can't find the menu itself!

Adrian B

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: SysML Parametric Diagram simulation
« Reply #4 on: April 09, 2012, 04:30:19 am »
Hi again. I've found the script editor! in the Toolbox toolbar there is a 'More Tools... option. Clicking this brings up a long list of options. Down towards the bottom choose 'MDG Technology for SysML > SysML Parametric'. This changes your Toolbox and under SysML Patterns is a Constraint Block. Add one of these to your diagram and then on right clicking you get a context menu option 'SysML > Edit Element Script' :).
So all I've got to do now is work out what to do with it!

Adrian B

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: SysML Parametric Diagram simulation
« Reply #5 on: April 13, 2012, 06:00:24 am »
 >:( I've given up. It just does not work. I have been totally unable to find anyway of examining, let alone changing, the code that makes the example sine wave generator function. The top level constraint block does allow you to edit it but there is no code. The underlying one just does not have any context sensitive menu options to let you see it. I've tried all of them. Twice.
So I've gone back to using Excel.

Adrian B

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: SysML Parametric Diagram simulation
« Reply #6 on: April 13, 2012, 06:08:21 am »
And to make things even worse, I've just discovered that the email I sent a couple of days ago to [email protected] has just bounced back with the helpful "Message expired for domain sparxsystems.com" :'(

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: SysML Parametric Diagram simulation
« Reply #7 on: April 13, 2012, 10:10:10 am »
Adrian. No idea why your email hasn't made it through, we're still getting other emails.

I'm assuming you're in the EAExample model on the EchoDSP diagram that can be simulated.

If so, the Constraint Properties you see on that diagram are instances of the Constraint Blocks that define the behavior. To edit the behavior itself you'll need to go to the definition of the Constraint Block. Conveniently, there is a hyperlink on that diagram called Constraint Block Definitions. It takes you to a diagram with 6 different constraint blocks right clicking on these will give you the ability to edit the constraint script.

If it isn't there it's also worth checking your command set.
« Last Edit: April 13, 2012, 10:11:11 am by simonm »

Adrian B

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: SysML Parametric Diagram simulation
« Reply #8 on: April 17, 2012, 05:49:25 am »
Hi,
thanks for replying and sorry for my slow response - I've been out for a few days.
I created a new model at root node level. Then I used the Add a New Model using Wizard Ctrl+Shift+M menu option. This brings up  a window and a tab Model Patterns where I selected SysML 1.2 in the left hand pane. The right hand pane has a check box for Systems Engineering Model. Checking this and clicking on OK creates something called "Systems Engineering Model" under my original project.
Opening this up I get a folder called Requirements Model under which is Constraints folder. In there is a SysML Block Definition Diagram called Constraints. Opening this reveals a diagram with a single Constraint block called 'Constraint 1' containing Properties t, f, inVal and outVal. There is a pair of spectacles in the bottom right hand corner, clicking on these opens up a further diagram called par [ConstraintBlock] Constriant 1 [Constraint 1]: Now right clicking on any blank space in the diagram brings up a menu with a SysML > Simulate Diagram option. Using this I can plot lots of nice sine waves. This looks exactly like the block I used on my recent training course at Loughborough University.
So now I want to be able to look at how the sine wave generator works as then I can use this sort of diagram to plot a different function.
This is where I now struggle. I can't find any way of seeing the sine functionality definition in the diagram I just simulated. I can find a sine wave block in a folder called 'Library' under the project and that has a menu option to 'view source code' but nothing at all happens when I select this.
And now the trial licence for MDG Technology for SysML has run out so I guess the EA is also due to run out., but the above was still a problem before the licence ran out.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: SysML Parametric Diagram simulation
« Reply #9 on: April 17, 2012, 11:31:27 am »
You're very close.

Open the ConstraintBlocks diagram.

Right click on the SineWave constraintBlock and select SysML | Edit Element Script.

Contact our Sales department from the link on bottom of the page and they'll be able to help you continue your trial.

Adrian B

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: SysML Parametric Diagram simulation
« Reply #10 on: April 17, 2012, 07:24:17 pm »
OK, got it. It only works on the Library block - it even has the same instructions printed next to it! If you try it in the Requirements Model block, the menu option is there but nothing seems to happen. Having said that, I'm pretty sure that I did try it on the Library block and got a blank page. Must have got completely confused.
Thanks for your help.