Quantcast
Channel: Motion Control and Motor Drives topics
Viewing all articles
Browse latest Browse all 1315

why does vi execute in HIGHLIGHT mode only? Does not RUN from front panel

$
0
0

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


Viewing all articles
Browse latest Browse all 1315

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>