I am running a simulation in simulink and I have a 'to workspace' block that feeds of of a vector signal and is supposed to output an array. I have used this feature in this same model before and havent had any problems. However in this current model the workspace variable only has one row (or one time stamp worth) of values, as if the 'to workspace' block is overwriting the same row over and over. I know the values are changing in the simulation as seen in scopes that are reading the same signal. Does anybody have any ideas on how I can pinpoint this problem?
Attached is the Simulink File and an m file which initialized the variables. It uses some hardware from Quanser so a lot will have to be muted for it to run without.