LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I need an VI for a very special RS232-communication (own timing)

I need an VI for a very special RS232-communication (own timing)

I will answer to 4 received bytes
Then I will send 5 bytes
The answer-time is above 1ms
I must send the 5 bytes by oneself because I need a inter-byte time above 1-2ms
I will send the bit with 9600bits/s

So my question, have anyone a VI so I can adjust my own timing on the COM-port?
The NI-VIs for COM-communication are not fast enough.
0 Kudos
Message 1 of 3
(2,485 Views)
This special organization of communications is not all that uncommon. Maybe if you write 2 routines.
1 Wait for and read one byte.
2 write one byte
Then you can organize these into loops or sequence structures with delays between them as appropriate.
The speed with which the bits are sent is a feature of the UART; LabVIEW just supplies a byte to write or reads a byte out of the buffer after it has been received by the UART.
Good Luck
Yours Sincerely
John www.tradersmicro.com
0 Kudos
Message 2 of 3
(2,477 Views)
HI John and AP_...,

Doing a "syncronous" VISA write (I believe, sorry I get these confused) will not return until the data is in the serial buffer.

Combine that with the timed loop and that is about as far as Windows will let you go.

After that RT!

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 3 of 3
(2,444 Views)