# Programming Windows timers

Status
Not open for further replies.

#### Bukitoo

##### Full Member level 2
Hi! I want to implement a Application that communicates with a embedded system over MODBUS protocol (over serial line). The specification says that (in RTU mode) the timout between characters mst be 3.5 times one character. That time, at somes boudrates, could be less than 1 ms. How can I make a timer with that resoultion use window OS? Is that possible ?

#### swgchlry

##### Member level 4
us the winos system high resulotion tick count,you can file help in msdn

#### chrisatwan

##### Newbie level 2
This is what I use when I am writting out in my VB modbus application:

MBrtu.Modbus.Output = SendMessage$PauseTime = 1 ' Set duration. Start = Timer ' Set start time. Do While (Timer < Start + PauseTime) And (MBrtu.Modbus.InBufferCount < 8) DoEvents Loop RecvMsg$ = MBrtu.Modbus.Input

Chris Atwan

#### scr_wld

##### Junior Member level 1
Hi!
look in this web lvr point com Jan Axelson have a project maybe can help.
if you use ascii no have problem with the time.

best regard

Status
Not open for further replies.