Creating Stepping for Displacement From Grasshopper


I am working on a bridge model where i have been applying a point load and then using the teddy code i have attached below i have been increasing the load by a factor each time.

I recently realized i can apply a displacement instead of a load in the grasshopper module and I tried using the same code for the factor to increase the displacement but it does not work. Can it be done? or do I have to manually input the load cases and displacements?

Thank you