LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview for loop

  • Hi i have a problem .. i have a for loop with 65000 iteration and the values out of this loop are puted into an array the problem is the array doesn't contain 65000 value .. it only contain 20001 value only .. i can't figure out the problem ! 
0 Kudos
Message 1 of 13
(1,703 Views)

Please attach the VI for review.

 

Note: if you're auto-indexing an array into the For Loop (that contains 20001 values) and you also wire 65000 to the N terminal, then the For Loop will execute only for the lesser of the two which is 20001.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 2 of 13
(1,699 Views)

 

  • Are there any indexing input tunnels?
  • Do you use a conditional output tunnel?
  • If you wire an indicator inside the loop to N, what value does it show after the run?

We could instantly tell you the exact problem if you would attach your code!

0 Kudos
Message 3 of 13
(1,674 Views)

Well you are doing it wrong, because this returns a numeric array with 65000 elements containing numbers 0 through 64999. 

65000.png

If you showed us your code we could tell you what you are doing wrong...

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 4 of 13
(1,627 Views)

While we are guessing.   Don't forget the conditional terminal itself!  That won't effect the N internal node but may prevent i from equaling N-1 at loop completion.

 

What is the output datatype? And haw are you determining the size.?


"Should be" isn't "Is" -Jay
0 Kudos
Message 5 of 13
(1,619 Views)

@JÞB wrote:

While we are guessing.   


Hmm..

 

Is it coincidence that 10001 in hex is 65537 in decimal?

 

Not a perfect fit by far. But if one mistake was made, a 2nd (3rd, 4th) doesn't seem unlikely.

 

Post what you have!

 

 

0 Kudos
Message 6 of 13
(1,591 Views)

wiebe@CARYA wrote:

@JÞB wrote:

While we are guessing.   


Hmm...

 

Is it coincidence that 10001 in hex is 65537 in decimal?


No. It's not a coincidence it is basic math.:)

 

A coincidence would be programmers wearing Santa Clause costumes on Halloween. 


"Should be" isn't "Is" -Jay
0 Kudos
Message 7 of 13
(1,575 Views)

@JÞB wrote:

wiebe@CARYA wrote:

@JÞB wrote:

While we are guessing.   


Hmm...

 

Is it coincidence that 10001 in hex is 65537 in decimal?


No. It's not a coincidence it is basic math.:)


The math is not that basic 😂.

 

I wander what happened to the OP?

0 Kudos
Message 8 of 13
(1,523 Views)

wiebe@CARYA wrote:

@JÞB wrote:

wiebe@CARYA wrote:

@JÞB wrote:

While we are guessing.   


Hmm...

 

Is it coincidence that 10001 in hex is 65537 in decimal?


No. It's not a coincidence it is basic math.:)


The math is not that basic 😂.

 

I wander what happened to the OP?


Let me know when you figure out that 31Oct is 25Dec ( which is a coincidence in that both are holidays in the US.)

 

The OP must be out of the loop already.  😀😃🙂🙃


"Should be" isn't "Is" -Jay
Message 9 of 13
(1,499 Views)

wiebe@CARYA wrote:

@JÞB wrote:
No. It's not a coincidence it is basic math.:)

The math is not that basic 😂.

 


The math is pretty acidic. Similar to salad dressing. 😄

Message 10 of 13
(1,492 Views)