The build process will terminate as a result.
----------------------------------------------------------
and on the target PC,which reads:
----------------------------------------------------------
System:download started...
System:download finished
unable to load DLL dependency:KERNEL32.dll.GetModuleHandlew
error:127
Could not load model:corrupted file
----------------------------------------------------------
my software environment is:
host PC: vista home basic+matlab R2008a+VC2008
AND I'VE CHECKED THAT THE FILE:KERNEL32 IS NOT MISSING.
Did anybody meet this problem before, how can i solve it?
AA
"zhang jie" <vivo...@gmail.com> wrote in message <gcq059$sr2$1...@fred.mathworks.com>...
Are you using Visual Studio C++ 2008 Express Edition SP1? I am
getting the same problems when I try using that compiler with R2007b
Are you using Visual Studio C++ 2008 Express Edition SP1? I am getting the same problems when I try using that compiler with R2007b
yes, don't know why, now i am using Vs 6, on windows xp, it works well. i think there are some compatible problems between windows vista, matlab and vs2008.
http://www.mathworks.com/support/compilers/current_release/
You'll see that the express version of Visual 2008 is not yet
supported for xPC Target. As you've seen, there are some problems
with how files are linked that are different than when you use
the full professional version of the compiler. R2008b comes close
to working with this compiler, but it won't work on R2007b or
R2008a where you've tried it.
If you download the Express Visual 2005 compiler, that will work.
Gordon Weast
xPC Target Development
The MathWorks
I got exactly the same problem mentioned in this thread.
I'm using this compiler:
Microsoft Visual C++ 2010 Express in R2010b.
and the result of XPCTEST is as follows:
xpctest
### xPC Target v4.4 Test Suite
### Host-Target interface is: TCP/IP (Ethernet)
### Test 1, Ping target PC 'TargetPC1' using system ping: ... OK
### Test 2, Ping target PC 'TargetPC1' using xpctargetping: ... OK
### Test 3, Software reboot the target PC 'TargetPC1': ..... OK
### Test 4, Build and download an xPC Target application using model xpcosc to target PC 'TargetPC1': ... OK
### Test 5, Check host-target command communications with 'TargetPC1': ... FAILED
I've actually used the xPC target for 2 days and have loaded and ran applications on it without any problem. However, this error comes out in a sudden when I tried to load one of the models and since then I could no longer load any other models anymore, even those I did before.
Any solutions for this? Thanks.
Gordon Weast <gwe...@mathworks.com> wrote in message <gh3kp3$pmr$1...@fred.mathworks.com>...
Using Visual 2010 with R2010b is a problem. The compiler calls some
support routines that we don't have support for. That support is
planned for R2011a. I'm very surprised that you got it to work at all.
On the Microsoft download page where you got 2010 express, there is an
alternate tab where you can pick up 2008 express. Please use that.
Gordon Weast
xPC Target Development
MathWorks
I too got exactly the same problem mentioned in this thread.
I'm using this compiler:
Microsoft Visual C++ 2010 Express in R2010b.
and the result of XPCTEST is as follows:
xpctest
### xPC Target v4.4 Test Suite
### Host-Target interface is: TCP/IP (Ethernet)
### Test 1, Ping target PC 'TargetPC1' using system ping: ... OK
### Test 2, Ping target PC 'TargetPC1' using xpctargetping: ... OK
### Test 3, Software reboot the target PC 'TargetPC1': ..... OK
### Test 4, Build and download an xPC Target application using model xpcosc to target PC 'TargetPC1': ... OK
### Test 5, Check host-target command communications with 'TargetPC1': ... FAILED
and in the target PC,which reads:
>
> ----------------------------------------------------------
> System:download started...
> System:download finished
> unable to load DLL dependency:KERNEL32.dll.GetModuleHandlew
> error:127
> Could not load model:corrupted file
> ----------------------------------------------------------
>
> > Did anybody help me in this.....
-------ram
I tried with 2008 express but the error is still there.
In the host:
### Test 5, Check host-target command communications with target PC 'TargetPC1': ... FAILED
and in the Target:
Unable to load DLL dependency: KERNELL32.dll. DecodePoi...
error: 127
Could not load model; Corrupted file
What else can I try now????
I just restarted matlab, did the tests and everything was fine....:
### xPC Target v4.4 Test Suite
### Host-Target interface is: RS-232 on COM1
### Test 1, Ping target PC 'TargetPC1' using system ping: ... SKIPPED
### Test 2, Ping target PC 'TargetPC1' using xpctargetping: ... OK
### Test 3, Software reboot the target PC 'TargetPC1': .. OK
### Test 4, Build and download an xPC Target application using model xpcosc to target pc 'TargetPC1': ... OK
### Test 5, Check host-target command communications with target PC 'TargetPC1': ... OK
### Test 6, Download a pre-built xPC Target application to target PC 'TargetPC1': ... OK
### Test 7, Execute the xPC Target application for 0.2s: ... OK
### Test 8, Upload logged data and compare with simulation results: ... OK
### Test Suite successfully finished
Thanks!
Shao-Fu Shih
"Guillermo " <guille...@hotmail.com> wrote in message <il39mc$jq3$1...@fred.mathworks.com>...
If you're using the professional version of VC 8.0, that file should be
in the c:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK directory.
If you're using the express version, I think you might be missing the
SDK install.
Make sure the environment variables are set for your compiler. The
installation should set the VS80COMNTOOLS variable when you installed VC8.
If none of these help, then you should contact MathWorks tech support
and we'll look into it deeper.
Gordon Weast
xPC Target Development
MathWorks
It seems like the SDK only supports the standard version or above, is there any other way to get around it?
Shao-Fu Shih
Gordon Weast <gwe...@mathworks.com> wrote in message <iui1om$t2v$1...@newscl01ah.mathworks.com>...
Shao-Fu Shih.
"Shao" wrote in message <iukn2i$eel$1...@newscl01ah.mathworks.com>...