# Nearest Forward Multiple Spikes

Nearest Forward Multiple Spikes move the motor forward to the closest multiple of Factor plus Offset. Put another way:

$$NewPosition=Round↑(CurrentMotorPosition/Factor)∗Factor+Offset$$

Nearest Forward Multiple Spikes use the `→` icon in the Spike List to indicate that they are a nearest forward multiple.

## Change The Type

<figure><img src="https://3040525219-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MhFI6SSKpm8M7EkrYqp%2Fuploads%2Fgit-blob-f077fcbf8e57ed5de2e9b21e6bde26ac122fdb3a%2Fnearest-fwd-edit-type.gif?alt=media" alt="Dynamic Spike Edit Nearest Forward Multiple Type"><figcaption></figcaption></figure>

To change the type of spike, select the spike in the Spike List and then select nearest forward multiple from the type dropdown menu.

## Changing The Factor

<figure><img src="https://3040525219-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MhFI6SSKpm8M7EkrYqp%2Fuploads%2Fgit-blob-3e7653c01645afe8a17a7ebddd00d655f167b4be%2Fnearest-fwd-edit-factor.gif?alt=media" alt="Dynamic Spike Edit Nearest Forward Multiple Factor"><figcaption></figcaption></figure>

To change the factor double-click in the Factor column and give it a new factor.

## Changing The Offset

<figure><img src="https://3040525219-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MhFI6SSKpm8M7EkrYqp%2Fuploads%2Fgit-blob-bbe5a3adc200b744a1fadc5f7fe81aae7295686c%2Fnearest-fwd-edit-offset.gif?alt=media" alt="Dynamic Spike Edit Nearest Forward Multiple Offset"><figcaption></figcaption></figure>

To change the offset double-click in the Offset column and give it a new offset.

## Example

<figure><img src="https://3040525219-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MhFI6SSKpm8M7EkrYqp%2Fuploads%2Fgit-blob-0f28a7f62ef58c140e871e5a62fa8b73a263e149%2Fnearest-fwd-spike-example.gif?alt=media" alt="Dynamic Spike Example Nearest Forward Multiple"><figcaption></figcaption></figure>

In this example we want to rotate the turntable forward to the 9 o'clock position (assuming upstage is 12 o'clock and downstage is 6 o'clock). For this we set our factor to 360 degrees (one full revolution) and our offset to 270 degrees (9 o'clock).
