LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Subroutine severe#29 ?

Hello everyone ,
As you have probably seen in my last post , I m trying to use a Fortran DLL in my labview program , but my problem now is that it gives me a "severe error #29 "" it cannot find a bunch of .dll file , thing that i do not really understand.
The way I use my input in the Fortran programm is :

double precision function Spectre(isi,name1,name2,FE,nbll)
! Expose subroutine Spectre to users of this DLL
!
!DEC$ ATTRIBUTES DLLEXPORT::Spectre

I Anyone have an idea about the cause of this error , it would be great.
thanks

klaks
0 Kudos
Message 1 of 5
(2,944 Views)
Hi klaks,

I won't lie, I've never used Fortran before, but here's what I could dig up on Google.

severe (29): File not found
"A file with the specified name could not be found during an open operation."

The only seemingly helpful information that I could find on how to "fix" severe (29) is in the following document:
http://softwareforums.intel.com/ids/board/message?board.id=15&message.id=213&jump=true

Hope this helps,
Travis H.
LabVIEW R&D
National Instruments
0 Kudos
Message 2 of 5
(2,911 Views)
It can find the dll's just fine (If you built an application for another machine, make sure to include dforrt.dll, but your current fortran box cetainly has it).

It cannot find the file specified with the string inputs "name1" and/or "name2". If I enter an nonexistent file name in these controls, I get severe error 29 file not found 'current folder'\"name1".

If I enter an existing file of zero size as "name1" I get Error 30, open failure unit 200 with the specified file name.

Are you sure you are specifying existing, valid file names via the "fichier ..." controls? You could have LabVIEW verify the existence of these files before calling the DLL.

Check your Fortran code where you open unit 200.
0 Kudos
Message 3 of 5
(2,906 Views)
thanks,
yes your right that' s what I found too ,
I just not used to the way errors are given in Fortran.
The file could not be found .
My Labview input doesn't get to the fortran program in Fact , even thought I'm trying to pass it through the node.
My declarations look fine tough...?
Fortran:
double precision function Spectre(isi,name1,name2,FE,nbll)

!DEC$ ATTRIBUTES DLLEXPORT::Spectre

and the node in Labview the function protoype is :

void SPECTRE(double *isi, CStr name1, CStr name2, double *FE, double *nbll);

Fortran just cannot get the input , so I get errors like this .

thanks guys for your help,

klaks
0 Kudos
Message 4 of 5
(2,898 Views)
thanks Travis ,
Since my input doesn t get to the Fortran program , it returns an error of this kind.
I m was sure my declaration was ok ...but obviously it s not .

Thanks

klaks
0 Kudos
Message 5 of 5
(2,895 Views)