Chapter 8 AutoCode Sim Cdelay SchedulerAutoCode Reference 8-16 ni.comAt the template level, the default Sim with Cdelay ATR triggered taskbehavior of re-queueing a task for execution on receipt of a new triggerbefore the outputs have been posted can be turned off by replacingthe segment call Sim_style_ATR_Idle by a call toNoRetrigger_style_ATR_Idle. To turn off the Sim with Cdelayglobal timeline enable policy, replacing it with the default syncimmediate on enable policy, you must replace the calls to the segmentsSim_style_Enable_Idle and Sim_style_Enable_Blocked withcalls to the segments Fast_style_Enable_Idle andFast_style_Enable_Blocked, respectively.Figure 8-9. Alternative (Old Enable Policy) STD for an Enabled TaskShortcomings of the Sim Cdelay SchedulerWhat the pipeline re-configuration did in the new scheduler was topurchase low latency at the price of scheduler overhead. However, thesolution is not complete; given a chain of ANC tasks—that is, the output ofan ANT triggered block is the trigger of another ANT triggered block—thenew scheduler would not fire off all elements of the chain in a single cycleas an ideal scheduler would. Instead, it would only catch the first elementof the chain; each additional element would suffer a cycle of schedulerlatency. To solve this problem, it would suffice to enclose the queue taskand the second post outputs stage of the new scheduler in a relaxation loopIDLE RUNNINGBLOCKEDtaskdoneTimer is zero andenable, reset timerand post outputsTimer has reachedzero, signal overflowEnable,reset timerTimer is greaterthan zero,decrement itTimer is zero and!enable, postoutputs