LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Analog Voltage Samples

Hi,
I want to measure the voltage coming in at pin ACH0 of a PCI-6024 using Labview 6.1 and place the values obtained into an array. I can read the values from the analog input but i cant get them into an array. I want to take the first reading and place it as element 1, then take the next reading and place it in element 2, basically i want to keep indexing the array and placing values in it. The samples will be taken every 0.5 sec and the array will be about 50X50. I presume that i need a loop of some kind. I tried using a while loop and the enable indexing function but couldnt work it. Any help?
0 Kudos
Message 1 of 2
(2,483 Views)
Hi Spud99,
the enable indexing function will build an array and display the results when the loop has finished executing, and only if you have an indicator outside the while loop.
If you wish build your array inside the while loop, you can use shift registers to pass the array and add the new value. You can use the build array function, the insert into array functio or replace array subset function. I have attached an image (i dont have LV6.1),outlining what you can do and to give you some ideas.
0 Kudos
Message 2 of 2
(2,477 Views)