From: support@mathworks.com [mailto:support@mathworks.com] Sent: Fri 1/13/2006 1:36 PM To: Daniel Ludvig, Mr Subject: RE: xPC Target: model runs in simulink but not xPC Daniel, I am writing in reference to your Service Request # 1-25M5WS regarding 'xPC Target: model runs in simulink but not xPC'. This is a problem with the optimizer in the Open Watcom compiler. The optimizer can be turned of by changing the Make command line in the Real-Time Workshop page of the model configuration parameters. Change: make_rtw into: make_rtw OPT_OPTS= The default optimization of -oaxt is preventing this code from running properly. This model works fine with the optimizer turned off. Building with optimization turned off triggers the compile of a bunch of other files, such as those in the signal processing library even though this model doesn't use them. They'll get compiled once, then not again unless the object files are deleted. This is expected and not a problem. The other problem with the linker warnings is just the linker complaining about multiple identical declarations for those functions. These are just warnings, the functions would work perfectly if the model called them. If you need further assistance regarding this issue, please reply to this email preserving the THREAD ID listed below. If you have a new technical support question, please submit a new request here: http://www.mathworks.com/contact_TS.html. Sincerely, Jeffrey Miller Application Support Engineer Technical Support Department The MathWorks, Inc. Phone: (508) 647-7000 option 5 Self-Service: http://www.mathworks.com/support File Exchange and Newsgroup Access: http://www.mathworks.com/matlabcentral/ [THREAD ID:1-25M3P8] -----Original Message----- Sent: 2006-01-11 03:29:45 PM Product Release: R14SP3 Products used: xPC Target Platform: Windows Operating System: Windows XP myTopic: xPC Target: model runs in simulink but not xPC pass XPCTEST: yes XPCLIB: 2.8 getxpcenv: PC Target default environment Version : 2.8 CCompiler : Watcom CompilerPath : c:\watcom Name : TargetPC1 TargetRAMSizeMB : Auto MaxModelSize : 16MB SecondaryIDE : off HostTargetComm : TcpIp RS232HostPort : COM1 RS232Baudrate : 115200 TcpIpTargetAddress : 132.206.111.69 TcpIpTargetPort : 22222 TcpIpSubNetMask : 255.255.255.0 TcpIpGateway : 132.206.111.1 TcpIpTargetDriver : I82559 TcpIpTargetBusType : PCI TcpIpTargetISAMemPort : 0x300 TcpIpTargetISAIRQ : 5 TargetScope : Enabled TargetMouse : None xPC Target Embedded Option EmbeddedOption : Enabled TargetBoot : BootFloppy getxpcpci: List of installed PCI devices: Bus Slot IRQ Vendor Name Device Name Device Type VendorID DeviceID 0 0 0 ***** ***** Host Bridge 1106 3099 0 1 0 ***** ***** PCI-to-PCI Bridge 1106 B099 0 5 10 ***** ***** Audio Controller 13F6 111 0 12 5 ***** ***** Ethernet Controller 8086 1229 0 13 255 ComputerBoards PCIM-DDA06/16 AO DI DO 1307 53 0 16 5 ComputerBoards PCIM-DAS1602/16 AI AO DI DO 1307 56 0 17 0 ***** ***** ISA Bridge 1106 3147 1 0 11 ***** ***** VGA comp. Controller 1002 5046 hardware info: hardware info: mobo: Asus A7V266-C Proccesor: AMD 1900 1.6 GHz Ram : 256 MB DDR SDRam NIC: Intel Pro/100 Video: ATI Expert 2000 Pro 4x AGP bus type: PCI host target: TCP/IP Reproduction steps: Build attached model Whats wrong: Output should switch from 0 to 1 after 1 second, however it remains at zero at all times. Error Messages: Warning messages appear during compilation. See attached text file (screen_dump.txt) ver: ------------------------------------------------------------------------------------- MATLAB Version 7.1.0.246 (R14) Service Pack 3 MATLAB License Number: 196315 Operating System: Microsoft Windows XP Version 5.1 (Build 2600: Service Pack 2) Java VM Version: Java 1.5.0 with Sun Microsystems Inc. Java HotSpot(TM) Client VM mixed mode ------------------------------------------------------------------------------------- MATLAB Version 7.1 (R14SP3) Simulink Version 6.3 (R14SP3) Control System Toolbox Version 6.2.1 (R14SP3) Data Acquisition Toolbox Version 2.7 (R14SP3) Instrument Control Toolbox Version 2.3 (R14SP3) Real-Time Windows Target Version 2.6 (R14SP3) Real-Time Workshop Version 6.3 (R14SP3) Signal Processing Blockset Version 6.2 (R14SP3) Signal Processing Toolbox Version 6.4 (R14SP3) Statistics Toolbox Version 5.1 (R14SP3) System Identification Toolbox Version 6.1.2 (R14SP3) xPC Target Version 2.8 (R14SP3) File1: /tmp/equus13358/testmodel.mdl File2: /tmp/equus13358/screen_dump.txt File3: Solutions already tried: Form Page URL: /support/contact_us/ts/help_request_2.html?respFormData=2412