Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all articles
Browse latest Browse all 5565

VISA read and write controls become unresponsive after there are no more lines to read

$
0
0

Hello all,

 

I am trying to develop continuous serial communication between an Arduino Uno microcontroller and LabView. The issue I am having is the controls for "Write" and even "Stop" become unresponsive after all the intial read lines are read in. I pretty sure this is because the read line prevents the full completetion of the while loop, suspending the entire loop until it reads something else in. I've tried a number of boolean operations and I can't seem to work around the issue. The code itself needs a way to detect there is no longer anything to read and skip the read statement and continue looping until the user enables the write command and writes something. Then the read command would would have more to read and again wait for user input.

 

Any suggestions and help would be great! Thanks!

 

*Note I have been using labview for all of 2 weeks. I'm getting used to it but I'm not a pro for sure.

 

Also I would like to give credit to physicslight @ https://physicslight.wordpress.com/2014/07/14/arduino-labview-serial-write-read/ for supplying an arduino auto detect sub vi for easy initializing of the VISA commands

 

 


Viewing all articles
Browse latest Browse all 5565

Trending Articles



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