LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

write array to serial port

Hi. Too long I can’t solve my problem.  (Please see attached VI)
I need you help again.
I want send to serial port array of numbers (from 0 to 255 decimal). My VI do not want do it. In FOR loop I make my array, but it is don’t  write to port sequentially.
I did something wrong?
Thank you!

Message Edited by Mihalis on 07-28-2005 01:17 PM

0 Kudos
Message 1 of 3
(2,621 Views)

Hi,

Your while loop will only start after the for loop finishes, so you're not sending 0, 1, ..., 255. When your for loop ends (256 seconds) you will convert the array to a string with 256 bytes from ascii 0 to 255.

I changed your vi to send "0", then "1", ... , then "255". Hpe this is what you need.

Paulo

0 Kudos
Message 2 of 3
(2,611 Views)
Hi Paulo. Thank you! It is work.
 
Mikhail.
0 Kudos
Message 3 of 3
(2,607 Views)