Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Are there any good examples of using Rhapsody with C++ for a simulation/calculations? What language/compiler is best to use with rhapsody?

 Is C++ the best language to use? Is Cygwin a popular compiler to use?

0 votes


Accepted answer

Permanent link

 The compiler is usually used to compile source code that Rhapsody has generated from the model. What you are doing I think is more of an analysis. I've done something similar with RAAML (Risk Analysis) - I build the model using graphics and / or tables - and then I use Java - through the Rhapsody API - to perform the actual calculations. The results of the calculations are also added to the model and presented in tables. Have a look and see if this is the kind of thing you want:


You can download the profile here:

Here's a hands on lab where you can try it out:

Cheers
Andy

Logan Torres selected this answer as the correct answer

0 votes


One other answer

Permanent link

 It really depends on what you are trying to achieve and what you level of knowledge is with the languages. Rhapsody supports C, C++ and Java. If you are an experienced C++ programmer then yes use C++ - if you know Java use Java. Then there is the expense - Java 'compilers' are free - as is Cygwin. Visual Studio on the other hand tends to be an expense although there are lightweight free versions you can use (last time I checked anyway which was a while ago).


Rhapsody supports many compilers out of the box - Cygwin and Visual Studio included. 

Do you have an example of what you are trying to do ?


0 votes

Comments

Trying to conduct a RMA (Reliability, Maintainability, Availability) analysis of our system. So will also need tables of data that help us calculate the RMA values as well. Would we use tables within Rhapsody for that? And then use an activity diagram to calculate the RMA values? 

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,027

Question asked: Jan 27 '22, 10:28 a.m.

Question was seen: 1,611 times

Last updated: Jan 28 '22, 12:01 p.m.

Confirmation Cancel Confirm