Thanks a lot for trying to help me.
I am sure that I am not moving any subvi.
Steps that I am trying to accomplish:
(i) I am moving the stepper motors for a relative distance.
(ii) Then I am trying to get the motor position after delay (ms) [defined in front panel].
Now, how I am trying to accomplish:
First outer stacked sequence:
seq 0 of outer: This sets GPIB as controller in command (without this I was having trouble when I was combining this with photodiode code). Please avoid this seq.
seq 1 of outer: The motor moves to certain relative distance. (I do not think that there is anything wrong here).
seq 2 of sequence: This part does updates the motor coordinate after delay (ms). Inside this, there is a case structure to choose whether I want the update.
If I want the update, then following steps take place inside the case structure:
Inner stacked sequence:
seq 0 of inner: [This is where I think that error is taking place] Inside this, There is a while loop which terminates when the "Motion Done?"
function returns "1", else "0". Inside the flat sequence structure, first sequence "updates" the motor coordinate while second check
whether the motion is done .
Seq 1 of inner: Controller wait till motor stops.
seq 2 of inner: The motor coordnate is updated for the last time.
seq 3 of outer: It clears the GPIB.
Message Edited by Dushyant on 04-19-2005 10:22 PM