Image acquisition in external mode

1 回表示 (過去 30 日間)
Hristo Alexiev
Hristo Alexiev 2011 年 2 月 16 日
Hi. I develope my diplom project about visual servoing for quadrotor helicopter. The idea is to control this quadrotor in real time.The rest of the model is ready and it is working good wiht Quanser I/O board. All of my algorithm was ready when I unfortunately understand that I can't compile neither with QuaRC nor with Realt-Time Workshop. I want to compile only my part of model in Simulink with Real-Time Workshop but I can't. I'm using Win7 Ultimate, Matlab 7.11, Microsoft Visual 2008 Pro, MS Visual 2010, and I'm installing rtwintgt -install for real-time windows targer. I want to get it work in external mode. I want to try only one small part where I use From Video Device block and then Video Viewer block. I'm setting up Language to "C" and Target function library:C89/C90(ANSI). When I start the building process and arrive to the middle of the process I receive this error:
### Compiling untitled1.c
C:/PROGRA~1/MATLAB/R2010b/toolbox/rtw/targets/rtwin/openwat/binnt/wcc386 -wcd=202 -wcd=302 -wcd=400 -q -ei -zp8 -6r -fpi87 -fp6 -zri -zl -wx -oneatxh -DEXT_MODE -DUSE_RTMODEL -DMODEL=untitled1 -DRT -DNUMST=1 -DTID01EQ=0 -DNCSTATES=0 -DMT=0 -D__OBSCURE_STREAM_INTERNALS -fo="untitled1.obj" "untitled1.c"
C:/PROGRA~1/MATLAB/R2010b/toolbox/shared/dspblks/extern/include\HostLib_rtw.h(13): Error! E1055: Unable to open 'windows.h'
C:/PROGRA~1/MATLAB/R2010b/toolbox/shared/dspblks/extern/include\HostLib_rtw.h(48): Error! E1022: Missing or misspelled data type near 'HMODULE'
C:/PROGRA~1/MATLAB/R2010b/toolbox/shared/dspblks/extern/include\HostLib_rtw.h(54): Error! E1022: Missing or misspelled data type near 'FARPROC'
C:/PROGRA~1/MATLAB/R2010b/toolbox/shared/dspblks/extern/include\HostLib_rtw.h(55): Error! E1022: Missing or misspelled data type near 'FARPROC'
C:/PROGRA~1/MATLAB/R2010b/toolbox/shared/dspblks/extern/include\HostLib_rtw.h(56): Error! E1022: Missing or misspelled data type near 'FARPROC'
C:/PROGRA~1/MATLAB/R2010b/toolbox/shared/dspblks/extern/include\HostLib_rtw.h(57): Error! E1022: Missing or misspelled data type near 'FARPROC'
C:/PROGRA~1/MATLAB/R2010b/toolbox/shared/dspblks/extern/include\HostLib_rtw.h(58): Error! E1022: Missing or misspelled data type near 'FARPROC'
C:/PROGRA~1/MATLAB/R2010b/toolbox/shared/dspblks/extern/include\HostLib_rtw.h(59): Error! E1022: Missing or misspelled data type near 'FARPROC'
C:/PROGRA~1/MATLAB/R2010b/toolbox/shared/dspblks/extern/include\HostLib_rtw.h(60): Error! E1022: Missing or misspelled data type near 'FARPROC'
gmake: *** [untitled1.obj] Error 8
### Real-Time Workshop build procedure for model: 'untitled1' aborted due to an error.
>>
I'm using all sets by default. Can somebody help me please.
Best regards
Hristo Alexiev

採用された回答

Kaustubha Govind
Kaustubha Govind 2012 年 4 月 10 日
It looks like the block used host-based (Windows) libraries, that are not supported on any other embedded targets. This solution also states that the block is not supported for deploying onto embedded targets.

その他の回答 (2 件)

Mohammad
Mohammad 2012 年 4 月 7 日
Hi I have the same problem with using "From Video Device" block in external mode. I am also using quarc to run my robot in external mode. did you find any solution for that?
Regards Mohammad

Mohammad
Mohammad 2012 年 4 月 11 日
1-Is there any other video acquisition blocks that works in external mode.
2-Since this block can work in normal mode, do you have any idea how to send data from a model running in normal mode to another model running in external mode. thanks
  1 件のコメント
Kaustubha Govind
Kaustubha Govind 2012 年 4 月 17 日
1) It depends on which hardware you are on running on in external mode. It looks like there are some target specific video capture blocks that ships with xPC Target and Embedded Coder.
2) I think you might be able to perform the video acquisition using MATLAB/C and feed that as an input signal in external mode, but I'm not 100% sure if it's possible or how it could be done.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeCode Generation for ARM Cortex-M and ARM Cortex-A Processors についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by