Plotting spring displacement

Hello Everybody,

So heres the deal, in order to understand how the spring function works I ve created a basic 2 block linear spring assembly and attached and ocsillating linear motor at one end. When I tried to plot the displacement of the spring, the plot showed zero displacement.

Am I plotting wrong? How do I get the actual displacement of the spring?

SolidworksMotion Studies