LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

serial bit to bit

is it possible to read the value of every single bit in a string read from
the serial port of a card?
0 Kudos
Message 1 of 5
(2,576 Views)
A string you read from the serial port is easily converted to an array of U8 (via a single vi).
In itself one element of this array (U8) can be converted into an array (length 😎 of booleans (also 1 vi). So yes it can.
0 Kudos
Message 2 of 5
(2,576 Views)
thanks
now it's all ok!
another problem: if i write 8 bit to serial port and then write this 8 bit
from serial port labview generate an error 1073676294 because the byte
transferred are equal to byte in input.
how can i read all that i write without errors.

david

"PdB_Serenity_nl" ha scritto nel messaggio
news:50650000000500000008660000-1012609683000@exchange.ni.com...
> A string you read from the serial port is easily converted to an array
> of U8 (via a single vi).
> In itself one element of this array (U8) can be converted into an
> array (length 😎 of booleans (also 1 vi). So yes it can.
0 Kudos
Message 3 of 5
(2,576 Views)
If you read in via the serial port it is always safe to first check the number of bytes in the in_buffer (if this is causing your problem) before reading in a fixed number of bytes. And check using a probe if you send the number of bytes to the comport you expect it to do. Hope this helps (dunno the error-code).
0 Kudos
Message 4 of 5
(2,576 Views)
This is not an error but a warning (the status is not set to True). It is safe to ignore.
0 Kudos
Message 5 of 5
(2,576 Views)