If you want to send numeric bytes [U8] to the serial port, use the "Byte
Array to String function" prior to writing the data. This does not change
the actual value of data, but only the way LabVIEW process it.
As for the parity bit, when you initialyze the serial port, you can set the
parity to even parity; this will generate an error if the receiver expects
odd parity. You can also force the parity bit to mark or space ( 0 or 1 I do
not remember which is which).
I am not sure for the use of Serial Break.vi but I think it sets the
TRANSMIT line for the required delay. This should generate frame errors or a
bunch of 0xFF at the receiver's end.
Hope this helps.
Jean-Pierre
__________________
Jean-Pierre Drolet, Ph. D.
Scientech R&D inc.
Trois-Rivi�res-Ouest (Qu�bec)
Canada
a �crit dans le message :
7sc0vd$8jh$1@nnrp1.deja.com...
> I am trying to simulate a serial data source with
> LabView and a SeaLevel ISO-COMM-3415 (RS-422)
> board.
>
> The serial data source transmits at 9600 baud and
> transmits three CHARACTERS defined as below:
>
> - 1 Start Bit (0)
> - 8 INSTRUMENT DATA bits (defined below)
> - 1 Parity Bit (odd)
> - 1 Stop bit (1)
>
> The format of the INSTRUMENT DATA bits
>
> Bit 1 = data (LSB)
> Bit 2 = data
> Bit 3 = data
> Bit 4 = data
> Bit 5 = data
> Bit 6 = data
> Bit 7 = data (MSB)
> Bit 2 = sync bit (1 if first CHARACTER, 0 if
> second or third CHARACTER)
>
> I would like to generate the entire message myself
> (so I can insert my own data, inject parity
> errors, sync errors, etc.)
>
> None of the Serial I/O VIs provided in LabView 5.1
> provide this flexibility. All I seem to be able to
> do is send ASCII characters out. What do I have to
> do to be able to control each and every bit coming
> from my LabView VI through my SeaLevel card to my
> Unit Under Test?
>
> Thanks for any help
> Eric Clark
> Microprocessor Engineer
> Bechtel Plant Machinery
> eclark@albany.net
>
>
> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.