This is extraordinarily puzzling to me...
The attached vi sends a serial command to a motor controller. Command has the form /1V5500P0R, where the /1 means "motor 1", 5500 is the velocity, and the P0 means "rotate positive direction" and R means RUN (do the command).
When I run the VI from the front panel, the motor does not respond. The correct command string appears in the String indicator box, but, the motor does not turn on. HOWEVER, when I use either HIGHLIGHT EXECUTION, or I SINGLE STEP through the block diagram, the vi works perfectly. It issues the correct command the motor runs properly after stepping over VISA WRITE to VISA CLOSE... The VI accepts any velocity command I want to put in the NUMERIC control on the front panel.
I tried putting the code into a WHILE loop to see if that made any difference...and it does not.
What is happening?
Thanks,
Dave