LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sending bits via RS232

Is it possible to send bits via the RS232 port using v6.1?
0 Kudos
Message 1 of 3
(3,067 Views)
Depends on what exactly you're trying to do. Serial (UART) comminucation involves a start bit, followed by a word (5-8, sometimes 9 bits long), followed by parity (if enabled), followed by a stop bit. This happens for every word of data transmitted. Thus the shortest sequence would be 7 bits long (start, 5 data bits, stop). The concept of sending a single bit simply does not exist.

However, the modem lines (DTR and RTS) can be toggled such that a simple waveform can be created - though the timing is not gaurenteed.

All of the above is true for UART communication in general as well as NI-VISA under LabVIEW.
0 Kudos
Message 2 of 3
(3,067 Views)
Chris Rake wrote in message
news:506500000005000000EA7A0000-1021771306000@exchange.ni.com...
> Depends on what exactly you're trying to do. Serial (UART)
> comminucation involves a start bit, followed by a word (5-8, sometimes
> 9 bits long), followed by parity (if enabled), followed by a stop bit.
> This happens for every word of data transmitted. Thus the shortest
> sequence would be 7 bits long (start, 5 data bits, stop). The concept
> of sending a single bit simply does not exist.

It can exist if you are using sync RS232, as there are no start/stop bits,
we talk to radars and other kit using some very strange protocols (13
&17 bit words and other horrible things).

However you cannot do sync RS232 via std PC com port.

You would need to use something like an Emulex or Microgate WAN card
(they are both just jazzy RS232 cards) or a NI DIO-32HS with level shifters.

NI used to do a serial protocol analyser card which you could use for this
sort of thing, chat to you local NI rep about it.

All depends what you want to use it for, we do a lot of sync RS232 stuff,
give me a mail if you have any questions.

Paul

Dr Paul Rocca - Managing Director
Brill Engineering Ltd, 3 Longwood Court,
Love Lane, Cirencester, Gloucestershire
GL7 1YG. www.brill-eng.co.uk
Phone: 01285 883888 Fax: 01285 883876

NI Alliance Member Since 1992

Please note that calls may be recorded using our leading edge digital
recording product AudioPC.

Any opinions expressed in the email are those of the individual and not
necessarily of the Company. This email and any files transmitted with it are
confidential and solely for the use of the intended recipient. It may
contain material protected by lawyer-client privilege. If you are not the
intended recipient or the person responsible for delivering to the intended
recipient, be advised that you have received this email in error and that
any use is strictly prohibited. If you have received this email in error ple

ase notify the Security Manager by telephone on +44 (0)1285 883821 or by
email to security@brill-eng.co.uk.
0 Kudos
Message 3 of 3
(3,067 Views)