Tom,
After looking over the code for a bit, I noticed that there
are several ActiveX methods that get called every time the while loop iterates,
regardless of the functionality needed.
The
following commands are sent every time the while loop iterates:
TDX
PF 7
ST
SH
The other commands are not called every time the loop
iterates because of the case structures.
They are called only when needed.
ActiveX is by nature slow.
You
are communicating between programs and then communicating from one program to
an external device.
Conceivably, all
four of those commands could have to execute after the button is pressed to
move the motor and before the movement code begins.
Try manipulating your code so that ActiveX
methods are called at a minimum.
Also, for curiosity’s sake, what is your setup here?
I haven’t encountered someone doing motion
control in LabVIEW through ActiveX before.
What hardware are you talking to?
What are you communicating with through
ActiveX?
Thanks,
Luke H