10-24-2007 10:48 AM
10-24-2007 02:03 PM - edited 10-24-2007 02:03 PM
Message Edited by Jeff B on 10-24-2007 02:04 PM
10-25-2007 03:01 AM - edited 10-25-2007 03:01 AM
I see I wasn't clear about this. I'll try to explain.
The polymorphic vi isn't broken. But the automatic selection of the correct instance of the polymorphic vi is broken. If you right-click on the polymorphic vi in the example program, and change 'Select Type' to ' Automatic' you get broken wires. You must select the instance manually to run the program.
Normally, Labview will recognize the difference between a single element and an array, and will automatically select the array instance instead of the single element instance. So you don't need to select the correct instance manually.
Try to the following: Edit the 'array element' vi, and remove the units. Save 'array element' and 'polymorphic element'. Also remove the units of the input array in 'use polymorphic vi'.
If you now set 'Select Type' to 'Automatic', you don't get broken wires. Labview automatically recognizes that it should use the array instances, and not the single element instance of the polymorphic vi.
(I see where the confusion comes from... I saved the example program with the correct manual selection. Change the selection to automatic, and you'll get the broken wires immediately.)
Message Edited by Anthony de Vries on 10-25-2007 10:05 AM
10-25-2007 07:55 AM
10-25-2007 07:57 AM