From: Abdullah on
Hi,
I am unable to integrate MSC visualNastran with matlab version 7.9. It was working for me in the old version 7.0.

Now when ever I try to start the visualNastran simulink model in this new version, it says invalid mex file, vNParaDlg is not a valid Win32 application.

Do I have to write a new MEX file for that?
If yes then please help me with it because I don't have any idea of MEX files, and I am a beginner.

Please help. . .
From: James Tursa on
"Abdullah " <abdullahumer(a)yahoo.com> wrote in message <hi006g$gbe$1(a)fred.mathworks.com>...
> Hi,
> I am unable to integrate MSC visualNastran with matlab version 7.9. It was working for me in the old version 7.0.
>
> Now when ever I try to start the visualNastran simulink model in this new version, it says invalid mex file, vNParaDlg is not a valid Win32 application.
>
> Do I have to write a new MEX file for that?
> If yes then please help me with it because I don't have any idea of MEX files, and I am a beginner.
>
> Please help. . .

Generally, mex files are not guaranteed to be compatible from one MATLAB version to another. So the only solution is to use the old MATLAB version or regenerate the mex routine. To regenerate the mex routine, you need the source code. Do you have the source code for the mex routine?

James Tursa
From: Abdullah on
"James Tursa" <aclassyguy_with_a_k_not_a_c(a)hotmail.com> wrote in message <hi0b0v$31v$1(a)fred.mathworks.com>...
> "Abdullah " <abdullahumer(a)yahoo.com> wrote in message <hi006g$gbe$1(a)fred.mathworks.com>...
> > Hi,
> > I am unable to integrate MSC visualNastran with matlab version 7.9. It was working for me in the old version 7.0.
> >
> > Now when ever I try to start the visualNastran simulink model in this new version, it says invalid mex file, vNParaDlg is not a valid Win32 application.
> >
> > Do I have to write a new MEX file for that?
> > If yes then please help me with it because I don't have any idea of MEX files, and I am a beginner.
> >
> > Please help. . .
>
> Generally, mex files are not guaranteed to be compatible from one MATLAB version to another. So the only solution is to use the old MATLAB version or regenerate the mex routine. To regenerate the mex routine, you need the source code. Do you have the source code for the mex routine?
>
> James Tursa


I don't have the source code. :-(
From: James Tursa on
"Abdullah " <abdullahumer(a)yahoo.com> wrote in message <hi2lo1$u8$1(a)fred.mathworks.com>...
> "James Tursa" <aclassyguy_with_a_k_not_a_c(a)hotmail.com> wrote in message <hi0b0v$31v$1(a)fred.mathworks.com>...
> > "Abdullah " <abdullahumer(a)yahoo.com> wrote in message <hi006g$gbe$1(a)fred.mathworks.com>...
> > > Hi,
> > > I am unable to integrate MSC visualNastran with matlab version 7.9. It was working for me in the old version 7.0.
> > >
> > > Now when ever I try to start the visualNastran simulink model in this new version, it says invalid mex file, vNParaDlg is not a valid Win32 application.
> > >
> > > Do I have to write a new MEX file for that?
> > > If yes then please help me with it because I don't have any idea of MEX files, and I am a beginner.
> > >
> > > Please help. . .
> >
> > Generally, mex files are not guaranteed to be compatible from one MATLAB version to another. So the only solution is to use the old MATLAB version or regenerate the mex routine. To regenerate the mex routine, you need the source code. Do you have the source code for the mex routine?
> >
> > James Tursa
>
>
> I don't have the source code. :-(

Then you will not be able to use that mex routine with the newer MATLAB version. Sorry.

James Tursa