Main Content

ssSetAsyncTaskPriorities

sets the Simulink task priority

Syntax

ssSetAsyncTaskPriorities(SimStruct *S, int numISRs, int *priorityArray)

Arguments

S

SimStruct that represents an S-Function block.

numISRs

Number of interrupts specified in the VME interrupt number(s) parameter

priorityArray

Integer array containing the interrupt numbers specified in the VME interrupt number(s) parameter.

Returns

None

Description

ssSetAsyncTaskPriorities sets Simulink® the task priority for blocks executing at each interrupt level, as specified in the block's Simulink task priority field.

Examples

/* Setup Async Task Priorities */
    priorityArray = malloc(numISRs*sizeof(int_T));
    for (i=0; i<numISRs; i++) {
        priorityArray[i] = (int_T)(mxGetPr(ISR_PRIORITIES)[i]);
    }
    ssSetAsyncTaskPriorities(S, numISRs, priorityArray); 
    free(priorityArray);
    priorityArray = NULL;
}

Languages

C, C++

Version History

Introduced before R2006a