From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

dll in labview

Hi,
I would like to call to dll generated in matlab from labview.
When I use the function "call library function node", the type of the output is only scalar.

how do I change the output type, how i do array in the output?
How do I create multiple output variables?

 

Best regards

maya

0 Kudos
Message 1 of 8
(2,975 Views)

The type is only scalar for the "return type". Once you add an output, "array" will be available.

 

CallDll.png

0 Kudos
Message 2 of 8
(2,948 Views)

when I add 'arg' is only more input. it isn't output...

the only output I get is in the return type.

0 Kudos
Message 3 of 8
(2,918 Views)

@mayaya wrote:

when I add 'arg' is only more input. it isn't output...

the only output I get is in the return type.


This statement is incorrect. Did you read the help and documentation?

0 Kudos
Message 4 of 8
(2,914 Views)

yes.

how I choose if arg is input or output?

0 Kudos
Message 5 of 8
(2,906 Views)

mayaya wrote:

how I choose if arg is input or output?

It is both. For each arg, there is an input on the left and an output on the right.

0 Kudos
Message 6 of 8
(2,900 Views)

can you send me a simple example?

0 Kudos
Message 7 of 8
(2,890 Views)

There are a few very useful examples already available with LabVIEW. Choose Help -> Find Examples, then Search "DLL" or similar keywords.

 

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 8 of 8
(2,874 Views)