LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Passing argument through VI

hello everyone ,

I m passing arguments to a fortran program but it seems that Fortran cannot get them(read them) (the fortran program used to work fine with argument s coming form the console)...

I using the Dll method , my function being defined in the node as :

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

and in my Fortran program:

double precision function Spectre(isi,name1,name2,FE,nbll)
!DEC$ ATTRIBUTES DLLEXPORT::Spectre
character*40 name1,name2

Since I do not know so much about neither FOrtran nor Labview ,help would be welcome ...
thanks

klaks
0 Kudos
Message 1 of 3
(2,603 Views)
klaks,

This thread has a lot of good starting points for interfacing Fortran with LabVIEW. I would suggest reading through the "Using External Code in LabVIEW" links in the first reply, and also the example using Compaq Visual Fortran.

Scott Y
NI
0 Kudos
Message 2 of 3
(2,573 Views)
thanks scott,
I was one of the person in the thread.
I figured out my "error" it makes no sense but it works fine .
It was in the fortran program , I had to switch one of the variable name to capital letter , even though it used to work fine before( without the labview input)
And one very IMPORTANT thing that I think might not be said enough is that when compiling our FORTRAN program for example we have change the settings of the project in the workframe .I was using Microsoft Visual Studio and it is in Project settings , and we have to indicate that it will be used as a DLL somewhere .

Thanks guys .
klaks
0 Kudos
Message 3 of 3
(2,554 Views)