LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I use Fortran source code in CIN?

I have a Fortran program.
And I want to use this program in LabVIEW.
But how can I link the Fortran code with LV?
There's only the "create .c file" pop-up menu in CIN icon.

For example, following problem is being tested.
A+B=C (2 inputs, 1 output)

Please help me.

Thanks.

Hyun-ho Lee
0 Kudos
Message 1 of 3
(2,911 Views)
ÀÌÇöÈ£ wrote:
>
> I have a Fortran program.
> And I want to use this program in LabVIEW.
> But how can I link the Fortran code with LV?
> There's only the "create .c file" pop-up menu in CIN icon.
>
> For example, following problem is being tested.
> A+B=C (2 inputs, 1 output)
>
> Please help me.
>
> Thanks.
>
> Hyun-ho Lee

Couple ways you have:
1. Create DLL in your favorite Fortran compiler and connect it via "call
library function"
2. Create CIN in c and use shared library, made with your Fortran
compiler.

Both ways are described in "LabVIEW Code Reference manual".
--
Sergey Krasnishov,
--------------------------------------
Automated Control Systems
National Instruments Alliance Member
Moscow, Russia
sergey_acs@levsha.ru
-----------
---------------------------
0 Kudos
Message 2 of 3
(2,911 Views)
May be, you can use converter fortran-->c. It is in UNIX.

N;3EQ wrote:

> I have a Fortran program.
> And I want to use this program in LabVIEW.
> But how can I link the Fortran code with LV?
> There's only the "create .c file" pop-up menu in CIN icon.
>
> For example, following problem is being tested.
> A+B=C (2 inputs, 1 output)
>
> Please help me.
>
> Thanks.
>
> Hyun-ho Lee
0 Kudos
Message 3 of 3
(2,911 Views)