LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

manipulate measurements voltage from analog input

hi, i have another one problem..

i attached the vi where i work..

i have a vi that take measurements of voltage with analog input

i store the measurements into an array of 1-D

but i want to have the measurements into an array of 2-D.

in one dimension i will have the measurements of voltage and to the other the time that the vi measured the voltage..

can i do this??

thank you..

andrikos
0 Kudos
Message 1 of 11
(3,887 Views)
You didn't attach your VI. Is it this one?

From the sounds of it, it seems that you want the Build Array function.

To learn more about LabVIEW it is recommended that you go through the tutorial(s) and look over the material in the NI Developer Zone's Learning Center which provides links to other materials and other tutorials. You can also take the online courses for free.
Message 2 of 11
(3,881 Views)

Hi andrikos,

i think you forgot to attach your vi.
You can change the read vi in this way, that the output is a waveform. There you have a 1D Array of values and an dt value. With this information you have for each element the time. Why do you need a 2D-Array? And why one dimension for the values and one for the time? I think you only need as maximum two 1D Arrays, one for the time and one for the values.

Mike

Message 3 of 11
(3,879 Views)
0 Kudos
Message 4 of 11
(3,871 Views)
where i can found this dt?

each measurement is taken at the same dt?

yes but i want the time that the vi measured each measurement..

because.. after this.. i want to divide whole the measurements into chunk.. after 1ms measured, i want to take these measurements into array and the next 1ms into other array and go on..

sorry for my badly english..

thank you..

andrikos

0 Kudos
Message 5 of 11
(3,867 Views)

Hi andrikos,

here is an example, who you can get the dt and create an array of relative times.

Mike

0 Kudos
Message 6 of 11
(3,865 Views)
i have tha LabVIEW 7.1..

i can't read the vi..


0 Kudos
Message 7 of 11
(3,861 Views)
Hi andrikos,
i can´t save it for lv7.1, but here is a picture.
Mike
0 Kudos
Message 8 of 11
(3,857 Views)
thank you very much!!

but i have another one question..

if i take a measyrement from a digital input.. but i haven't got a waveform. i have a U8 - port format.. how can i do this now?

i want to do the same thing like the analog..

thank you very much for your help and your interest..

andrikos
0 Kudos
Message 9 of 11
(3,848 Views)
You can build the digital output into an array (if they are not already)
then obtain your dt and use the same for loop to build the time and bundle it into a 2D array
Van L
NI Applications Engineer
0 Kudos
Message 10 of 11
(3,801 Views)