LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in LabView For Loop Program

Dear Friends,

 

Please find attached herewith a simple LabView propgram to find the square of a number. The problem is that it only gives me the value of the last squared number instead of giving all of them one by one. The problem seems to be very small but I am unable to locate the same. Kindly suggest any modification required in the program. Your help is most welcome.

 

Thanks,

 

Neelesh. 

0 Kudos
Message 1 of 3
(2,606 Views)

Get rid of the array builder and enable auto indexing on the loop's output tunnel.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 2 of 3
(2,603 Views)
Mike is correct and since the default behavior of a for loop is to have auto-indexing enabled when a wire leaves the loop boundary, you must have changed it for some reason. Just by looking at the type of wire, you should have realized that you created a scalar and that using the Build Array function would be worthless. Please see the available free tutorials.
Message 3 of 3
(2,587 Views)