LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Create array with for loop

Many thanks to all of you, guys.

 

I'm going to learn labview, queues and try all things, that you told me.

 

Thank you

 

 

0 Kudos
Message 31 of 34
(419 Views)

@crossrulz wrote:

Since it sounds like you get 1 point for each axis per loop, you will have to loop the 20 times.  Go ahead and autoindex all of the values out.  You can use Array Subset to reduce the number of samples to work with.


It really depends on whether the OP wants continuous acquisition or not. I was going on the assumption that he did.

0 Kudos
Message 32 of 34
(419 Views)

You might want to take a look at the Recent History Buffer Example.vi in examples. You can make separate renamed copies of the buffer vi for each axis, with a different length for each. Old, but useful code. The buffer works as a old style global and can be read out elsewhere in the diagram or another vi.

0 Kudos
Message 33 of 34
(408 Views)

You might want to take a look at the Recent History Buffer example vi at:

http://zone.ni.com/devzone/cda/epd/p/id/1932

 

Old but useful code. The buffer vi can be modified to use your data type. You can creat a separate, rennamed copy for each of your variables with various depths, and they will work as old style globals. You can read them out elseewhere in your diagram or another vi.

Message 34 of 34
(406 Views)