LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial Comunication_Array

Hello everyone

I want to receive 3000 bytes from Serial port and put each byte into an element of an array. Until now I have made the serial communication and can receive data. but I don't know how to separate bytes and put them into the array. Please help me... How can I do this?

(I am apprentice in LabView). regards

0 Kudos
Message 1 of 5
(2,306 Views)
Just use the String to Byte Array function.
0 Kudos
Message 2 of 5
(2,304 Views)

tnx for reply

I used the function that you mentioned.

It was usful but the function returns the input into ASCII code. how can I change it into number? 

I want to return a triple digit number (a number between 0 to 256) into number.

Regards

0 Kudos
Message 3 of 5
(2,290 Views)

The function returns an array of U8 numbers (0..255), exactly what you seem to want.

 

(ASCII is a way to interpret these numbers as printable and non-printable characters, and has nothing to do with any of this).

 

If you are still confused, please attach a small VI containing a typical string as a diagram constant. The tell us what numbers you expect.

0 Kudos
Message 4 of 5
(2,288 Views)

tnx for your contribution. it was useful. my problem  solved.

0 Kudos
Message 5 of 5
(2,242 Views)