Prev: cmd line function for Edit->Find Files...
Next: reading scientific notation numbers from string
From: Kate J. on 29 Jul 2010 12:15 I had previously had my xPC Target Host-Target system set up properly and working. Then, my Host PC died and I had to replace it with a new Host. I'm in the process of trying to get my new Host-Target setup working again. I'm able to connect to the Target PC from the Host (via the xPC Explorer gui), and the following diagnostics are ok: >> xpctargetping --> success >> !ping (target IP address) --> success >> tg=xpctarget.xpc --> Connected = Yes, Application = loader However, when I run the "xpctest" utility, it *always* fails at Test 4 (Build and download xPC Target application using model xpcosc). There is no error message provided upon this failure; it just says "... FAILED" When this Test 4 is initiated, the xpcosc Simulink model appears for ~30 seconds, until the test fails, at which point the model disappears, the failure message appears, and the Target PC becomes disconnected from the Host (as evidenced by the xPC Explorer display). I have looked at the xPC Target user's manual and startup guide, and talked with Mathworks support and hardware support at my workplace. So far, I haven't encountered an effective solution to this Test 4 failure problem. I have manually rebooted the Target PC as the startup manual suggests, for Test 4 failure; this "reset" hasn't corrected the problem. Mathworks insists that this is a network card issue, and that the network card isn't configured properly. I made sure that my card is set to half-duplex mode (10 Mbps), as recommended. Furthermore, given that the Host and Target are clearly connected and communicating, I'm not sure why only Test 4 would fail. I'm thinking that maybe during Test 4, xPC Target is searching for certain files it needs, and maybe isn't locating them? But if it can locate the xpcosc model, would it have problems finding any other necessary files? I appreciate input from anyone who has experienced this problem or who can suggest a possible solution. Thanks in advance.
From: Kate J. on 29 Jul 2010 13:29 Update: Looking at the Mathworks page for required compilers for the version I'm using, http://www.mathworks.com/support/compilers/release2007b/ I recalled that there is a special footnote that concerns the compiler I'm using, Microsoft Visual Studio C++ 2005 Express Edition: "Microsoft Visual C++ 2005 Express Edition requires the Microsoft Platform SDK for Windows Server 2003, and requires the MSSdk variable to be defined in the Windows environment when used with MATLAB and related products. The value of this environment variable is the path to the installation directory of the SDK. This environment variable is not usually defined by the Microsoft Platform SDK installation program." I was reminded that I completed the procedures above on my *old* Host, but had omitted doing this on my new one. When I finish doing this, I'll post again to report whether this solved my problem with Test 4 failing.
From: Kate J. on 29 Jul 2010 14:31 Update: Fortunately, once I performed the 2 actions required in my last post, the entire "xpctest" suite now completes successfully (i.e., all 8 tests are OK).
|
Pages: 1 Prev: cmd line function for Edit->Find Files... Next: reading scientific notation numbers from string |