Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69621

Visa read isn't reading the correct results

$
0
0

I have a Vi that I am using to control a stepper motor. In this Vi I start by writing several initialization commands to the motor. This is followed by either a command to send the motor to a homing position or to step to a certain angle. While the motor is moving I am using a while loop to check if the motor is in motion or not. I do this by writing a Movement command that responds a 0 or 1 accordingly. Now when I use a visa read to read the response of the movement, the visa read reads the initialization commands that I am sending at the beginning of the program. This will sometimes get fixed when I use the show highlight button on the Vi. Is this a timing problem I am having, or is there any type of way I can clear the buffer. I am not too sure how to go about this

In advance thanks for the help, it is greatly appreciated


Viewing all articles
Browse latest Browse all 69621

Latest Images

Trending Articles



Latest Images

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