LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to get the actual value of time

I have plotted the graph between amplitude and time but instead of showing the actual time values on x-axis my graph is showing the no of iterations. how can I fix this?

0 Kudos
Message 1 of 5
(2,206 Views)

Since you are generating your time, use an X-Y Graph.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 5
(2,188 Views)
  • Your example does not have any graph. Please attach something relevant to the problem.
  • Your shift register is uninitialized. Is that what you really want?
  • Your time indicator has nothing to do with time. There is no timing in your loop.
  • Your loop runs infinitely fast, so it is probably sufficient to autoindex at the loop boundary and graph the array data once the loop has finished.
  • Same with the "Initiial dispa" control. shouldn't that be before the loop or is the operator allowed to change it mid-run?
  • Have a look at this recent thread for some ideas.
  • You don't need an xy graph. All you need is to set t0 and dx for the x-scale of a waveform graph. Do you know how to do that?
0 Kudos
Message 3 of 5
(2,146 Views)

No i don't know. Can please explain me how to do that.

0 Kudos
Message 4 of 5
(2,140 Views)

@max42 wrote:

No i don't know. Can please explain me how to do that.


Just use a property node for x-scale...multiplier to define the mapping beween array index and x-values.

 

Here's a quick implementation using your math. I did not change your algorithm, so make sure it is correct.

 

 

0 Kudos
Message 5 of 5
(2,136 Views)