question

Alejandro M16 avatar image
0 Likes"
Alejandro M16 asked Alejandro M16 commented

Source blocks my exits.

1624408860634.pngHello,

Source3 is blocking the outputs of the products.

How can I resolve this error?

Thanks for the support.

Model:https://drive.google.com/drive/folders/12J8Xh_WtpbpEbF5t1PAfw60K1ZzUtVHu?usp=sharing

Spanish:

Hola,

El source 3 esta bloqueando las salidas de los productos.

¿Cómo puedo resolver este error?

Gracias por el soporte.

Modelo:https://drive.google.com/drive/folders/12J8Xh_WtpbpEbF5t1PAfw60K1ZzUtVHu?usp=sharing

FlexSim 21.1.1
simulationarrival logicsorce
1624408860634.png (505.0 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.

Julio R avatar image
1 Like"
Julio R answered Alejandro M16 commented

Hola Alejandro,

Revisé el modelo y tu output donde seleccionabas el puerto de salida by case hacía referencia a una etiqueta que no tenías, así que lo cambié a Type2 que si existía.

De todas formas el source parece que estaba mal, no sé por qué, pero cuando cree otro nuevo y copié todas las variables, incluido el trigger on exit, este parece funcionar. Te mando un link al modelo corregido.

Avísame si si funciona como quieres o si eliminé algo sin darme cuenta.

https://flexsimmx-my.sharepoint.com/:u:/g/personal/juliorosell_flexsim_com_mx/EU4kyt-mX-RKhtOD0wliEcEB9iLjzCzCE48tRVKcq_GvtA?e=bDqXcU


· 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.

Alejandro M16 avatar image Alejandro M16 commented ·

Gracias por el soporte.

Fue de gran ayuda.

Agrego otra solución que encontré por la mañana:

En la columna ItemName el primer carácter debe ser de tipo texto.

1624467624339.png

0 Likes 0 ·
1624467624339.png (444.9 KiB)
Eric M avatar image
1 Like"
Eric M answered Alejandro M16 commented

It looks like the ItemName column (first one, column 2) was assigned number data when it's supposed to be string data. If you run this script, it should change all the values back to string data and fix the issue.

treenode schedule = getvarnode(Model.find("Source3"), "schedule");
int length = schedule.subnodes.length;
string ItemName = "";
int type = 0;


for (int i = 1; i <= length; i++){
    type = schedule.subnodes[i].subnodes[2].dataType;
    if (type != 2){
        ItemName = string.fromNum(schedule.subnodes[i].subnodes[2].value);
        schedule.subnodes[i].subnodes[2].value = ItemName;
    }
}

Also, the Type2 column needs to be called dataType2 or you need to change your send to port logic to reference item.Type2 instead of item.dataType2.

· 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.

Alejandro M16 avatar image Alejandro M16 commented ·

T




Thanks for the support. It was very helpful.

I add another solution that I found in the morning:

In the ItemName column the first character must be of type text.1624467897284.png

0 Likes 0 ·
1624467897284.png (445.7 KiB)