Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - bknoth2

Pages: [1] 2
Any seasoned STM_C++ users out there?

We have an extensive, three-level state machine and we've generated the code for it using the STM_C++ template. I'm surprised about the generated code in some ways. Loosely speaking, the state machine is implemented in one large loop and every time it goes around the loop it checks for transition conditions. When it enters a state it calls the onEntry() behavior as expected, then exits that and calls the Do() behavior. Once it exits the Do() behavior it goes around the loop but won't enter the Do() behavior again. That means that the the code for the Do() behavior has to sit in a tight loop if it is doing something that takes time, which then means the rest of the state machine can't execute (and check triggers, for example).

We've been working with the templates a lot to try to get the behavior we want (keep calling Do() until a state transition happens), but we're not fully successful yet.

I'd like to know what experiences others have had or if there are recommendations.


General Board / Do template selectors support SysML blocks?
« on: March 09, 2018, 11:46:20 am »
I've tried these lines in a template selector (one at a time) and they don't seem to map a document fragment to a SysML block. Any insights?

Block:block:My Block Fragment
Block::My Block Fragment


When I transfer a file through the menu system (Configure/Transfer/Project Transfer - DBMS to File) the resulting .EAP file is about 56MB. When I use the script below, the .EAP file is about 12 MB. Any idea what the difference is?


(I left out the strings that define paths. Here's the critical part of the script):

     dim eapString
   eapString = "EAConnectString:BARDA EA DB --- DBType=4;Connect=Provider=MSDASQL.1;Persist Security Info=False;Data Source=EA DB"
   dim repository
   dim projectInterface
'   set repository = CreateObject("EA.Repository")
   set repository = GetObject(, "EA.App").Repository

   'get project interface
   set projectInterface = repository.GetProjectInterface()

   projectInterface.ProjectTransfer eapString, TargetFilePath, LogFilePath

end sub


General Board / SQL-based report on package info coming up empty
« on: February 01, 2018, 05:11:48 am »
EA Version 13.5.1352

1) I use an SQL search to find a package by name. I know the search works - I can right click a returned package and the "Find in browser" feature is highlighted and works.
2) I have a document template that reports the package name and notes. I can generate that document directly from a package (by right-clicking the browser) and the contents are correct in the generated report.

When I create a "Model Document" and specify the search and name from 1) above and the template from 2) and then generate the report, the report comes up empty. The package name and notes don't appear. (If I include elements and the element names, I see a correct list of element names in the report so I know the report receives the package information but no package information appears). Any ideas?


General Board / C++ State Machine Code Generation Example?
« on: December 19, 2017, 03:42:21 pm »
I'm trying to generate C++ code from a state machine. I don't know how to set up triggers with events and guards so that generated code will compile. Is there an example around (or really clear documentation)?

I'm using the system engineering version (13.5).

Thanks for any help


General Board / Postgres-related crashing. ODBC Keep Alive?
« on: December 15, 2017, 09:38:55 am »
I just started using Postgres (9.03 32 bit ODBC driver) with EA (13.5.1351) on Win 10. EA seems to crash if I stop working with a model for a while. (EA crashes - I'm guessing that it has to do with lack of activity). I did not have this problem when working with the same model in an EAP file.

It's as if there's a timeout somewhere, maybe in the ODBC connection? Any thoughts or insights?


General Board / How to report trace relationships for state transitions?
« on: November 04, 2017, 03:23:48 am »
I have a state transition from State1 to State2 (Call it Transition1). I attach a trace from Transition1 to Artifact1. How do I generate a report or an SQL query that lists that trace relationship? (I know how to do it when I trace from a State element, but not from a state transition).


I've seen a few posts on this topic but no answers, so I thought I'd take my chances.

When I use {Diagram.DiagramImg} to put an image into generated documentation, the image is smaller than I'd like (it's legible, but I'd like the diagram to be bigger. Is there a way to set the size?


General Board / Figure numbers in captions in generate documents?
« on: July 20, 2017, 10:31:56 am »
I've searched for a way to do this but haven't found anything.

How do I add Figure numbers and captions in generated documentation?


General Board / Document templates for methods with parameter notes
« on: July 18, 2017, 05:46:51 am »
Any insights on how to create a template that generates documentation for a method that looks like the strcat sample below? Specifically, I want to know how to put the parameter types and names into the function signature and put a list of the parameters and their associated notes below the signature.

Thanks in advance for assistance


char * strcat ( char * destination, const char * source );

    Pointer to the destination array, which should contain a C string, and be large enough to contain the concatenated resulting string.
    C string to be appended. This should not overlap destination.

I like the speed with which I can create relationships using the relationship matrix, until I try creating trace relationships. Creating those relationships with the matrix requires hand-editing every one of the dependency links afterward to add the "trace" stereotype.

Please add a "stereotype" entry box to the Relationship Matrix screen.



Suggestions and Requests / Lining up labels, not their elements
« on: August 21, 2007, 09:20:34 am »
Please provide a way to select several elements (say three interfaces or three ports) and automatically line up the labels for the elements. I'm looking for a quick way to tidy up drawings. So far, I have to select and manually resize or move each label, which is tedious on a complex drawing.

Suggestions and Requests / Add an "assumptions" element
« on: July 03, 2007, 08:32:19 am »
It would be nice to have an assumptions element, used to track project assumptions.

General Board / Show multiplicity of components on diagram?
« on: October 30, 2007, 03:56:23 pm »
Is there a simple way to show multiplicity of components on component diagrams? I'd like to make it clear when a component symbol represents multiple instances of the component.

Maybe I'm overlooking something, but I haven't found a way to do it.



General Board / Sharing model with version 6.5 and 7
« on: August 14, 2007, 08:43:13 am »
If I start using version 7 of EA on a shared-model that the rest of the team is using 6.5 with, are there going to be compatibility issues (I won't enable auditing, which I know converts the database)?



Pages: [1] 2