LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Extracting time info with each volt value using Analog Input source

Hi,

A newbie question:

I need a vi to acquire a sine wave and start another event at a known
and optional position on the sine wave. I mean I want to run another vi
using the phase angle of the sine wave acquired and add a delay to this
value.

I am using a signal generator to get sine waves. In my vi I am using
Analog Input vi (configure, start, read vi ) to acquire this sine wave.
I know I can have the voltage values and time information written in a
text file, but I want to get them in the vi and use the time
information to trigger an other event. Using a for loop and creating
time values are not helpful since the timing is critical for an other
event.

Thank you very much for your valuable help.

ilter

0 Kudos
Message 1 of 3
(2,460 Views)
Hello Ilter,

Do you need to extract time stamps from the acquired data? If so, you can wire the waveform data from the Analog Read.vi to Index Array function and wire its output to Get Waveform Time Array.vi (located under the Waveform palette).

If this does not answer your question, please post your VI and provide more information, if possible.
Thank you and good luck with your application!
Shakhina P.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 3
(2,452 Views)
Dear Shakhina,

Using index array.vi helps fix broken wire between Analog Read.vi and
Get Waveform Time .vi but it does not allow getting true data from Get
Waveform Time Array.vi. I mean all the time array is filled with 3.224
E+9. My vi is attached. Same case is true for also Waveform to XY
Pairs.vi. I mean all of the xy pairs are same and some funny numbers.
Anyway here is my vi:

http://ilter.gercek.info/time.vi

This vi was used with a signal generator set to create sine waves for
test purposes.

Thank you one more time for your help.

Best wishes,

ps. Sorry for the late reply, I could not find a way to send my vi as
an attacment (I guess it is not allowed here). So I had to find a
domain to post it.

0 Kudos
Message 3 of 3
(2,447 Views)