LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to record data in new array

I have a card that has 30 channels but not all channel will be needed when I use. so I design this code to count the No. of channel that be chosen and record the position of channel. but the array can keep the last position that chosen channel.
help me~ thank you all 
0 Kudos
Message 1 of 8
(3,237 Views)
but the array can only keep the last position that chosen channel. the former position is formated.
0 Kudos
Message 2 of 8
(3,229 Views)
help me~
why no one help me and give me a answer?
0 Kudos
Message 3 of 8
(3,206 Views)
Is this what you want?
Message 4 of 8
(3,197 Views)
yes~~
 
thank you~
0 Kudos
Message 5 of 8
(3,187 Views)

Hi ,fami

The 2 for loop have no n value, how they work?

sorry, I just learn to use labVIEW~

帖子被fay在07-27-2007 02:36 AM时编辑过了

0 Kudos
Message 6 of 8
(3,176 Views)
Hi Fay,

this is called "Auto-Indexing".
You should really look into some manuals - there are even some installed with your LabView version (see the help menu).
You will also find a lot more information on the NI website - for instance some 3h and 6h beginners courses!
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 7 of 8
(3,162 Views)
When you wire an array into the border of a for loop or a while loop. You can right click the node and choose "Enable Indexing". Then the loop will read the data of the array one by one.
Message 8 of 8
(3,160 Views)