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.


Messages - royvanmarrewijk

Pages: 1 [2] 3 4
16
General Board / Re: Map functions to signals
« on: October 31, 2016, 11:39:40 pm »
Hi Peter,

Thanks for your reaction!
I created the example and I run into a problem when I choose the solution with the flow property. I created the "FrequencyPort" Block and within this block I created a Flow Property and typed this with the "FrequencyFlowProperty" block. I think I can't select the operations because the flow property is nested within the "FrequencyPort" Block and it isn't a structural element. So can you tell me how you created the flow property so you can select the operations in the SD.

Roy

17
General Board / Re: Map functions to signals
« on: October 20, 2016, 07:31:33 pm »
Hi,

Ok, let's see if I can draw what I want to have :o

                                      ________                             ________
                                     |                |                         |                | 
                                     |    SW       |                         |     HW     |
                                     |________|                         |________|       
   SetFrequency(50)               |                                          |
----------------------------->|                                          |
                                              |       oSetFrequency(50)     |
                                              |--------------------------->|
                                              |       oStoreFrequency         |
                                              |--------------------------->|
                                              |       iAccept()                     |
                                              |<---------------------------|
                                              |                                           |

I would like to create flow properties which I can use to define the signal information (direction, upper / lower limits, engineering units etc.) And I would like to describe behaviour using this flow properties.  The goal is to design a driver (hardware / software connection) and this requires time / sequence depended behaviour.

18
General Board / Re: Map functions to signals
« on: October 20, 2016, 04:52:02 pm »
Haha thanks! Can you maybe tell me how to use flow properties in a sequence diagram? Or how to describe behaviour using flow properties.
Roy


19
General Board / Map functions to signals
« on: October 20, 2016, 12:09:33 am »
Hi,

For an industrial automation project I would like to design with which inputs and outputs soms functions are realised. For example the electrical designer designed that we communicate with an frequention inverter via analog signals 4-20mA and we use a digital signal to store the selected frequency. My functional design uses SetFrequency to describe this functionality and now I would like to use something like a sequence diagram to create a mapping.

What do you think is the best way to realize this? I allready experimenting with (SysML) flow properties to define the signals but I can't use this in sequence diagram.s

Roy

20
Automation Interface, Add-Ins and Tools / Re: Generate script name
« on: September 16, 2016, 05:36:12 pm »
Hi,

My idea was to automate the generation of the script name so I minimize the amount of administration. But no problem I'll understand that this feature doesn't exists.
Thanks for your reaction gents.

Roy

21
Automation Interface, Add-Ins and Tools / Generate script name
« on: September 15, 2016, 10:18:46 pm »
Hi,

We use JScript to write scripts that puts the content of the model into a word document. Now I would like to add the name of the script in the document so how can I access the name of the running script (and if possible the names of the included scripts).

Kind regards,
Roy

22
Geert,

Thanks again!

The classifier of the operation is 0 in my case. I think this has something to do with a copy / paste action. If there is a workaround I would like to know  8) I the meantime I'll focus by fixing the problem at the source.

Roy

23
Hi,

I have blocks with operations that use an enum as returntype and now I would like to write a query which gets values of the returned enum. For so far I have this:

Code: [Select]
SELECT opPar.*
FROM t_operation op, t_operationparams opPar
WHERE op.OperationID = 5929
AND opPar.OperationID = op.OperationID

Now the problem is that t_operationparams.Type contains the name of the enum and that I have multiple Enums with the same name (//not nice but for now out of scope). So how can I access the specific enum (by its Object_ID of guid)?

kind regards,
Roy

24
General Board / Re: Enums as array
« on: August 04, 2016, 03:59:22 pm »
Hi q,

Thanks again! I'll put it on my To Do list.

Roy

25
General Board / Re: Enums as array
« on: August 03, 2016, 09:19:20 pm »
Hi Qwerty,

thanks for your reaction! This simple solution will work for me but if possible I would like to see a connection between the attribute and enum as it would be when I use Select Type in stead of a textual relation, is this possible?

Roy

26
General Board / Enums as array
« on: August 03, 2016, 07:00:16 pm »
Hi,

Is it possible to use enums as multiplicity for attributes so I can create the following example:

_viewer_id[eDir] : int

(If not then) I would like to know how I can define multidimensional arrays in which I assume is possible within EA.

kind regards,
Roy van Marrewijk

27
I played arround with objects and variabled and solved the problem:

Code: [Select]
!INC Local Scripts.EAConstants-JScript
!INC IXAS Doc Lib.Log

function _addText()
{
this.app.ActiveSheet.Cells(1,1).Value = "Cheers";
}

function Document(document)
{
this.document = document;
this.app = this.document.application;

this.addText = _addText;

}

function _createXlsx()
{
var template = "Z:\\600 - Ontwerp\\610 en 710 - TTI\\DO TTI\\EA_template\\Excel.xltx"
var doc = this.app.Workbooks.Add(template);

var document = new Document(doc);

return document;

}

function _destroy()
{

}

function XlsxGenerator()
{
this.app = new ActiveXObject("Excel.Application");
this.app.visible = true;

this.createXlsx = _createXlsx;
this.destroy = _destroy;

}

function openXlsx()
{
var xlsxGenerator = new XlsxGenerator();
var xlsx = xlsxGenerator.createXlsx();

return xlsx;
}

function main()
{
//Clear log windows
Repository.ClearOutput("Script");
Repository.EnsureOutputVisible("Script");

var document = openXlsx();
document.addText();

log.info("Document generation completed. ");
}

main()


28
Hi,

I am busy writing a script that export content to an Excel file. This is what I got:

Code: [Select]
!INC Local Scripts.EAConstants-JScript
!INC IXAS Doc Lib.Log


/*Excel Application functions*****************************************************************/

function Excel()
{
//Attributes
this.app = new ActiveXObject("Excel.Application");

//Operations
this.destroy = _destroy;
}

function _destroy()
{
this.app.Quit();
}

/*Excel Sheet functions***********************************************************************/

function Sheet()
{
//Attributes
this.sheet = new ActiveXObject("Excel.Sheet");
this.sheet.Application.Visible = true;

//Operations
this.addText = _addText;
this.destroy = _destroy;
}

function _addText(column, row, text)
{
this.sheet.ActiveSheet.Cells(column, row).Value = text;
}

/*Main***********************************************************************/

function openExcel()
{
var excel = new Excel();
var sheet = new Sheet();

return sheet;
}

function main()
{
//Clear log windows
Repository.ClearOutput("Script");
Repository.EnsureOutputVisible("Script");

var sheet = openExcel();

sheet.addText(1,1, "Cheers");

log.info("Document generation completed. ");
}

main()


When I run this script it opens Excel and writes the text in the given cell but when the script finishes the script wil destroy the object en so the Excel application closes. Can some of you tell me how to keep Excel open after finishing the script? I would like to realize this without saving the document.

Kind regards,
Roy

29
General Board / Re: Use attributes in behavior description
« on: July 26, 2016, 04:11:11 pm »
Hi,

We write algorithms within operations and these operations are sharing attributes. So I would like to know which attributes are uses by the operations.

kind regards,
Roy


30
General Board / Use attributes in behavior description
« on: July 25, 2016, 10:56:09 pm »
Hi,

I expect this question on the forum already but I couldn't find it.
Is it possible to link attributes in the behavior field of an operation?

kind regards,
Roy

Pages: 1 [2] 3 4