02-15-2017 04:18 AM
Hi, I'm relatively new to labview, and I have a fairly noob question... But I can't find the answer anywhere in the forums.
Put simply, I am using the waveform chart and want to plot my data every n seconds. Ideally I'd give the user a control to choose every 5 seconds, every 10 seconds, or every minute (depending on how long they decide to leave the program running for).
I found another thread with a link to this VI: (Absolute Time Chart-8.0.vi) although I now cannot find the original thread.
This VI is great for n samples per second. But I need the opposite of that (sample per n seconds).
I am using absolute time X plot and autoscaling.
Any thoughts / ideas on how to approach this would be much appreciated.
Thanks
02-15-2017 04:27 AM - edited 02-15-2017 04:29 AM
Hi 123,
This VI is great for n samples per second. But I need the opposite of that (sample per n seconds).
This VI allows you to input a fractional number: what will happen when you input "0.2" into the "Sample per Second" control?
Or to put it in other words: when you need the inverse of "Samples per second" you might use the inverse function found in the numerics palette. Simple math…
Keep in mind: this VI is a very basic example and not at all "great" to work with very low sample rates…
02-15-2017 07:53 AM
If you use a Wavefrom data type, the chart will plot the data on the X-axis according to the time stamp in the waveform.
Ben
02-15-2017 09:13 AM
@Ben wrote:
If you use a Wavefrom data type, the chart will plot the data on the X-axis according to the time stamp in the waveform.
Shameless plug to expand on this thought: Sporatic Waveform Chart
02-15-2017 09:31 AM
@crossrulz wrote:
@Ben wrote:
If you use a Wavefrom data type, the chart will plot the data on the X-axis according to the time stamp in the waveform.
Shameless plug to expand on this thought: Sporatic Waveform Chart
Thank you for including that link Tim!
I went looking for a tag but came up empty. I added some more tags so maybe I will find it the next time I want to plug your nugget.
Ben