I need to design a task with a target for 12-15 conditions each of which affects how the trial would proceed after target presentation. I plan to use different images as target color and using Dexterit-E 3.5 with MATLAB 2013a to design the task. With the current version, the maximum possible states for a target is 5, however I need to have more states per target. Is there a way to increase the number of states or would I need to create separate targets for each such condition?
There are a few options to have that many states for a single target.
- In each TP row you could have 3-4 target ID’s referenced. In Stateflow you would need to determine which target and state to set. So TARGET_2 state 1 would be the 6th target state, TARGET_3 state 1 would be the 11th target state.
- It’s also possible to take the output from a show target block and send it to embedded MATLAB. In the embedded MATLAB you would need any extra state information required to edit the VCODE. The output of the function would be an updated VCode that could be in one of 15 states. The format of VCodes has remained pretty static, so even the newest task programming guide’s section of VCode formats applies to Dexterit-E 3.5 (at least for simple shapes).
- The final option is that you could unlink the existing show target block and edit it to have 15 states. Taking the existing blocks and mask code and extending them from 5 to 15 inputs may be the cleanest overall solution.
Let me know if I can provide any further detail.