How can I make Interrupt Function-call Signal in Concurrent Execution on Multi-Core Targets

1 view (last 30 days)
I have some questions about a concurrent execution on multicore cpu.
I would like to have a following program. Sub Program 1 is measuring data from Sensor at every 40 Hz If sensor signal is greater than some threshold value, then it will send triggering signal and sensor data to sub program 2.
When the Sub Program 2 receives triggering signal from the Sub program 1, then it executes some algorithm using the sensor data.
Because execution of the algorithm takes longer than 150 msec (>40Hz), I would like to use core 1 for the sub program 1 running with 40 Hz not being interrupted by the algorithm, and core 2 for the Sub Program 2, and the algorithm is only executed when the Sub Program 1 sends triggering signal to the Sub Program 2.
I have looked at MATLAB's concurrent example (sldemo_concurrent_execution.slx), but I still do not know how I can make asynchronous event driven subprogram 2. According to the link http://www.mathworks.com/help/simulink/ug/setting-configuration-values-explicitly.html, aperiodic trigger source can be Event (Windows), but I do not know how I can generate that event in my sub program 1. Eventually, I will build my simulink file using Generic real-time target.

Answers (0)

Categories

Find more on Multicore Processor Targets in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!