Store a videoinput in a Data Store Memory block in Simulink
이전 댓글 표시
Hello,
I'm trying to store a videoinput in a DataStoreMemory, so I can access it out of a Embedded MATLAB Function (fcn) block. I set the type to an expression (videoinput). But I got an error:
Error evaluating parameter 'OutDataTypeStr' in 'DataStoreImage/VideoInputDataStore': ADAPTORNAME and DEVICEID must be specified.
Can you help me? If I missed necessary information, please tell me.
Thanks Timo
채택된 답변
추가 답변 (3개)
Shankar Subramanian
2011년 4월 22일
1 개 추천
Hi Timo,
Writing your own MATLAB function (using videoinput and getdata) and bringing into SIMULINK will not necessarily help you with the rate. You should actually run the script suggested here to calculate the frame rate in MATLAB.
The From Video Device block does not add any performance overhead and performs at par with the rate achievable within MATLAB using the hardware.
Thanks
Shankar
Timo
2011년 4월 15일
0 개 추천
댓글 수: 1
Kaustubha Govind
2011년 4월 20일
Are you using the MATLAB Fcn block? You could try using persistent variables.
카테고리
도움말 센터 및 File Exchange에서 Image Acquisition in Simulink에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!