[etherlab-users] rtB not defined in RTW application

Julian Stoev julian.stoev at gmail.com
Thu May 28 10:56:47 CEST 2009


Hello,

I try to make a very simple RTW application to test my new Etherlab setup.

I have these slaves:
0  0:0  PREOP  +  EK1100 EtherCAT-Koppler (2A E-Bus)
1  0:1  PREOP  +  EL4132 2Ch. Ana. Ausgang +/-10V, 16bit
2  0:2  PREOP  +  EL5101 1K. Inc. Encoder 5V

My application is writing a constant values to EL4132 and the idea is
to measure the voltage signal with a multimeter.

I compile my rtw program on my real-time machine like this:
make -f t1.mk MATLAB_ROOT=/opt/matlab_rtw
RTAI_DIR=/opt/etherlab/rtai-3.6.2 ETHERLAB_DIR=/opt/etherlab

I get this error:
  CC     rtw_wrapper.o
  CC     rtw_app_info.o
/opt/etherlab/rtw/src/rtw_app_info.c:67: error: ‘rtB’ undeclared here
(not in a function)
make: *** [rtw_app_info.o] Error 1

I had a look at the sources and apparently rtB is never defined.
Such a variable is used only in ./rtw/src/ files, but rt_app.h defines
void *app_rtB
Am I doind something wrong here?

Thanks in advance!

-- 
Julian Stoev, PhD.
Control Researcher



More information about the Etherlab-users mailing list