LabVIEW Embedded

cancel
Showing results for 
Search instead for 
Did you mean: 

auto indexing

Hello , Here's a question i need some help with . If i create a FOR loop with auto-indexing and wire a particular numeral value (a constant) to the count terminal . I am able to run the loop with values ultimately stored in the array.(trial.vi) But , if i want the count terminal value to be a product of certain numbers and try to do the same, it results in the error " Output array indexing can only be performed using a For loop with a constant wired to its count terminal " .(trialnew.vi) Is there any possible way where I could i use a constant that is product of two or three numbers wired to the count terminal?.I am using this with a speedy 33 target. Thank you . Regards, Mano
Download All
0 Kudos
Message 1 of 3
(6,306 Views)

Hi Mano,

For the Speedy 33, all arrays must be of a fixed size.  There can be no dynamic allocation of memory.  Although the value at the loop count is a constant, the compiler for the Speedy 33 does not discern what is wired as an input to the multiplication nodes.  The input to the multipliers could also be controls that could vary the value.  Because of this, the compiler assumes that the output of arithmetic functions is variable and will not allow you to wire the output of one of these functions to the loop count.

Although you can wire multiplied values to the loop count in LabVIEW when running a VI on your PC, you will receive this error if you wire anything except a numeric constant directly to the loop count of the for loop on the Speedy 33.  If you would like this capability, please visit the Product Suggestion Center and let us know.  We appreciate your feedback.

Donovan
0 Kudos
Message 2 of 3
(6,277 Views)
Thanks Donovan for that piece of info. Mano
0 Kudos
Message 3 of 3
(6,267 Views)