Move (Move Values)

The Move instruction is used to move the values in a range of variables into different variables or fill a range of variables with a constant.

Syntax

Move ( Dest, DestReps, Source, SourceReps )

Remarks

Parameters

Dest (Destination)

The Variable in which to store the results of the instruction. Right-click the parameter to display a list of defined variables.

If this instruction has a Repetitions parameter and it is greater than 1, the results are stored in an array with the variable name. The array must be dimensioned large enough to hold all of the values returned from all of the Reps.

Type: Variable or Array

Reps (Repetitions)

The number of repetitions for the measurement or instruction.

Type: Constant integer (or expression that evaluates as a constant).

For the Move instruction, the DestReps parameter is the number of variables in which the variables being moved are stored.

Source

The name of the Variable that is the input for the instruction. Right-click the parameter to display a list of defined variables.

Type: Variable

For the Move instruction, the Source parameter is used to define the first variable from which variables will be moved. If a constant is entered here, that value is placed in each variable defined by the Dest and DestRep parameters.

Reps (Repetitions)

The number of repetitions for the measurement or instruction.

Type: Constant integer (or expression that evaluates as a constant).

For the Move instruction, the SourceReps parameter is the number of variables that should be moved into the Dest array. This parameter should be set equal to the DestReps parameter, or, as a special case, set to 1. If this parameter is set to 1, the same value is placed in each variable of the Dest array.