LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial Modbus delays

I have an application where I'm commuicating to several Modbus devices connected to a serial port. Everything works fine much of the time, but for some reason there are pauses in the transmitted data. This causes the  addressed Modbus device to ignore the message. Is there a method or setting that would prevent the delays in the middle of a message? I'm using the ComWrtByte command to send the data. I could buffer the message and use ComWrt if that would eliminate the delays.
0 Kudos
Message 1 of 2
(3,109 Views)

Hi, i think that sending all bytes of command with ComWr at once is much better than send byte to byte.

 this is because of multitasking.

{Simply:windows switch execution between running apllications every 1..16 or more milisceconds}

When data is transfered between application and driver(serial/usb)  at once, there is high chance(allmost 99.9999%)to be send without disruption.

but windows is Not a realtime Os, so it depends upon used drivers(Serial/USB), processor ussage, and maybe some unknown faktors.

 

 

 

//Sory for my English 🙂

 

0 Kudos
Message 2 of 2
(3,095 Views)