question

erik.g avatar image
0 Likes"
erik.g asked Adrian Haws commented

TrafficControl not resetting "numberactive"?

Hi all,

I have a traffic controlled area which should allow only one vessel at a time. screenshot 1 shows that the 'numberactive' variable is 1.00 when vessel_1 is inside the area. However, after it leaves the numberactive value is not set to 0 but remains 1.00 (screenshot 2).

This lead to the next vessel being 'blocked' (screenshot 3).

I built a small demo model containing only this setup connected to a source and sink. In that model I do not have this problem. Does anyone know why this would occur?

FlexSim 16.0.1
network nodestraffic control
scrnsht-1.png (26.5 KiB)
scrnsht-2.png (23.0 KiB)
scrnsht-3.png (26.4 KiB)
· 1
5 |100000

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

Phil BoBo avatar image Phil BoBo ♦♦ commented ·

You need to post a model that demonstrates the issue if you want anyone to be able to figure out why that is happening.

1 Like 1 ·

1 Answer

erik.g avatar image
2 Likes"
erik.g answered Adrian Haws commented

I found the cause of this problem, it was my own mistake.

As part of a tasksequence I let a finished vessel go back to the networknode at the start of the Access channel, then destroy itself (see screenshot 4). This meant it never actually left the area, so numberactive would still be 1.00 .

Should I delete this thread or leave it for future reference?


scrnsht-4.png (3.0 KiB)
· 1
5 |100000

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

Adrian Haws avatar image Adrian Haws commented ·

Thanks for the update, let's leave this in case it can be helpful for someone else.

0 Likes 0 ·