Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Help with matlab simulink+stateflow

Status
Not open for further replies.

Voronezh

Newbie level 1
Joined
Dec 23, 2010
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,284
At the computing center at 300 ± 100 jobs coming with a length of 500 ± 200 bytes.
The speed of input, output and processing tasks 100 bytes / min. Assignments are sequentially input, processing
and output buffering before each operation. Following the withdrawal of 5% of jobs are executed correctly due to errors and returned to the input. To expedite the processing of jobs in the queue are
in ascending order of their length, ie short message service in the first place. Assignments made
incorrectly, return to the input and in all the queues are serviced first.
Simulate the work of the data center within 30 hours to determine the necessary buffer size and the distribution function of service time jobs.
how to implement it in Matlab Simulink?
I have a code in GPSS:
Code:
input equ 1
obr equ 2
output equ 3
tdl equ 4
tpr equ 5
tvr equ 9
och1 equ 6
och2 equ 7
och3 equ 8
tdl fvariable (RN$1/999)*400+300
tvr fvariable P$1*30/100
tpr fvariable (700-P$1)/400*127
simulate
generate 300,100
assign 1,v$tdl
assign 2,v$tvr
priority v$tpr
M1 queue och1
seize input
advance P$2
release input
depart och1
M2 queue och2
seize obr
advance P$2
release obr
depart och2
M3 queue och3
seize output
advance P$2
release output
depart och3
priority 127
transfer .95,M1,OUT
OUT terminate
generate 108000
terminate 1
start 1
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top