LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Convert a string to an array of character

This is the vi i am using to send bytes. Am using one byte in here entered by the user. But my actual vi consist of number of bytes, depending upon case structure programmed according to users input panel.That is why i needed to extract each characters of a string and send its ascii value serially. 

Is this how its done or are there any better methods?

 

 

Regards

sarkar

0 Kudos
Message 21 of 23
(550 Views)

I'm not sure what some of the logic surrounding the serial write is for, but the code you have for the serial IO should work fine as is. The decimal to string routine will return a string with as many as 3 digits (8bits = a max value of 255 = 3 digits) the serial write will write all of them for you without any further intervention. In fact, that function will write a string of any length.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 22 of 23
(542 Views)

Yes its working. Thanks for your reply 🙂

0 Kudos
Message 23 of 23
(533 Views)