diff --git a/motorApp/AerotechSrc/EnsembleTrajectoryScan.st b/motorApp/AerotechSrc/EnsembleTrajectoryScan.st index cfdbb831..2a1a0016 100644 --- a/motorApp/AerotechSrc/EnsembleTrajectoryScan.st +++ b/motorApp/AerotechSrc/EnsembleTrajectoryScan.st @@ -1249,7 +1249,7 @@ static int loadTrajectory(SS_ID ssId, struct UserVar *pVar) { sprintf(stringOut, "pfbkcal(@%d)", j); status = writeRead(ssId, pVar, stringOut, reply); posfbkcal = atof(&reply[1]); - motorPosOffset[j] = posfbkprog - posfbkcal; + pVar->motorPosOffset[j] = posfbkprog - posfbkcal; } #if PSO_DISTANCE_ARRAY