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

Sending Byte Array to Serial Port

$
0
0

Hi, 

  I find myself running into a slight porblem. I have an array of bytes which are in hexadecimal and i need to be able to write them to the serial port so that a stepper motor can be controlled. I have accumulated the array of bytes and converted them into a string using the 'byte array to string' vi, but for some reason i find myself unable to communicate with the stepper motor. I have successfully communicated with the stepper motor using RealTerm by sending hex commands, but it still won't work in LV. Once the array was converted into a string i then "unconverted" it back to an array of bytes just to make sure that the correct string was getting to the write buffer, and it seems to be just fine. I have included an image and the vi. Any input would be greatly appreciated. 

   David


Viewing all articles
Browse latest Browse all 69019

Trending Articles



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