ADC Sampling with Embedded Coder -- TI C2000 F28035
2 次查看(过去 30 天)
显示 更早的评论
Hello all,
We are working with Simulink's to capture 'n' samples from the ADC within a predefined window of time and store these values in an n-by-1 vector. We want to use this vector as input to a series embedded MATLAB functions for processing. Unfortunately we are having trouble finding a way to tell the function to "wait" until the vector is filled before running.
We are looking into the Memory Allocation and Memory Copy blocks for our processor to perform this task but are currently fighting with the following error "subsystem cannot be defined to be a periodic function-call block because it has an asynchronous rate."
Is this the best way to go about this or is there another way that one of you could suggest? If so is anyone familiar with this error and know of a way to clear it up. We have been fighting with it for several hours and have proved no match.
Additionally, once the problem of delivering complete time windows (n-by-1 vectors) to the embedded functions is solved we are hoping to find a way to ensure that all of required algorithms are complete prior to delivering another window of data, to avoid "traffic jams" if you will.
We have been scratching our head with this all day so any suggestions would be greatly appreciated.
Thanks again,
Adam
2 个评论
Nirmal Gunaseelan
2012-7-31
Seems like a duplicate to http://www.mathworks.com/matlabcentral/answers/44906-where-to-find-concurrent-execution-window-main-pane
Walter Roberson
2012-7-31
Not really a duplicate. Here are particular problem is described, there a particular tool is asked about inspired by the problem.
回答(1 个)
Nirmal Gunaseelan
2012-7-31
It appears that the function-call subsystem is defined to be periodic. You could change that to 'triggered' instead of 'periodic' in the f() block inside the function call subsystem. The error is because you cannot drive a periodic function-call subsystem using an async trigger.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!