07-27-2017 12:10 PM
Good morning all. Need help from any of you that may have the answer to my question. I need to graph multiple analog channels on a xy graph. I am measuring voltage from a device and I am taking 1000 samples per second at a rate of 10,000 hertz. I would like to graph each sample taken vs its corresponding time at which each happen on a xy graph. How do I get the time so that I can plot it on a xy graph? The code sample I provide it shows a timer but when I run the program, it does not work properly. Looking forward to hear from any of you!!
Thanks,
Isidoro Vazquez
Solved! Go to Solution.
07-28-2017 03:07 AM
Hello, since your question refers to LabVIEW you should post it to the appropriate board: this one is dedicated to LabWindows/CVI
07-28-2017 01:58 PM - edited 07-28-2017 02:00 PM
You didn't include all the dependent subVIs.
@Chulito wrote:
I am measuring voltage from a device and I am taking 1000 samples per second at a rate of 10,000 hertz.
What does this mean? Are you sampling at 1KHz or 10KHz?
Anyway attached is an example of what I think you want. I am generating some random data at 1Khz, then pulling out the X and Y values from it, adding it to a circular buffer of 3,000 samples (this means it will fill after 3 seconds) and then graph it on a graph that has the X axis configured to be an Absolute time scale. The 3 seconds buffer is arbitrary but you don't want to fill it forever or your PC will crash running out of memory. This combined with subsampling is a good way to keep from using up more memory than is needed. I mean If you put 10,000 samples on a graph, you can't see all 10,000 samples, your monitor isn't that many pixels wide.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
07-28-2017 04:15 PM
Thank you guys you are awesome. This helps a lot!!