Is there any way to 'display' the values we get in a For loop into a console continuously to monitor the value changes? There are some examples about this but most likely are not related with loops.
For example, I can use the console to monitor the value changes of the fromPos and toPos which get from the other functions.
void Position()
for (int iPos=0; iPos<100; iPos++)
{
double fromPos = PositionLoop.GetPosition1(iPos);
double toPos = PositionLoop.GetPosition2(iPos);
if (fromPos == toPos)
{
//do stuff
}
}