question

Jyhjeng D2 avatar image
0 Likes"
Jyhjeng D2 asked Jyhjeng D2 commented

Global Table for Inter-arrival time and process time

Dear Sir:

I use global table, table1, to specify inter-arrival time and process time of a single queue system.

problem-2.jpg

The inter-arrival time (in s) is :

2,1,1,2,2,1,5,4,3,1

The service time (in s) is:

6,1,1,4,3,5,1,1,4,7

Note that the first customer comes in at time zero. So, the timing for the customers to come to the queue is

0,2,3,4,6,8,9,14,18,21,22

I wish to run the system in 15 s to see how the number of customers in the queue goes.

However, when I run the program, it displays:

time: 0.000000 exception: FlexScript exception: Label property labelName retrieved on /Source1. Label does not exist. at MODEL:/Source1>variables/interarrivaltime

problem-1.jpg

Can anyone tell me what is wrong with my program?

The program is in

simple_queue01.fsm

Regards,

Jyhjeng Deng

FlexSim 22.0.1
global table for inter-arrival time and process time
problem-2.jpg (27.3 KiB)
problem-1.jpg (219.8 KiB)
simple-queue01.fsm (31.9 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

·
Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jyhjeng D2 commented

Just transform your inter-arrival times to actual times and use the scheduled source.

The error message tells you what's wrong - the field you used in the Inter-Arrival Time expression refers to a labels that don't exist on your source.

· 8
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Jyhjeng D2 avatar image Jyhjeng D2 commented ·

Dear Jason:

Your suggestion does not work. I change the inter-arrival time to table 1 and arranged it in the actual times for the event to occur. And change the process time in the service desk to table 2. But the error still appears as follows.

time: 0.000000 exception: FlexScript exception: Label property labelName retrieved on /Source1. Label does not exist. at MODEL:/Source1>variables/interarrivaltime

My new program is below.

simple_queue02.fsm

0 Likes 0 ·
simple-queue02.fsm (34.9 KiB)
Jason Lightfoot avatar image Jason Lightfoot ♦ Jyhjeng D2 commented ·

This is my suggestion, working.

simple-queue01_jl.fsm

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦ Jyhjeng D2 commented ·

Here's your original model made to work by added a label to the source called row to track which row is being created and setting that as Type on the item so that the processor knows what row to read.

I advise you go through all the tutorials to try and understand the fundamentals of FlexSim.

simple-queue01_.fsm

0 Likes 0 ·
simple-queue01.fsm (31.0 KiB)
Jyhjeng D2 avatar image Jyhjeng D2 Jason Lightfoot ♦ commented ·

Your program works in version 22.2

However, when I try to implement in version 22.0.1, it did not work!

I have changed three spots.

  1. In the source, I change the inter-arrival as global table, table 1, as

source01.jpg2. In the source, I changed the triggers as

trigger01.jpg

trigger02.jpg3. In the process, I change the process time as global table, table 1, as

process.jpg

When I run the program, the error occurs as follows.

time: 0.000000 exception: FlexScript exception: Label property row retrieved on /Source1. Label does not exist. at MODEL:/Source1>variables/creationtrigger

I looked at many times, I don’t think miss anything between this lower version model with yours. Could you see why?

Here is the lower version.

simple_queue01A.fsm

0 Likes 0 ·
source01.jpg (18.5 KiB)
trigger01.jpg (16.0 KiB)
trigger02.jpg (15.3 KiB)
process.jpg (17.2 KiB)
simple-queue01a.fsm (32.1 KiB)
Jason Lightfoot avatar image Jason Lightfoot ♦ Jyhjeng D2 commented ·
You haven't added a label on the source for 'row' - it needs to be reset to 1.
0 Likes 0 ·
Jyhjeng D2 avatar image Jyhjeng D2 Jason Lightfoot ♦ commented ·
It works now. Thank you for your patience. By the way, concerning the label of objects in my example, could you suggest some useful video links for me to dig in?


0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦ Jyhjeng D2 commented ·
Here are Key Concepts About Labels


I recommend doing all the tutorials.


0 Likes 0 ·
Jyhjeng D2 avatar image Jyhjeng D2 Jason Lightfoot ♦ commented ·
Thank you.
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.