Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic Statemate (steve huntington)
Decrease font size
Increase font size
Topic Title: More info on DLL integration with STM and more questions
Topic Summary:
Created On: 5-Aug-2004 17:25
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 5-Aug-2004 17:25
User is offline View Users Profile Print this message


Graham Bleakley

Posts: 52
Joined: 30-Jun-2004

Hi

It has been suggested that it is possible to run an external c code executable as different thread and be able to read/write to various Statemate variables as the model is simulating (the "Connecting user reference code to simulation
manual" says I can do this).

But a couple of questions

1/ Is this supported on PC, I can only find reference to makefile options
for solaris, SunOs and HP (which we do not support any more ).

2/ Can the executable be a DLL and still make the calls that are mentioned
in the manual ??

3/ If the answer to either of the above questions is yes, what do I need to
set the make file compiler options to ?? and can I do it with MSVC 6 ??

4/ Finally, will the C code and O files described in the manual be
compilable in a C++ environment (as they want a c++ dll) ?

Thanks in advance

Graham
Report this to a Moderator Report this to a Moderator
 5-Aug-2004 17:26
User is offline View Users Profile Print this message


Yael Frommer

Posts: 5
Joined: 3-Aug-2004

Hello

I'm not sure i understand : do youwant to run this external code dll with Statemate simulation? The simulation today already builds user code as a dll, does this help?

Anyway, regarding your questions:

1/ Yes, this should also work on PC

2/ Yes, a dll can call the functions you see in the manual, that's how simulation runs user-code

3/ To get an example makefile you can run simulation on a model with external code, and see the makefile created in the workarea under ana\<profile name>

4/ I think it should work in a C++ environment too

good-luck,
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic Statemate forum.
There are currently 1 users logged in.
The most users ever online was 12 on 4-Mar-2008 at 15:31.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.