ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA delay

Solved!
Go to solution

Hi, 

I'm sending data to a st mc and the mc sends back the exact same message and are comunicating using visa read/write and uart. The data stream is continuous and im using a special character to measure the round trip time. Im expecting some delay but the total delay between sending and and receiving is usually more than 4sec. Is there a way to reduce this time? The mc is just receiving and sending back. 

labview -> mc seems to be instantaneous (VISA Write -> Uart_receive), the slow is prob in the mc -> labview (Uart_transmit -> VISA read). 

The baudrate, com port are the same, visa write expects one byte, everything in a 1ms while loop, no termination character 

0 Kudos
Message 1 of 5
(328 Views)

Hello SUIP,

 

what does "st" and "mc" mean?

 

4 seconds delay seems very long. Have you tried "Serial Write and Read on Two Ports.vi" from the Find Examples- dialog in the Help- menu?

Greets, Dave
0 Kudos
Message 2 of 5
(318 Views)

Sorry I didn't specify, I'm using a stmicroelectronics microcontroller, I'll check using the vi you mentioned

0 Kudos
Message 3 of 5
(306 Views)

Share your code. We have nothing to go by until you do. But my gut feeling is that you are not properly using a termination character as the 4 seconds sounds like a timeout.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 5
(261 Views)
Solution
Accepted by SUIP

Most serial communication issues can be solved by watching this video: VIWeek 2020/Proper way to communicate over serial

========================
=== Engineer Ambiguously ===
========================
Message 5 of 5
(242 Views)