I have created a model containing an xPC Target Scope block with 'Scope mode' is set to 'Numerical', and 'Numerical format' set to '%15.6f,%15.6f ThisIsALongFormatString,%15.6f'. After building the model and downloading it to the target, I run the real-time application. The application crashes and I receive the following segmentation violation:
------------------------------------------------------------------------ Segmentation violation detected at Fri May 13 13:59:12 2005 ------------------------------------------------------------------------ Configuration:MATLAB Version: 7.0.4.365 (R14) Service Pack 2MATLAB License: unknownOperating System: Microsoft Windows 2000Window System: Version 5.0 (Build 2195: Service Pack 4)Processor ID: x86 Family 15 Model 1 Stepping 2, GenuineIntelVirtual Machine: Java 1.5.0 with Sun Microsystems Inc. Java HotSpot(TM) Client VM (mixed mode)Default Charset: ibm-5348_P100-1997 Register State:EAX = 303d7367 EBX = 00000000ECX = 00cd7e58 EDX = 00000005ESI = 00000000 EDI = 00000001EBP = 00cd82b4 ESP = 00cd7ee8EIP = 20373534 FLG = 00010202 Stack Trace:[0] 0x20373534(1, 0x00cd89e0, 0, 0)[1] libmex.dll:_mexRunMexFile(1, 0x00cd89e0, 2, 0x00cd8a40) + 103 bytes[2] libmex.dll:public: virtual void __thiscall Mfh_mex::dispatch_file(int,struct mxArray_tag * *,int,struct mxArray_tag * *)(1, 0x00cd89e0, 2, 0x00cd8a40) + 157 bytes[3] m_dispatcher.dll:public: virtual void __thiscall Mfh_file::dispatch_fh(int,struct mxArray_tag * *,int,struct mxArray_tag * *)(1, 0x00cd89e0, 2, 0x00cd8a40) + 271 bytes[4] m_interpreter.dll:int __cdecl mdDispatch(int,char const *,int,struct mxArray_tag * *,int,struct mxArray_tag * *,class Mfh_MATLAB_fn * *)(685, 0x11ac27f4 "xpcgate", 1, 0x00cd89e0) + 88 bytes[5] m_interpreter.dll:_inDispatchFromStack(685, 0x11ac27f4 "xpcgate", 1, 0x01fffffe) + 801 bytes <snip>
Best Answer