Image acquisition in external mode

3 Ansichten (letzte 30 Tage)
Hristo Alexiev
Hristo Alexiev am 16 Feb. 2011
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

Akzeptierte Antwort

Kaustubha Govind
Kaustubha Govind am 10 Apr. 2012
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.

Weitere Antworten (2)

Mohammad
Mohammad am 7 Apr. 2012
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 am 11 Apr. 2012
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 Kommentar
Kaustubha Govind
Kaustubha Govind am 17 Apr. 2012
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.

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

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

Start Hunting!

Translated by