LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Build a dll without using all the VI's input

Hi all,

What will happen if I create a dll from a VI but i don't use all the vi's control when I define the dll ? For example, if I create a dll which perform a simple addition of 2 controls but I don't use the error cluster input of the VI as part of the dll function. Will the dll use the default value of it to execute?

Thanks,

Tijarmin
0 Kudos
Message 1 of 2
(2,460 Views)
My guess is it will react exactly the same as a normal subVI with some
unwired controls. Never tested it, although it wouldn't be much work to test
it.

There is a difference between controls, and controls attached to a connector
pane. If a control is connected to the connector pane, it is reinitialised
to default when called. If it's not wired, it maintains it's old value. This
will by the default value by default (...), but you can change it with a
local or property node . The changed value will be read back when called
again.

It's probably not the best practice to make use of such constructions
though.

Regards,

Wiebe.


Message 2 of 2
(2,447 Views)