question

KHAIRUL MUAZ avatar image
0 Likes"
KHAIRUL MUAZ asked Jeanette F commented

Send To Port Code

  1. Hi, in the attached model, I have implemented code in the send to port function on all the processors. It was supposed to find the row of steps to follow based on the items PRODUCTID labels and REPAIRSCOPE labels. It doesn't show any errors;, however, when I run the simulation it pops an error that there is no such combination in the table but the items PRODUCTID and REPAIRSCOPE combination was there in the table.
  2. SV3_29.08.2024.fsm

screenshot-2024-08-29-115828.png

here is the code that was used in all the processor (the similar code for all the processor was from line 14 to line 40)

FlexSim 19.1.2
code snippet
· 4
5 |100000

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

Joerg Vogel avatar image Joerg Vogel commented ·
@KHAIRUL MUAZ, there are some characters in command references that have a functional outcome like i, a, c, ..

So if you use one of them, then there might happen something unexpected.

return i; // might be such a case
0 Likes 0 ·
KHAIRUL MUAZ avatar image KHAIRUL MUAZ Joerg Vogel commented ·

The only code that I changed was from line 14 to line 40. The return i; code works without any problems. Before this, it would only need to match the PRODUCTID from the table; however, I have added a new label, REPAIRSCOPE, which is implemented at the source trigger. So it now needs to match the product ID and repair scope before following the steps.

0 Likes 0 ·
Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @KHAIRUL MUAZ,

Were you able to solve your problem? If so, please add and accept an answer to let others know the solution. Or please respond to the previous comment so that we can continue to help you.

If we don't hear back in the next 3 business days, we'll assume you were able to solve your problem and we'll close this case in our tracker. You can always comment back at any time to reopen your question, or you can contact your local FlexSim distributor for phone or email help.

0 Likes 0 ·
Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @KHAIRUL MUAZ,

Please be aware that your FlexSim version is past its supported lifecycle and is no longer eligible for paid technical support. For more information, please see the article "Software Support Lifecycle".

Community members here may still be able to offer advice, but features have been added and bugs fixed in the time since your software version was released. You may find that an offered solution that works in more recent versions of the software is not compatible with your old version, or that a posted sample must be opened in a recent version.

Contact your local FlexSim distributor for information on upgrading or getting a trial license.

Good luck!

0 Likes 0 ·

0 Answers