In order to pop a datastructure out, Queue block requires an integer value at the pop input. the following error is generated when a datastructure is given to pop input,
"VisualSim.kernel.util.IllegalActionException:
Invalid Data Structure
Error_Number : Smart_Resource_04
Possible_Solution : Check incoming data structure
Description : Incoming DS Field to Smart_Resource (1) not found: {
BLOCK = "Traffic",
DELTA = 0.0,
DS_NAME = "Header_Only",
ID = 1,
INDEX = 0,
TIME = 0.0}
in .Queue_DS_To_Pop_Input.Queues
at VisualSim.actor.lib.Smart_Resource.fire(Unknown Source)
at VisualSim.simulators.de.kernel.DEDirector.fireVisualSim(Unknown Source)
at VisualSim.simulators.de.kernel.DEDirector.fire(Unknown Source)
at VisualSim.actor.CompositeActor.fire(Unknown Source)
at VisualSim.actor.Manager.iterate(Unknown Source)
at VisualSim.actor.Manager.execute(Unknown Source)
at VisualSim.actor.Manager.run(Unknown Source)
at java.lang.Thread.run(Thread.java:745)
at VisualSim.kernel.util.VisualSimThread.run(Unknown Source) "
Solution: Make sure that the Queue block receives integer value at the pop input.