LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Time of Maximum Chart

Solved!
Go to solution

I need to draw a chart that shows the behavior of the frequency of the spectral peak of the signal over time. I thought this VI would work fine:

 

TimeOfMax_BlockDiagram_AfterConnection.JPG

 

The interesting thing is that before connecting the Time of Maximum output of the Statistics block to the Time of Max Over Time Chart, the chart shows the settings properly:

 

TimeOfMax_FrontPanel_BeforeConnection.JPG

 

Here is the corresponding Block Diagram for the Front Panel above:

 

TimeOfMax_BlockDiagram_BeforeConnection.JPG

 

But once I connect the Timeof Max Over Time Chart to the Time of Maximum output of the Statistics Block and run the VI, the Time (X-Axis) of the chart changes to Frequency X-Axis:

 

TimeOfMax_FrontPanel_ChangedToFreq.JPG

 

Again, I want the chart to display the changes of peak frequency value over time. Any suggestions? I attached the VI below. Thanks!!

 

 

0 Kudos
Message 1 of 9
(2,707 Views)

Hello wprice

 

Are you able to post your VI?  I think I'd like to do some experimentation.  I would like to actually see what data is coming out of the "Time of Maximum" output.  It should just be a double as per the indicator but the fact that it's displaying as a frequency function in a chart makes me feel otherwise.  Are you able to adjust any of the graph properties?  I would want to break apart the output and take a look at the data unless of course it really is just a double value.

 

Please let me know as I am committed to seeing this issue resolved.  All the best!

Sincerely,

Greg S.
0 Kudos
Message 2 of 9
(2,663 Views)

Hi Greg,

 

I thought I attached it, but here it is again. Yes, the graphs properties are adjustable - no problems there.

 

Thanks!

 

Walter

0 Kudos
Message 3 of 9
(2,653 Views)
Solution
Accepted by wprice

Hello wprice

 

I converted the dynamic data to a double and was able to see the values display with respect to time.  Can you let me know if this is the right direction in which you wish to proceed?

 

Thank you very much!

Sincerely,

Greg S.
Message 4 of 9
(2,644 Views)

Greg,

 

I was not able to open the VI - my LabVIEW version is 9.0.1 only. but I tried to convert dynamic data to a double and it worked!

Thanks so much! Another question that I have is - is there a way to add a line that would work as a threshold to the waveform chart? The the threshould should be visible at all times.

 

Thanks,

 

Walter

0 Kudos
Message 5 of 9
(2,636 Views)

Never mind - I got it - thanks!

0 Kudos
Message 6 of 9
(2,621 Views)

Hello wprice

 

You can absolutely add a threshold into your code.  What are you looking at bouding?  It may be as simple as a case structure or some mathematics.  Please let me know, I believe you can get your issue resolved easily.

 

All the best!

Sincerely,

Greg S.
0 Kudos
Message 7 of 9
(2,618 Views)

Greg,

 

One more question. Is there a nice way of adding markers to the waveform chart? Ideally that would be a vertical line with a text following the marker that can be inserted to the chart by pressing a keyboard key, say 0-9 numeric keys.

 

Any suggestions?

0 Kudos
Message 8 of 9
(2,602 Views)

Hello wprice

 

I highly recommend creating a new forum post for this issue as it is different from the original issue.  This will not only ensure that it gets the proper attention from the community but it will speed resolution and allow users to more easily search for a similar solution should they have a similar issue.  Rest assured that this will be assigned to one of our engineers so this is guaranteed to get resolved! 

 

As a starting point, please consider the portion of this document titled

 

Customizing Graph and Chart Appearance from the Customizing Graphs and Charts Help document

http://zone.ni.com/reference/en-XX/help/371361G-01/lvconcepts/customizing_graphs_and_charts/

 

All the best!

Sincerely,

Greg S.
0 Kudos
Message 9 of 9
(2,573 Views)