It is currently Tue Feb 07, 2012 7:51 pm

All times are UTC



Welcome
Welcome to RHAPSODY4YOU

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, respond to polls, upload and download content, and access many other special features. Registration is fast, simple, and absolutely free, so please, register to join our community today.





 Page 1 of 1 [ 7 posts ] 
Author Message
 Post subject: Visualizing values in diagrams
PostPosted: Tue Jan 15, 2008 2:39 pm 

Joined: Thu Jan 03, 2008 3:59 pm
Posts: 4
Hi folks!
I just stumbled across a problem that I think should be pretty common. I am using Rhapsody in conjuction with Simulink and on simulating the model I really would like to see the values in a diagram.
You see in Simulink this is pretty easy, you just create a new diagram on demand, drag a value to this diagram and it gets recorded over time.
I did not find any signal recording function so far in Rhapsody, but I need it! What we are doing is to model the physical model in Simulink and the controller in Rhapsody. What I do not like to do is to generate an S-function, because at the moment I can run the model on a PC without a Simulink license (thanks to the Realtime Workshop)

Maybe recording and visualizing signals is something that could be done using the Webify toolkit and an embedded Java applet/ActiveX control, has anyone of you have any experiences with that?
Any response would be appreciated.

Thanks in advance
Stefan


Offline
 Profile  
 
 Post subject:
PostPosted: Thu Jan 17, 2008 6:58 pm 

Joined: Thu Aug 30, 2007 4:31 pm
Posts: 152
Location: Germany
that would be a fantastic new feature in Rhapsody to see the value in an OMD... :idea:


Have you ever tried to build a gui librarie with QT, Labview or whatever that you can link with the Rhapsody compiled application ?


Offline
 Profile  
 
 Post subject: Something like a solution
PostPosted: Mon Jan 21, 2008 4:51 pm 

Joined: Thu Jan 03, 2008 3:59 pm
Posts: 4
Hello!

I just fiddled around with a possible solution. Attached you'll find some files that have to be added to your project (just below the component), so that they will be added to the webify pages. I will not describe all necessary steps like compiler settings, this can be found in the Rhapsody documentation.
In 'config.html' you'll find something like this:
[260;400]CoolingUnit[0]::temperatureIn#0000ff
[260;400]CoolingUnit[0]::temperatureOut#ff0000
This is a reference to two of my Webified-attributes. Change these to your own values. The values in the brackets define the scaling of the Y-axis, the "#xxxxx" term is the signal color. you can add a second signal to a diagram with ","
When you open "localhost/frameset.html" you'll have a configuration window at the top and the diagrams (hopefully :-) at the bottom.

Just try changing the configuration by adding any "webified" numeric attribute and hit "Update". The lower frame should reload and show the new configuration, new diagrams, new signals.
At the moment the X-Axis is limited to 1000 Values. When the limit is reached it just starts over again.

In my tests I used Opera, Firefox and IE, all worked pretty well. With an update rate of 0.1sec it was still not too much for my PC.

Any comments and improvements (this version is a bit unstable) are welcome!!

Best regards,
Stefan

P.S. The diagram stuff is from: http://www.lutanho.net/diagram/index.html


Attachments:
File comment: HTML-Pages plus javascript sources for diagram painting.
logging.zip [12.62 KiB]
Downloaded 19 times
Offline
 Profile  
 
 Post subject:
PostPosted: Mon Jan 21, 2008 10:46 pm 

Joined: Thu Aug 30, 2007 4:31 pm
Posts: 152
Location: Germany
can you add a screenshot ?


Offline
 Profile  
 
 Post subject: Screenshot
PostPosted: Tue Jan 22, 2008 8:14 am 

Joined: Thu Jan 03, 2008 3:59 pm
Posts: 4
Hi Mickey,

sure, her it is!

Cheers,
Stefan


Attachments:
File comment: Screenshot
Image1.gif
Image1.gif [ 56.38 KiB | Viewed 273 times ]
Offline
 Profile  
 
 Post subject:
PostPosted: Tue Feb 05, 2008 8:05 pm 

Joined: Thu Aug 30, 2007 4:31 pm
Posts: 152
Location: Germany
cooool

... can you put a Rhapsody Model to the sample topics in this Forum... ?


Offline
 Profile  
 
 Post subject:
PostPosted: Fri Apr 17, 2009 10:03 pm 

Joined: Wed Dec 10, 2008 10:51 pm
Posts: 138
This is great! I'm having one problem though. The graph doesn't actually update unless I move or resize the window.


Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:


suspicion-preferred