LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Timed loop structure settings

Hi. I had use "timed loop structure" when I comunicate whith device via ModbusTCP protocol. I need maintaining original frequency of poll the device. Then i have one of two "mode" settings of timed loop structure:
1. Process missed periods, maintain original phase;
2. Discard missed periods, maintain original phase.
But, second variant is slower. Why is it? In this case it can drop frames and saving time!
In my case first variant is 6 ms long, second - 13 ms.

0 Kudos
Message 1 of 3
(2,284 Views)

Hi Forest,

 

why do you need a TWL for Modbus communication?

Why enforce strict timing for a communication bus with high timing jitter???

 

What about state machines here?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(2,238 Views)

@0Forest0 wrote:

Hi. I had use "timed loop structure" when I comunicate whith device via ModbusTCP protocol. I need maintaining original frequency of poll the device. Then i have one of two "mode" settings of timed loop structure:
1. Process missed periods, maintain original phase;
2. Discard missed periods, maintain original phase.
But, second variant is slower. Why is it? In this case it can drop frames and saving time!
In my case first variant is 6 ms long, second - 13 ms.


1) will process all iterations, 2) will potentially dismiss iterations. So 2) will have less iterations, so less throughput.

 

If first iteration takes 7 ms (period of 6 ms), the second period is missed. 1) will execute the second period anyway, 2) will wait for the next multiple, that will be 5 ms later.

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