LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

loop timing with Real-TIme Communication Wizard - repost

I have found that the programs generated by the RTCW don't work if the timing of my TCL is too slow relative to the timing of the TCP read/write loop generated by the RTCW.  The TCL looks for a boolean to trigger a case structure -- I've attached a simplified version of the program.  I originally saw this with a PXI target and recreated it with a PC target with the following results:
 
TCP read/write loop timing (ms) / TCL timing (ms) -- results
100 / 200 -- sometimes misses the boolean
100 / 100 -- always works (never misses the boolean)
100 / 50 -- always works
50 / 100 -- always works
50 / 150 -- sometimes misses the boolean
 
With the original program where there was more going on -- the first combination (100/200) never saw the boolean so it never worked until I shifted the timing to 100/100.
 
I'm looking for some insight into why the TCL sometimes misses seeing the boolean so I can make sure future programs work as expected.
 
I am using version 7.1.
 
Thanks.
0 Kudos
Message 1 of 1
(2,130 Views)