Home Examples Show Time Remaining in a Task
Coding Tips

Show Time Remaining in a Task

If your task runs for a known (or calculable) amount of time, then it is possible to display the amount of time remaining in Dexterit-E (Figure: 10.19). The Show time remaining option in the DataLogging block creates an input on that block called seconds_remaining. Whatever value is passed into this input is displayed in Dexterit-E as the time remaining. Therefore, to behave correctly the new input must be passed the number of seconds remaining in your task (i.e. this value is not calculated automatically).

  1. Check Show time remaining in the DataLogging

Figure 10.35: Enabling the Display of Time Remaining in the Task

  1. Connect a signal that contains the number of seconds left in the task to this Show time remaining

Whatever values is fed into this input will be displayed to the operator as part of the Task Status in the Dexterit-E UI.

Related Tasks

Coding Tips
Persistent Variables
Persistent variables are ones that hold their value between calls to the embedded MATLAB code they are defined in.
Coding Tips
Custom Control of the Trial Protocol Order
Normally, Dexterit-E manages and controls the order in which Trial Protocols (TPs) execute based on what is defined in the block table of the Task Protocol (see the Dexterit-E User Guide for more details).