LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Relative time on X axis in Digital Waveform graph

Hi Vishnu,

 

Try right-clicking the Digital Waveform Graph and selecting Properties. Then, see digitalwaveformproperties.JPGthe below picture for where to make the appropriate change. Let me know if this helps. Thanks!

Dan Richards
Certified LabVIEW Developer
0 Kudos
Message 11 of 15
(1,724 Views)

Dan

 

   What exactly I am looking for is, when I run the VI for 15 seconds with a loop delay of < 50ms, when I stop teh VI the X axis (real time) doesn't ageree with what the elapsed time is. The elapsed time in this case is 15 sends, but the X axis end time is not what is should be (start time+15 seconds), Please run the attached VI with a loop delay of 10 seconds and observe the End time on X axis. Thanks a lot for looking into this.

0 Kudos
Message 12 of 15
(1,722 Views)

Hi Vishnu,

 

Try the attached VI. I made the number of samples a control and wired it into the Divide before the XScale.Multiplier property.

 

I'm noticing now that this VI would be more efficient if the Loop Delay, Sample Rate, and XScale.Multiplier were outside the loop.

 

Thanks,

 

Dan

Dan Richards
Certified LabVIEW Developer
Message 13 of 15
(1,708 Views)

Dan

 

   Thanks a lot for the idea. I have been looking at wrong location to improve the timing all along. The idea from you previous posting to move the Multiplier out of the loop did the trick for me. Some how using the property nodes inside a loop to slows it down. I really appreciate your help. Thanks a lot.

0 Kudos
Message 14 of 15
(1,696 Views)

Hey Vishnu,

 

My pleasure - let us know if you have additional problems with that. That's great feedback about the VI I created. It's unlikely that you'll need to change those values at run-time and I'm not sure why I didn't think about that at the time. I guess I just threw something together for a quick example. Good luck!

 

Cheers,

 

Dan

 

P.S. try to mark forum posts that contain answers to questions as "Accepted Solution" when possible 🙂

 

Dan Richards
Certified LabVIEW Developer
0 Kudos
Message 15 of 15
(1,684 Views)