08-09-2012 09:47 AM
i am simulating a digital signal and viewing it on a graph, I would like to input x and receive the corresponding y coordinate.
I have a attched a screen shot.
If anyone can help, I'd really appreciate it! Thanks!!
08-09-2012 10:25 AM - edited 08-09-2012 10:27 AM
That makes no sense. The Simulate Signal does not create a digital signal. It can only create an analog (sine, square, triangle) and converting that to a 2D array does not make any sense either. The output signal, if you really understood the evil dynamic data, is a Y array with a start time and a dt. There is no x array and y array. I would suggest you convert to a waveform data type and use some of the waveform functions. For example, the user can specify time and you can calculate the index based on the dt of the signal.
p.s. Why did you post a pdf? Attach an image directly (as a snippet) or the actual VI. No one can debug a pdf.
08-10-2012 07:05 AM
I understand what you said, but I am having trouble coding it; this is exactly what I want to do: specify a time and get the coresponding value of the amplitude.
How do I do this?
08-10-2012 07:39 AM - edited 08-10-2012 07:40 AM
Look into the Get Waveform Subset. If you set the duration to 1 sample (or dt if indexing by relative time), you should only get 1 element. Just use Array Index and you got your value.
08-10-2012 07:41 AM
Hi hello,
Look at this thread also:-
http://forums.ni.com/t5/LabVIEW/split-signal-into-XY-components/td-p/1419244