LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

WHat does it mean by parameters when using Call Library Function?

I am trying to use Fortran 90 code in LabVIEW 6.0.2. I am trying to set up a shared library (DLL because I'm using Windows) and I am confused as to what is required by parameters. The NI guide doesn't make much sense to me.

My code from Fortran 90 is essentailly a code which allows me to read the values of 1 line of numeric vales from a file containing many numbers. Any idea what the parameters would be?
0 Kudos
Message 1 of 2
(2,623 Views)
The help file reads:

"The Call Library Function Node consists of pairs of input and output terminals. You can use one or both terminals. If the node does not return return value, the top pair of terminals is unused. Each additional pair of terminals corresponds to a parameter in the parameter list of the function you call in top-to-bottom order. You pass a value to the function by wiring to the left terminal of a terminal pair. You read the value of a parameter after the function call by wiring from the right terminal of a terminal pair."

Therefore, the parameters are the input/output parameters that are used by your dll. I imagine one input parameter could be the file identifier. Essentially, the parameters just allow you to pass data into the dll, and read data
back from the dll.

I would also recommend looking at a few LV examples that use the Call Library function node, to see how they are structured. I would have posted some for you but my version of LV doesn't go that far back!

I hope this helps!
0 Kudos
Message 2 of 2
(2,623 Views)