04-13-2022 02:47 PM
Hello,
I'm trying to make my waveform noncontinuous to plot its points. When I run the program the waveform is continuous so, I'm not able to see the different amplitudes it's recording. Is there any way this is possible? Thank you.
04-13-2022 03:11 PM
A chart only tracks data points and will assume they are all at the same interval as set by the xaxis scale factor. A graph can contain both a y and x axis value, but that means you have to keep your own array of data (IE everything that will be displayed on the graph) for every data point you want to see.
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P9zsSAC&l=en-US
Also using bytes at port is the wrong thing to use 95% of the time
04-13-2022 09:17 PM
It looks like you are dealing with sampled data (by its very nature "contiguous" (no mathematician would call it "continuous", as there are all those unsampled-points "in between" the samples). What is it that you really want to do? For example, if you are sampling at 1 kHz and taking 1000 samples at a time, then once a second, you get 1000 data points. You can choose to plot it as "a second's worth of data" (1000 points in the plot), or as "10 100-sample increments at t = 0, 0.1, 0.2, ... 0.9 seconds"), or as something else.
What is it that you really want to do? Once you have a clear understanding of "What" you want to do, figuring out "How" to do it is usually straight-forward.
Bob Schor