LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

serial polling?

Hello Everybody,

i want to make a serial Communication with the standard PC Com Ports to
another device.
At the moment i programmed this with the labview vi's "Bytes at serial
port.vi", "Serial Port Read.vi" and so on.
But here it's the problem that i have to "poll" the port very fast, if i
want have the data immediately.
Can Labview handle this with interrupts or events?
And how should i programm this?


Thanks a lot

Robert
0 Kudos
Message 1 of 2
(2,578 Views)
Robert Hecker schrieb:

> Hello Everybody,
>
> i want to make a serial Communication with the standard PC Com Ports to
> another device.
> At the moment i programmed this with the labview vi's "Bytes at serial
> port.vi", "Serial Port Read.vi" and so on.
> But here it's the problem that i have to "poll" the port very fast, if i
> want have the data immediately.
> Can Labview handle this with interrupts or events?
> And how should i programm this?

-------------------------

Hi Robert,
there is a vi from Bloomy Controls, which polls the ser. port byte by byte
until the terminator(s) arrives or a timeout occours. This vi demonstrates
very well how this is done. At 9600 Baud for instance I send 10 and read 8
Bytes with 10 bit each (8N1). This takes min. 18.75ms. With a 13
3MHz Pentium
this is done in about 20ms incl. some kalkulations and the latency time of
the connected serial device.
I found the vi somewhere in the webring. If you can't find it there, mail me
again and I will mail it to you.
Here is the name of the vi and its descriptions:

Serial+Read+until+Terminator+or+Timeout.vi

This VI will read the bytes available at the serial port until the specified
number of terminators are read, or timeout. It is intended for use with
instruments that do not return a fixed number of bytes in response to a
command.

Bloomy Controls, Inc.
1999
---------------

Rainer Ehrt
0 Kudos
Message 2 of 2
(2,578 Views)