LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Shift STFT output xy graph

In the program that I'm trying to write, I use the output from an STFT analysis of a song to output ones and zeros to vibrating motors. In the colormapped xy graph that I use to display the STFT analysis, time starts from the right hand side and the motors vibrate as the data is appearing on the graph from the right hand side.

But I want to move this axis to the center of the graph so that users of this program can see the patterns of the song I'm analyzing and anticipate motor output as the graph crosses this center line. How do I shift the axis?

Message Edited by schwe on 03-27-2005 02:56 PM

0 Kudos
Message 1 of 2
(2,522 Views)
Hi Schwe,

I don't think there is a way to actually shift the axis to the middle of the XY Graph. To accomplish what you are trying to achieve, you could just plot the data before you actually send it to the motors. You could use a cursor on the graph to give the effect of an "axis" being in the middle of the graph. You could then make the difference (in time) between when the data is plotted and the data is sent to the motors the same distance (in time) between the actual axis and your cursor axis. This should give you the effect you are going for, but might take some programming. Also notice that you can use a property of the XY Graph to get the position of the cursors.

Hope this helps!
Travis H.
LabVIEW R&D
National Instruments
0 Kudos
Message 2 of 2
(2,498 Views)