Technical Solutions
Why does the second run of my xPC Target simulation return wrong tg.outputlog values?
Date Last Modified: 06 Nov 2007
| Solution ID: | 1-18DTB | |
| Product: | xPC Target | |
| Reported in Release: | R12 | |
| Platform: | All Platforms | |
| Operating System: | All OS |
Subject:
Why does the second run of my xPC Target simulation return wrong tg.outputlog values?
Problem Description:
Why does the second run of my xPC Target simulation return wrong tg.outputlog values?
All models return wrong values the second time a model is built or simulated in real time. Here are my host computer specifications on which xPC Target version 1.1.3 (R12.1) runs:
- Operating System is Windows 2000
- Dell laptop with a Pentium 3
- PCMCIA ethernet card.
The target computer specifcations are as follows:
- VersaLogic SBC6
- 256 MB of RAM
This setup worked fine with xPC Target version 1.0 and Matlab 5.3.1 (R11.1).
The error happens on multiple targets and multiple hosts. Therefore, I do not think the target is the issue since rebooting it has no effect. Only the MATLAB command CLEAR ALL seems to work. If I the run the simulation again after executing a CLEAR ALL it works fine. But again, the second time the mode is run, tg.outputlog has all wrong values. Below is what "xpctest" shows:
>> clear all
>> xpctest
### xPC Target Test Suite 1.1
### Host-Target interface is: TCP/IP (Ethernet)
### Test 1, Ping target system using standard ping: ... OK
### Test 2, Ping target system using xpctargetping: ... OK
### Test 3, Reboot target using direct call: .... OK
### Test 4, Build and download xPC Target application using model xpcosc: ... OK
### Test 5, Check host-target communication for commands: ... OK
### Test 6, Download xPC Target application using OOP: ... OK
### Test 7, Execute xPC Target application for 0.2s: ... OK
### Test 8, Upload logged data and compare it with simulation: ... OK
### Test Suite successfully finished
>> xpctest
### xPC Target Test Suite 1.1
### Host-Target interface is: TCP/IP (Ethernet)
### Test 1, Ping target system using standard ping: ... OK
...
...
### Test 8, Upload logged data and compare it with simulation: ... FAILED
Test #8 always fails on the second run. Is there a better solution to this problem other than using the MATLAB command CLEAR ALL?
Solution:
The problem seems to be with the following dll's that communicate between the target and host on Windows 95, 98, and ME: |
|
|
Store