Why are some blocks "not executed"?
I have noticed that when I right click on some block output pins I see "not executed". They only execute after attaching a display or plot block to the output. Why is that?
I have noticed that when I right click on some block output pins I see "not executed". They only execute after attaching a display or plot block to the output. Why is that?
This is an optimization feature.
In some sense, it boils down to the philosophical question: "If a tree falls in the forest, and no one is there to hear it, does it make a sound?". VisSim chooses to answer this question "no". This is a VisSim feature to optimize performance. If the block has no output, (a "signal consumer") it is always executed. If a block has one or more output pins, and none of them are used or ultimately connected to a signal consumer, then VisSim does not include the block in the execution set.
Some examples of signal consumers are: display, plot, histogram, PWM output, OPC write, CAN bus write, UDP packet write , export to file.